alamb commented on issue #197: URL: https://github.com/apache/datafusion/issues/197#issuecomment-2770485282
Make lineitem SF 10 (3 seconds!) data using tpchgen-cli https://github.com/clflushopt/tpchgen-rs ```shell tpchgen-cli -v --tables=lineitem --scale-factor=10 --format=parquet ``` Then you can run split to strings ```sql > select unnest (string_to_array(l_comment, ' ')) as word from 'lineitem.parquet' limit 10; +---------------+ | word | +---------------+ | egular | | courts | | above | | the | | ly | | final | | dependencies: | | slyly | | bold | | | +---------------+ 10 row(s) fetched. Elapsed 0.024 seconds. ``` Do the count ```sql > select count(*) from (select unnest (string_to_array(l_comment, ' ')) as word from 'lineitem.parquet'); +-----------+ | count(*) | +-----------+ | 271168008 | +-----------+ 1 row(s) fetched. Elapsed 0.731 seconds. ``` You can even do the distinct word count: ```sql > select count(distinct word) from (select unnest (string_to_array(l_comment, ' ')) as word from 'lineitem.parquet'); +----------------------+ | count(DISTINCT word) | +----------------------+ | 4959 | +----------------------+ 1 row(s) fetched. Elapsed 1.052 seconds. ``` -- 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: github-unsubscr...@datafusion.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: github-unsubscr...@datafusion.apache.org For additional commands, e-mail: github-h...@datafusion.apache.org