timsaucer commented on issue #579:
URL: 
https://github.com/apache/datafusion-python/issues/579#issuecomment-4235759654

   Tested in latest (53.0.0) and it works with this change to the path:
   
   ```python
   # prepare fake data
   import pyarrow as pa
   import pyarrow.parquet as pq
   import pandas as pd
   data = pd.DataFrame(data={'col1': [1, 2], 'col2': [3, 4]})
   table = pa.Table.from_pandas(data)
   import os
   os.makedirs("mydata/fake=0")
   pq.write_table(table,"./mydata/fake=0/data.parquet")
   
   # load into datafusion
   import datafusion as df
   ctx = df.SessionContext()
   ctx.sql("""
   CREATE EXTERNAL TABLE data
   STORED AS PARQUET
   PARTITIONED BY (fake)
   LOCATION './mydata'
   """)
   
   ctx.sql("SELECT * FROM data").show()
   ```


-- 
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