Skip to content

preserve explicitly specified dimension schema in "logical" schema of sampler response#14144

Merged
cryptoe merged 1 commit into
apache:masterfrom
clintropolis:adjust-sampler-response-preserve-explicitly-specified-schemas-in-logical-schema
Apr 23, 2023
Merged

preserve explicitly specified dimension schema in "logical" schema of sampler response#14144
cryptoe merged 1 commit into
apache:masterfrom
clintropolis:adjust-sampler-response-preserve-explicitly-specified-schemas-in-logical-schema

Conversation

@clintropolis
Copy link
Copy Markdown
Member

Description

Adjusts the logicalDimensions of the sampler response to re-use any explicitly specified dimension schemas on the request instead of always mapping to the default for that logical type. This fixes a bug where if 'json' is explicitly specified we still return 'auto' on the response of the logical schema.

This PR has:

  • been self-reviewed.
  • added comments explaining the "why" and the intent of the code wherever would not be obvious for an unfamiliar reader.
  • added unit tests or modified existing tests to cover new code paths, ensuring the threshold for code coverage is met.
  • been tested in a test Druid cluster.

Copy link
Copy Markdown
Contributor

@zachjsh zachjsh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 🚀

@cryptoe cryptoe merged commit 887f8db into apache:master Apr 23, 2023
clintropolis added a commit to clintropolis/druid that referenced this pull request Apr 24, 2023
@clintropolis clintropolis added this to the 26.0 milestone Apr 24, 2023
@clintropolis clintropolis deleted the adjust-sampler-response-preserve-explicitly-specified-schemas-in-logical-schema branch April 24, 2023 03:05
abhishekagarwal87 pushed a commit that referenced this pull request Apr 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants