Skip to content

Commit

Permalink
doc: minor fixes to migration guides (apache#16784)
Browse files Browse the repository at this point in the history
  • Loading branch information
317brian authored and sreemanamala committed Aug 6, 2024
1 parent 231b409 commit ca7cc0a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
6 changes: 3 additions & 3 deletions docs/release-info/migr-ansi-sql-null.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,15 +45,15 @@ The default Druid configurations for 28.0.0 and later that enable ANSI SQL compa

Follow the [Null handling tutorial](../tutorials/tutorial-sql-null.md) to learn how the default null handling works in Druid.

## Legacy null handling and two-value logic
## Legacy null handling and two-valued logic

Prior to Druid 28.0.0, Druid defaulted to a legacy mode which stored default values instead of nulls.
In legacy mode, Druid created segments with the following characteristics at ingestion time:

- String columns couldn't distinguish an empty string, '', from null.
- String columns couldn't distinguish an empty string, `''`, from null.
Therefore, Druid treated them both as interchangeable values.
- Numeric columns couldn't represent null valued rows.
Therefore Druid stored 0 instead of null.
Therefore, Druid stored `0` instead of `null`.

The Druid configurations for the deprecated legacy mode were the following:

Expand Down
5 changes: 3 additions & 2 deletions website/sidebars.json
Original file line number Diff line number Diff line change
Expand Up @@ -374,10 +374,11 @@
"id": "release-info/migration-guide"
},
"items": [
"release-info/migr-mvd-array",
"release-info/migr-front-coded-dict",
"release-info/migr-subquery-limit",
"release-info/migr-ansi-sql-null",
"release-info/migr-mvd-array"
"release-info/migr-ansi-sql-null"

]
}
]},
Expand Down

0 comments on commit ca7cc0a

Please sign in to comment.