l1t1 opened a new issue, #1795:
URL: https://github.com/apache/datafusion-python/issues/1795

   when the result is larger than 10 rows, it is truncated
   ```python
   >>> from datafusion import SessionContext
   >>> import time
   >>> ctx = SessionContext()
   
   >>> ctx.sql("create table item as select i%7 i_category, i%11 i_color from 
(select value i from generate_series(1,10000\
   00))")
   No data to display
   
   >>> t=time.time();df = ctx.sql("select i_color, count(distinct i_color) from 
item group by i_color");t=time.time()-t
   >>> print(df)
   DataFrame()
   +---------+------------------------------+
   | i_color | count(DISTINCT item.i_color) |
   +---------+------------------------------+
   | 5       | 1                            |
   | 1       | 1                            |
   | 10      | 1                            |
   | 9       | 1                            |
   | 2       | 1                            |
   | 4       | 1                            |
   | 7       | 1                            |
   | 3       | 1                            |
   | 8       | 1                            |
   | 6       | 1                            |
   +---------+------------------------------+
   Data truncated.
   ```


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