BubbaJoe commented on issue #5635: URL: https://github.com/apache/arrow-datafusion/issues/5635#issuecomment-1475294290
Thanks @jiangzhx, the code worked for me, but I am still getting an error when calling `record_batches_to_json_rows` on the queries: - SELECT DISTINCT to_date(\"createdAt\") as u from 'table'; - SELECT to_date(\"createdAt\") as u from 'table' group by u; Error is the same as the above error log: ``` thread 'tokio-runtime-worker' panicked at 'Trying to access an element at index 0 from a PrimitiveArray of length 0', /Users/user/.cargo/registry/src/github.com-1ecc6299db9ec823/arrow-array-34.0.0/src/array/primitive_array.rs:337:9 ... ``` -- 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...@arrow.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org