Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
Port query description logic to MLv2 #29200
Port query description logic to MLv2 #29200
Changes from 7 commits
e1e5284
9a57b57
4c18430
0c52148
00efe2f
6c08f07
d054858
f6aab85
7fb4774
632a506
f5655e9
714732d
86f35e5
1537864
c29cf24
07d0164
6cab2a8
9c966bb
351d61b
5fea21a
9d00808
659d6c5
c48c071
eafb505
ab3790e
959af7f
8c2c7cb
5edf0a3
93c182c
b2ccd11
6f47731
9401f7c
d0485b8
e0787f3
12cc3d7
53743d3
c1276f7
5ace8c7
bd3ba9a
82c23a7
6159181
5deaa35
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would it make sense to make the method
private
?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure why we need to modify the metadata here and below now?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
MLv2 currently wants queries to be initialized with complete metadata like
this._metadata
, not just metadata for a single table. So I'm just merging the metadata for the individual table intothis._metadata
.I suppose we could rework things so we can initialize a query with just the metadata for a single table but it seems like query descriptions would break if you happened to be filtering on a field from a different table, so it didn't make a ton of sense to relax that rule honestly
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@camsaul I see, thank you. What if we rework the caller so it actually provides the full
Metadata
instance instead?I can open a PR doing this against your branch or make another PR once this one is merged
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
these test a specific part of
getQueryDescription
, tests are in cljs now