jayzhan211 commented on code in PR #12274: URL: https://github.com/apache/datafusion/pull/12274#discussion_r1739995844
########## datafusion/sqllogictest/test_files/aggregate.slt: ########## @@ -591,16 +591,21 @@ SELECT c2, var_samp(CASE WHEN c12 > 0.90 THEN c12 ELSE null END) FROM aggregate_ # csv_query_approx_median_1 -query I +query R +select approx_median('1'); +---- +1 + +query R SELECT approx_median(c2) FROM aggregate_test_100 ---- 3 # csv_query_approx_median_2 -query I +query R SELECT approx_median(c6) FROM aggregate_test_100 ---- -1146409980542786560 Review Comment: I guess this is due to the computation result of f64(? At least the code doesn't change the computation of `approx_median` only cast them to f64 -- 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