Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ability to turn off Druid Catalog specific validation done on catalog defined tables in Druid #16465

Merged
merged 9 commits into from
May 23, 2024

Conversation

zachjsh
Copy link
Contributor

@zachjsh zachjsh commented May 16, 2024

Description

Added new query context parameter "catalogValidationEnabled" to enable / disable catalog specific validation done on catalog defined tables in Druid. This property is enabled by default, meaning that validation is enabled. When disasbled, validation that would fail for incompatible type assignment, and adding new undefined columns to a sealed table are disabled. The decision was made to enable this property by default since if a user defines a table in the Druid catalog, then they are most likely wanting the validation that comes along with that.

This PR has:

  • been self-reviewed.
  • added documentation for new or modified features or behaviors.
  • a release note entry in the PR description.
  • added Javadocs for most classes and all non-trivial methods. Linked related entities via Javadoc links.
  • added or updated version, license, or notice information in licenses.yaml
  • 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.
  • added integration tests.
  • been tested in a test Druid cluster.

@zachjsh zachjsh merged commit b0cc1ee into apache:master May 23, 2024
87 checks passed
@zachjsh zachjsh deleted the catalog-validation-control branch May 23, 2024 17:19
ektravel pushed a commit to ektravel/druid that referenced this pull request May 29, 2024
…alog defined tables in Druid (apache#16465)

* * add property to enable / disable catalog validation and add tests

* * add integration tests for catalog validation disabled

* * add integration tests

* * remove debugging logs

* * fix forbidden api call
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.

None yet

3 participants