update docs after legacy configs have been removed#17634
Merged
clintropolis merged 2 commits intoapache:masterfrom Jan 17, 2025
Merged
update docs after legacy configs have been removed#17634clintropolis merged 2 commits intoapache:masterfrom
clintropolis merged 2 commits intoapache:masterfrom
Conversation
techdocsmith
approved these changes
Jan 16, 2025
Contributor
techdocsmith
left a comment
There was a problem hiding this comment.
minor stylistic nits, otherwise docs changes LGTM
| If `druid.generic.useDefaultValueForNull` is false, null values will be tracked in the `missingValueCount` field of the histogram. | ||
|
|
||
| If `druid.generic.useDefaultValueForNull` is true, null values will be added to the histogram as the default 0.0 value. | ||
| Null values will be tracked in the `missingValueCount` field of the histogram. |
Contributor
There was a problem hiding this comment.
Suggested change
| Null values will be tracked in the `missingValueCount` field of the histogram. | |
| Druid tracks null values in the `missingValueCount` field of the histogram. |
Nit: avoid future tense
| | `initialValue` | The initial value of the accumulator for the `fold` (and `combine`, if `InitialCombineValue` is null) expression. | Yes | | ||
| | `initialCombineValue` | The initial value of the accumulator for the `combine` expression. | No. Default `initialValue`. | | ||
| | `isNullUnlessAggregated` | Indicates that the default output value should be `null` if the aggregator does not process any rows. If true, the value is `null`, if false, the result of running the expressions with initial values is used instead. | No. Defaults to the value of `druid.generic.useDefaultValueForNull`. | | ||
| | `isNullUnlessAggregated` | Indicates that the default output value should be `null` if the aggregator does not process any rows. If true, the value is `null`, if false, the result of running the expressions with initial values is used instead. | No. Defaults to `true`. | |
Contributor
There was a problem hiding this comment.
Suggested change
| | `isNullUnlessAggregated` | Indicates that the default output value should be `null` if the aggregator does not process any rows. If true, the value is `null`, if false, the result of running the expressions with initial values is used instead. | No. Defaults to `true`. | | |
| | `isNullUnlessAggregated` | Sets the default output value to `null` when the aggregator does not process any rows. If true, the value is `null`. If false, Druid computes the value as the result of running the expressions with initial values. | No. Defaults to `true`. | |
nit awkward passive.
| |rint|rint(x) returns value that is closest in value to x and is equal to a mathematical integer| | ||
| |round|round(x, y) returns the value of the x rounded to the y decimal places. While x can be an integer or floating-point number, y must be an integer. The type of the return value is specified by that of x. y defaults to 0 if omitted. When y is negative, x is rounded on the left side of the y decimal points. If x is `NaN`, x returns 0. If x is infinity, x will be converted to the nearest finite double. | | ||
| |safe_divide|safe_divide(x,y) returns the division of x by y if y is not equal to 0. In case y is 0 it returns `null` or 0 if `druid.generic.useDefaultValueForNull=true` (legacy mode) | | ||
| |safe_divide|safe_divide(x,y) returns the division of x by y if y is not equal to 0. In case y is 0 it returns `null`| |
Contributor
There was a problem hiding this comment.
Suggested change
| |safe_divide|safe_divide(x,y) returns the division of x by y if y is not equal to 0. In case y is 0 it returns `null`| | |
| |safe_divide|safe_divide(x,y) returns the division of x by y if y is not equal to 0. Returns 0 if y is `null` | |
nit
Member
Author
There was a problem hiding this comment.
i flipped this around because its actually "returns null if y is 0"
| ## Logical operator modes | ||
| In Druid 28.0 and later, `druid.expressions.useStrictBooleans=true` is set by default. Logical operations treat `null` values as "unknown" for SQL compatible behavior. _All boolean output functions_ will output 'homogeneous' `LONG` typed boolean values of `1` for `true` and `0` for `false`. | ||
| ## Logical operator behavior | ||
| Logical operations treat `null` values as "unknown" for SQL compatible behavior. _All boolean output functions_ will output `LONG` typed boolean values of `1` for `true` and `0` for `false`. |
Contributor
There was a problem hiding this comment.
Suggested change
| Logical operations treat `null` values as "unknown" for SQL compatible behavior. _All boolean output functions_ will output `LONG` typed boolean values of `1` for `true` and `0` for `false`. | |
| Logical operations treat `null` values as "unknown" for SQL compatible behavior. _All boolean output functions_ output `LONG` typed boolean values of `1` for `true` and `0` for `false`. |
nit
gianm
approved these changes
Jan 17, 2025
clintropolis
added a commit
to clintropolis/druid
that referenced
this pull request
Jan 17, 2025
* update docs after legacy configs have been removed * better runtime.properties validation with new StartupInjectorBuilder.PropertiesValidator to fail fast if removed properties are set
This was referenced Jan 17, 2025
clintropolis
added a commit
that referenced
this pull request
Jan 17, 2025
317brian
pushed a commit
to 317brian/druid
that referenced
this pull request
Jan 28, 2025
* update docs after legacy configs have been removed * better runtime.properties validation with new StartupInjectorBuilder.PropertiesValidator to fail fast if removed properties are set
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Update docs to reflect removal of legacy config options in #17609. Also made the services fail if any of these configs are set to the removed modes, with the help of a new
PropertiesValidatorthat is baked intoStartupInjectorBuilder, allowing for a centralized place to handle checking stuff about runtime.properties.If set, service will do a log message that points to the migration guide and then exit:
Currently this new validator only checks the 3 properties relevant to this PR to fail fast, but I can also imagine using this to track usage of deprecated properties and doing something like log.alert or something similar to both log and emit metrics to help monitor usage of deprecated properties slated for future removal.