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

fix(query_combiner): add try block to handle queries of type str #4397

Merged
merged 3 commits into from
Mar 15, 2022

Conversation

WaStCo
Copy link
Contributor

@WaStCo WaStCo commented Mar 12, 2022

Add try block for query_combiner early return in case a query does not contain attributes (inner_columns | columns) as defined by function get_query_columns().

See discussion in #4389

Previous code had an early return in case that query did not contain attribute columns. With the new assertion, there is no fallback in the new get_query_columns() function. Hence, some queries fail without a functional fallback. Current work around is to disable the query combiner via: profiling.query_combiner_enabled.

Checklist

  • The PR conforms to DataHub's Contributing Guideline (particularly Commit Message Format)
  • Links to related issues (if applicable)
  • Tests for the changes have been added/updated (if applicable)
  • Docs related to the changes have been added/updated (if applicable)

Previous code had an early return in case that query did not contain attribute columns. With the new assertion, there is no fallback in the new get_query_columns() function. Hence, some queries fail without a functional fallback. Current work around is to disable the query combiner via: profiling.query_combiner_enabled.
@github-actions
Copy link

github-actions bot commented Mar 12, 2022

Unit Test Results (build & test)

  92 files  +  1    92 suites  +1   13m 3s ⏱️ + 6m 30s
672 tests +77  613 ✔️ +70  59 💤 +7  0 ±0 

Results for commit 9123414. ± Comparison against base commit bb8f45b.

♻️ This comment has been updated with latest results.

@github-actions
Copy link

github-actions bot commented Mar 12, 2022

Unit Test Results (metadata ingestion)

       4 files         4 suites   46m 46s ⏱️
   360 tests    360 ✔️   0 💤 0
1 332 runs  1 301 ✔️ 31 💤 0

Results for commit 9123414.

♻️ This comment has been updated with latest results.

Copy link

@LANCENET LANCENET left a comment

Choose a reason for hiding this comment

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

Hi

Copy link
Collaborator

@hsheth2 hsheth2 left a comment

Choose a reason for hiding this comment

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

LGTM!

The test failures seem unrelated

Copy link
Contributor

@rslanka rslanka left a comment

Choose a reason for hiding this comment

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

LGTM!

Copy link
Contributor

@shirshanka shirshanka left a comment

Choose a reason for hiding this comment

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

LGTM

@shirshanka shirshanka merged commit bd3090a into datahub-project:master Mar 15, 2022
maggiehays pushed a commit to maggiehays/datahub that referenced this pull request Aug 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants