korowa commented on code in PR #5055: URL: https://github.com/apache/arrow-datafusion/pull/5055#discussion_r1086974175
########## datafusion/core/tests/sqllogictests/test_files/aggregate.slt: ########## @@ -36,6 +36,53 @@ STORED AS CSV WITH HEADER ROW LOCATION '../../testing/data/csv/aggregate_test_100.csv' +####### +# Error tests +####### + +# https://github.com/apache/arrow-datafusion/issues/3353 +statement error Aggregations require unique expression names +SELECT approx_distinct(c9) count_c9, approx_distinct(cast(c9 as varchar)) count_c9_str FROM aggregate_test_100 + +# csv_query_approx_percentile_cont_with_weight() +statement error Error during planning: The function ApproxPercentileContWithWeight does not support inputs of type Utf8. +SELECT approx_percentile_cont_with_weight(c1, c2, 0.95) FROM aggregate_test_100 + +statement error Error during planning: The weight argument for ApproxPercentileContWithWeight does not support inputs of type Utf8 +SELECT approx_percentile_cont_with_weight(c3, c1, 0.95) FROM aggregate_test_100 + +statement error Error during planning: The percentile argument for ApproxPercentileContWithWeight must be Float64, not Utf8 +SELECT approx_percentile_cont_with_weight(c3, c2, c1) FROM aggregate_test_100 + + +# csv_query_approx_percentile_cont_with_weight Review Comment: Sorry, I should have checked this more careful - it was unsaved version of file. Now I see that it's ok if expected result is leftmost substring of SQL execution result, so it perfectly explains why missing dot in the end of string doesn't affect test results. -- 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