andygrove commented on issue #166:
URL: https://github.com/apache/arrow-ballista/issues/166#issuecomment-1229242626

   It actually does work but we get an error if we try and show the results of 
the DataFrame. This is not good UX so we will need to fix.
   
   ```
   >>> import ballista
   >>> ctx = ballista.BallistaContext("localhost", 50050)
   >>> ctx.sql("CREATE EXTERNAL TABLE orders STORED AS PARQUET LOCATION 
'/mnt/bigdata/tpch/sf1-parquet/orders'")
   <ballista.DataFrame object at 0x7f501f088150>
   >>> df = ctx.sql("SELECT count(*) FROM orders")
   >>> df.show()
   +-----------------+
   | COUNT(UInt8(1)) |
   +-----------------+
   | 14999999        |
   +-----------------+
   ```


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

Reply via email to