-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The current code builds column labels that are qualified with their owner table name (e.g. a.x). This has resulted in several problems: 1. Sometimes we want the unqualified column name, and extracting this has resulted in the addition of some awkward parsing code. 2. Constructing the qualified column names adds measurable time to simple queries, even though the only time we use it is for debug and explain display. It's better to build qualified names only when we need them rather than up-front. The trouble is that switching to store unqualified column labels has a big effect on code all over the opt packages. This commit tries to minimize the impact on tests, to make reviews easier. It contains a hack to keep output as close as it can to the old output. In the next commit, the hack is removed, which triggers a major update of tests across opt. As part of the changes required for reworking column labeling, I refactored the ExprView and Memo formatting code so that it's more consolidated and consistent. Formatting state is now always passed via ExprFmtCtx, which has been expanded to include a scratch buffer as well as the Memo (rather than just Metadata). Release note: None
- Loading branch information
1 parent
3122b3d
commit ecabf9f
Showing
45 changed files
with
937 additions
and
1,038 deletions.
There are no files selected for viewing
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.