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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to