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

[MLv2] joinable-columns on a Join sets source and alias #39529

Merged
merged 1 commit into from
Mar 4, 2024

Conversation

bshepherdson
Copy link
Contributor

(joinable-columns query stage a-join) previously returned
:lib/source :source/table-defaults and set
:metabase.lib.join/join-alias but not :source-alias.

This corrects both issues so that joinable-columns on a join returns
columns with the same shape as from visible-columns.

Also refactors a series of mapv transforms into a transducer pipeline.

Fixes #39514.

`(joinable-columns query stage a-join)` previously returned
`:lib/source :source/table-defaults` and set
`:metabase.lib.join/join-alias` but not `:source-alias`.

This corrects both issues so that `joinable-columns` on a join returns
columns with the same shape as from `visible-columns`.

Also refactors a series of `mapv` transforms into a transducer pipeline.

Fixes #39514.
Copy link
Contributor Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @bshepherdson and the rest of your teammates on Graphite Graphite

@metabase-bot metabase-bot bot added the .Team/QueryProcessor :hammer_and_wrench: label Mar 4, 2024
@bshepherdson bshepherdson requested a review from lbrdnk March 4, 2024 15:48
@bshepherdson bshepherdson added the no-backport Do not backport this PR to any branch label Mar 4, 2024
Copy link

replay-io bot commented Mar 4, 2024

Status In Progress ↗︎ 51 / 52
Commit 6511219
Results
⚠️ 2 Flaky
2342 Passed

@bshepherdson bshepherdson requested a review from snoe March 4, 2024 16:01
@bshepherdson bshepherdson added backport Automatically create PR on current release branch on merge and removed no-backport Do not backport this PR to any branch labels Mar 4, 2024
Copy link
Contributor

@lbrdnk lbrdnk left a comment

Choose a reason for hiding this comment

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

LGTM. 👍 for using transducers instead of multiple sequence transformations.

@bshepherdson bshepherdson enabled auto-merge (squash) March 4, 2024 17:25
@bshepherdson bshepherdson merged commit 300dbf3 into master Mar 4, 2024
150 of 178 checks passed
@bshepherdson bshepherdson deleted the mblib-joinable-columns-source-and-alias branch March 4, 2024 17:43
Copy link

github-actions bot commented Mar 4, 2024

@bshepherdson Did you forget to add a milestone to the issue for this PR? When and where should I add a milestone?

@bshepherdson bshepherdson added this to the 0.49 milestone Mar 4, 2024
github-actions bot pushed a commit that referenced this pull request Mar 4, 2024
`(joinable-columns query stage a-join)` previously returned
`:lib/source :source/table-defaults` and set
`:metabase.lib.join/join-alias` but not `:source-alias`.

This corrects both issues so that `joinable-columns` on a join returns
columns with the same shape as from `visible-columns`.

Also refactors a series of `mapv` transforms into a transducer pipeline.

Fixes #39514.
metabase-bot bot added a commit that referenced this pull request Mar 4, 2024
…39543)

`(joinable-columns query stage a-join)` previously returned
`:lib/source :source/table-defaults` and set
`:metabase.lib.join/join-alias` but not `:source-alias`.

This corrects both issues so that `joinable-columns` on a join returns
columns with the same shape as from `visible-columns`.

Also refactors a series of `mapv` transforms into a transducer pipeline.

Fixes #39514.

Co-authored-by: Braden Shepherdson <braden@metabase.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport Automatically create PR on current release branch on merge .Team/QueryProcessor :hammer_and_wrench:
Projects
None yet
Development

Successfully merging this pull request may close these issues.

addField and removeField do not work with joinableColumns(query, stageIndex, join)
3 participants