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

Bug fix: CLI saved queries dropping order_by_names param #835

Merged
merged 3 commits into from
Nov 2, 2023

Conversation

courtneyholcomb
Copy link
Contributor

Description

Bug fix. In the CLI, we are using the MetricFlowQueryRequest.order_by_names param. When passing that query to the query parser, we end up dropping that param in favor of order by objects, instead. This meant the order by param was dropped entirely from CLI saved queries, returning unexpected results. You can see one of the hardcoded result sets has the incorrect order. This PR makes sure both get passed through to the final query, fixing the ordering issue.

@cla-bot cla-bot bot added the cla:yes label Nov 2, 2023
Copy link

github-actions bot commented Nov 2, 2023

Thank you for your pull request! We could not find a changelog entry for this change. For details on how to document a change, see the contributing guide.

@courtneyholcomb courtneyholcomb added the Run Tests With Other SQL Engines Runs the test suite against the SQL engines in our target environment label Nov 2, 2023
@courtneyholcomb courtneyholcomb temporarily deployed to DW_INTEGRATION_TESTS November 2, 2023 21:12 — with GitHub Actions Inactive
@courtneyholcomb courtneyholcomb added Run Tests With Other SQL Engines Runs the test suite against the SQL engines in our target environment and removed Run Tests With Other SQL Engines Runs the test suite against the SQL engines in our target environment labels Nov 2, 2023
@courtneyholcomb courtneyholcomb temporarily deployed to DW_INTEGRATION_TESTS November 2, 2023 21:20 — with GitHub Actions Inactive
@courtneyholcomb courtneyholcomb temporarily deployed to DW_INTEGRATION_TESTS November 2, 2023 21:20 — with GitHub Actions Inactive
@courtneyholcomb courtneyholcomb temporarily deployed to DW_INTEGRATION_TESTS November 2, 2023 21:20 — with GitHub Actions Inactive
@courtneyholcomb courtneyholcomb temporarily deployed to DW_INTEGRATION_TESTS November 2, 2023 21:20 — with GitHub Actions Inactive
@github-actions github-actions bot removed the Run Tests With Other SQL Engines Runs the test suite against the SQL engines in our target environment label Nov 2, 2023
Copy link
Contributor

@tlento tlento left a comment

Choose a reason for hiding this comment

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

Nice catch! It is wild to me that this wasn't just failing all the time.....

@courtneyholcomb courtneyholcomb merged commit 0104913 into main Nov 2, 2023
22 checks passed
@courtneyholcomb courtneyholcomb deleted the court/sq-bug branch November 2, 2023 23:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants