Repository navigation
[4.x] Backport #1582 and #1633 #1640
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
Merged
Merged
Changes from all commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
9d20ca5
Place a time-travel hint before a generated alias and accept irregula…
laughingman7743 14026b2
Tighten the hint placement comments and docs after the first self-rev…
laughingman7743 c0130b3
Split a table's hint only before an alias, and match ASCII keywords o…
laughingman7743 a01ae48
Match the hint as the merge base did and split before an AS keyword (…
laughingman7743 ae42f3b
Render a table again only for text with an alias, and pin the hook ca…
laughingman7743 ab3f9ae
Fall back when SQLAlchemy cannot render a hooked table, and keep the …
laughingman7743 0ced9e7
Fall back on any error from the comparison rendering (GH-1575)
laughingman7743 395aa4f
Compare the hooked text inside the fallback, and check iscrud before …
laughingman7743 3303fb4
Read only string hints, and split an alias as the merge base did (GH-…
laughingman7743 1ca5ad2
Render again only tables and aliases with string names (GH-1575)
laughingman7743 d7fe1b2
Check the type of a name itself before rendering it again (GH-1575)
laughingman7743 7653b90
Check the type of a hint itself before reading it (GH-1575)
laughingman7743 7c4ea06
Name the name types that SQLAlchemy cannot render in the hook tests (…
laughingman7743 fe46dce
Pass the caller's own table text to the next hint hook (GH-1575)
laughingman7743 e246ba0
Require a name after AS, and test the CTE target and the alias name g…
laughingman7743 ef7cb12
Word the hint pattern comments and the docs as they work (GH-1575)
laughingman7743 e5911eb
Say to pass parameters to execute() for a selected alias with a time-…
laughingman7743 0003c1a
Name every call that drops the hint, and import what the example uses…
laughingman7743 a39611b
Name join() among the calls that pass the alias itself (GH-1576)
laughingman7743 d9b21f3
Describe the dropped hint by what the statement is given, and uninden…
laughingman7743 b3ff610
State the rule for any alias with a time-travel hint, with examples (…
laughingman7743 286b3b0
Scope the empty-name comment of the hook rename test to SQLAlchemy 2.…
laughingman7743 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
Oops, something went wrong.
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.
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.
Self-review round one (
/code-reviewmedium, focused on faithfulness), scope0b909e10..b3ff6109: CLEAN.compiler.py,test_compiler.pyanddocs/sqlalchemy.mdequal master's Place a time-travel hint before a generated alias and accept irregular whitespace (GH-1575) #1582 and Say to pass parameters to execute() for a selected alias with a time-travel hint (GH-1576) #1633 diffs.format_from_hint_textthrough_split_aliasis byte-identical to master 9b6631b.4.x,removeprefixneeds Python 3.11 (4.xrequires 3.11 or later), and4.xalready has the SQLAlchemy 2.0.44 floor and the 2.1 compatibility work._StrProxysits, because master'srequires_create_viewblock comes from Keep the ARRAY lambda variable from capturing names in stored and ordinary SELECTs (GH-1571) #1612, which is master only. The commit message records this.test_compiler.pypassed 276 on 2.0.46 and 2.0.44; thehint or aliastests passed 36 on 2.1.9./simplifywas not run. A backport must equal master, so any simplification belongs in a master PR first.Self-review round two (claims), same scope: CLEAN.
git diffandgit patch-id --stable.4.xfloor and the test counts were measured in this session:just test offlinepassed 4253, and the time-travel/hint tests passed 36 on 2.0.44 and 2.1.9.4.xbase is stable over two runs on 2.0.44 and 2.1.9, the branch has exactly the 2536 expected differences, and its output is identical to master's head.