databendlabs / databend

๐——๐—ฎ๐˜๐—ฎ, ๐—”๐—ป๐—ฎ๐—น๐˜†๐˜๐—ถ๐—ฐ๐˜€ & ๐—”๐—œ. Modern alternative to Snowflake. Cost-effective and simple for massive-scale analytics. https://databend.com
https://docs.databend.com
Other
7.71k stars 732 forks source link

chore(query): null first behavior #16475

Closed sundy-li closed 6 days ago

sundy-li commented 1 week ago

I hereby agree to the terms of the CLA available at: https://docs.databend.com/dev/policies/cla/

Summary

  1. Add settings default_order_by_null defaults to nulls_last.

PG and snowflake use default value nulls_last_on_asc_first_on_desc.

If we change the default value to nulls_last_on_asc_first_on_desc, it's the same as PG but incompatible with the previous version.

  1. Also fix a bug in stats from external parquet file.

Tests

Type of change


This change isโ€‚Reviewable