-
Notifications
You must be signed in to change notification settings - Fork 1.7k
C++: Merge the location tables #17581
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
base: main
Are you sure you want to change the base?
Conversation
9299482
to
c05417a
Compare
f6d5deb
to
a8ce943
Compare
ea8b00b
to
52af6d5
Compare
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.
Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.
@@ -218,10 +218,10 @@ extractor_version( | |||
string frontend_version: string ref | |||
) | |||
|
|||
@location = @location_stmt | @location_expr | @location_default ; | |||
@location = @location_default ; |
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.
Can location_default
be removed?
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.
We need it, because xmllocations
table uses it, and the xml tables are effectively shared across the dbschemes of different languages. There's one extractor for XML files, and it expects that part of the dbscheme to be identical for all languages. Renaming @location_default
to @location
wouldn't really affect things functionally, but will be slightly confusing if you work across languages.
An alternative would be to drop @location
completely and call everything @location_default
.
See internal PR for details.
Pull Request checklist
All query authors
.qhelp
. See the documentation in this repository.Internal query authors only
.ql
,.qll
, or.qhelp
files. See the documentation (internal access required).