I am use daft to read SQL server tables and write to s3 bucket as parquet files. From time to time, I am seeing this error pops up:
ERROR tiberius:tdsstream:token The function 'PERCENTILE_DISC' must have an OVER clause. code=10753
I'm not using PERCENTILE_DISC function in my SQL query. Wondering if this is from SQL statement generated by the Daft?
c
Colin Ho
10/02/2024, 2:09 AM
Yes, daft executes a PERCENTILE_DISC query to determine the partition bounds
Colin Ho
10/02/2024, 2:09 AM
If it fails, daft will retry using MIN and MAX
p
Phil Chen
10/02/2024, 2:15 AM
I see, if I understand correctly, I can ignore this error. By the way, according to the error, it complains about missing OVER clause. Is this an issue with the generated SQL statement?
c
Colin Ho
10/02/2024, 2:23 AM
Yes you can ignore it. And yes itโs an issue with the generated sql ๐