Repository navigation
Read a star's REPLACE and ILIKE - #9
Merged
Merged
Conversation
A wildcard's EXCLUDE, EXCEPT and RENAME were read when it was expanded,
its REPLACE and ILIKE were not: the star expanded every column as it was.
SELECT * REPLACE (UPPER(b) AS b) FROM p
SELECT * ILIKE 'a%' FROM p
The first came out with b a copy of p.b, the second with a, b and c.
A column a REPLACE names now takes the replacing expression in its place,
under its own name, reading what the expression reads, the expression
kept on the column. An ILIKE keeps the columns whose name its pattern
matches, as SQL's LIKE does, % for any run and _ for any one character,
without regard to case.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017VTEw2dNNL9Pn57Hkeeirn
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Patch 10 of the engine fork that collin pins (dbt-collin decision 0028). A star's
REPLACEandILIKEare now read when the star is expanded, as itsEXCLUDE,EXCEPTandRENAMEalready were.Until now the star expanded every column as it was:
SELECT * REPLACE (UPPER(b) AS b) FROM pcame out withba copy ofp.b;SELECT * ILIKE 'a%' FROM pcame out witha,bandc.The change
LIKEdoes (%for any run,_for any one character), without regard to case.Tests
cargo fmt --checkis clean.Measured through collin
--indirecttoo: no model uses either optionbook_labels.titleis now a transform ofbooks.title, andloan_keyskeeps its three_idcolumns and is parsed: the three marks for these limits goNothing goes to pondpilot/flowscope.
🤖 Generated with Claude Code
https://claude.ai/code/session_017VTEw2dNNL9Pn57Hkeeirn