restore aliases before annotating (#27637) #27663
Merged
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.
Backport and fixes #27464
restore aliases before annotating
cleanup
fix tests
Don't add escaped->original if aliases have not changed
No need to walk and replace the aliases if they are identical. And in that case, no need to keep a mapping of identical to identical. Not super important but saves some time and complexity, and keeps other tests passing since the presence of [:info :alias/escaped->original] in the query caused them to trivially fail.
previous testing behavior was "what happened" and not what should happen. we fixed the bug but the "expect garbage" behavior was still present
oracle tests use keywords for the alias
No idea why that is keyworded
:alias/escaped->original
schemasee previous commit
Before submitting the PR, please make sure you do the following
Tests
yarn lint && yarn test
)clojure -X:dev:test
(unless it's a tiny documentation change).