You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by GitBox <gi...@apache.org> on 2022/07/14 12:55:47 UTC

[GitHub] [superset] Mageswaran1989 commented on pull request #19317: feat: add duckdb as DataSource - Fixes #14563

Mageswaran1989 commented on PR #19317:
URL: https://github.com/apache/superset/pull/19317#issuecomment-1184414935

   I wanted to access the S3 parquet files from Superset/SQL Editor. While I am able to use DuckDB to do the same in my python shell, I am wondering how to do it with the Superset and/or [duckdb-engine](https://github.com/Mause/duckdb_engine) 
   
   My python snippet to load parquet files from S3:
   ```python 
   import duckdb
   cursor = duckdb.connect()
   cursor.execute("INSTALL httpfs;")
   cursor.execute("LOAD httpfs;")
   cursor.execute("SET s3_region='******'")
   cursor.execute("SET s3_access_key_id=''**************")
   cursor.execute("SET s3_secret_access_key='*****************************'")
   cursor.execute("PRAGMA enable_profiling;")
   cursor.execute("SELECT count(*) FROM read_parquet('s3://<bucket>/prefix/*.parquet'")
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org