-
Notifications
You must be signed in to change notification settings - Fork 156
SNOW-2912540: translate create_temp_table=True to table_type in AST encoding (rebased onto main) - #4307
Open
sfc-gh-fpawlowski wants to merge 7 commits into
Open
SNOW-2912540: translate create_temp_table=True to table_type in AST encoding (rebased onto main) #4307sfc-gh-fpawlowski wants to merge 7 commits into
sfc-gh-fpawlowski wants to merge 7 commits into
Conversation
sfc-gh-fpawlowski
marked this pull request as ready for review
August 6, 2026 09:01
sfc-gh-fpawlowski
requested review from
sfc-gh-aling,
sfc-gh-jzeng and
sfc-gh-mayliu
August 6, 2026 09:01
2 tasks
Codecov Report
✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 82.94%. Comparing base (09fe78f) to head (9d2f1f5).
Additional details and impacted files
@@ Coverage Diff @@ ## main #4307 +/- ## =========================================== - Coverage 95.25% 82.94% -12.31% =========================================== Files 171 171 Lines 44771 44769 -2 Branches 7687 7687 =========================================== - Hits 42645 37133 -5512 - Misses 1339 5680 +4341 - Partials 787 1956 +1169
☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.
🚀 New features to boost your workflow:
- ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
Collaborator
Author
- SNOW-2912540: decouple LocalTestOOBTelemetryService from connector.telemetry_oob #4309 Graphite: 2 dependent PRs (#4310 Graphite, #4313 Graphite)
- SNOW-2912540: inline _create_temp_stage and _create_temp_file_format into analyzer_utils #4308 Graphite
- SNOW-2912540: define ASYNC_RETRY_PATTERN and compat.OK locally #4282 Graphite
- SNOW-2912540: translate create_temp_table=True to table_type in AST encoding (rebased onto main) #4307 Graphite 👈 (View in Graphite)
main
This stack of pull requests is managed by Graphite. Learn more about stacking.
This was referenced Aug 6, 2026
3 tasks
@sfc-gh-fpawlowski
sfc-gh-fpawlowski
added
the
NO-CHANGELOG-UPDATES
This pull request does not need to update CHANGELOG.md
label
Aug 17, 2026
sfc-gh-fpawlowski
force-pushed
the
create-temp-table-ast-fix-on-main
branch
from
August 20, 2026 16:27
ff905f3 to
0ce0042
Compare
sfc-gh-aling
sfc-gh-aling
approved these changes
Aug 20, 2026
sfc-gh-fpawlowski
force-pushed
the
create-temp-table-ast-fix-on-main
branch
from
August 21, 2026 08:24
d9de3cb to
4d80196
Compare
...ncoding The deprecated `create_temp_table` parameter was being emitted to the proto AST as a separate boolean field even though the runtime already translates it to `table_type="temporary"`. This meant the AST decoder had to handle two representations for the same thing. Fix: move the deprecation coercion before the AST block in save_as_table so `table_type` is already resolved when emitted; remove the deprecated field from both AST emission sites (WriteTable and WritePandas); update the internal cache_result mock path to pass table_type="temp" directly; mark the proto fields as deprecated. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
..._table removal Remove create_temp_table from the expected encoded AST and unparser output in the write_pandas golden test — the field is no longer emitted to the proto since the deprecation coercion now happens before the AST block, making table_type the sole carrier of this information. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
cursor
Bot
force-pushed
the
create-temp-table-ast-fix-on-main
branch
from
September 2, 2026 06:45
4d80196 to
9d96c9c
Compare
...or test seq1()/seq2() restart per parallel generator worker, so ordered results repeat values (assert 0 < 0 on the timelimit case). Assert non-decreasing order instead. Co-authored-by: Filip Pawłowski <sfc-gh-fpawlowski@users.noreply.github.com>
... generator test" This reverts commit c7fe857.
This was referenced Sep 3, 2026
Collaborator
Author
Merge activity
- Sep 3, 6:32 AM UTC: Graphite couldn't merge this PR because it failed for an unknown reason (You're not authorized to push to this branch).
- Sep 3, 8:07 AM UTC: A user started a stack merge that includes this pull request via Graphite.
- Sep 3, 8:08 AM UTC: Graphite couldn't merge this PR because it failed for an unknown reason (You're not authorized to push to this branch).
- Sep 3, 8:09 AM UTC: A user started a stack merge that includes this pull request via Graphite.
- Sep 3, 8:10 AM UTC: Graphite couldn't merge this PR because it failed for an unknown reason (You're not authorized to push to this branch).
- Sep 4, 5:41 AM UTC: A user started a stack merge that includes this pull request via Graphite.
- Sep 4, 5:41 AM UTC: Graphite couldn't merge this PR because it failed for an unknown reason (You're not authorized to push to this branch).
- Sep 7, 6:17 AM UTC: Graphite couldn't merge this PR because it failed for an unknown reason (You're not authorized to push to this branch).
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.
You can’t perform that action at this time.
Uh oh!
There was an error while loading. Please reload this page.
Summary
Rebases the fix from #4296 onto
main. #4296's head branch (worktree-create-temp-table-ast-fix) is based on the staleud-local-test-scriptsbranch, which is 49 commits behindmain— so it can't land there cleanly. This PR cherry-picks #4296's two commits (unchanged, same authorship) directly onto currentmain, where they apply without conflicts.Same fix as #4296: stops emitting the deprecated
create_temp_tableparameter into the encoded AST sent to the server, without changing Snowpark's own public API —create_temp_tablestays in the function signatures, still fires its deprecation warning, and still works exactly as before for callers. Onlytable_type(already resolved fromcreate_temp_tablewhen needed) is now recorded in the AST.Changes:
dataframe_writer.py: Movecreate_temp_tabledeprecation coercion to before the AST emission block insave_as_table, sotable_typeis already resolved whenWriteTableis encoded. Removeexpr.create_temp_tableemission.session.py: Removeast.create_temp_table = create_temp_tablefrom thewrite_pandasAST block — the coercion already fires before AST emission there, soast.table_typecarries the correct value.dataframe.py: Replacecreate_temp_table=Truewithtable_type="temp"in the internalcache_resultmock path, matching the real code path and avoiding a spurious deprecation warning from internal code.ast.proto: Mark bothcreate_temp_tablefields as// Deprecated: use table_type instead.(fields retained for wire compatibility).tests/ast/data/session_write_pandas.test: Removecreate_temp_table: truefrom expected encoded AST andcreate_temp_table=Truefrom expected unparser output.Test plan
tests/ast/test_ast_driver.py::test_ast[session_write_pandas.test]passestests/ast/test_ast_driver.py::test_ast[DataFrame.write.test]passessave_as_table(..., create_temp_table=True)still logs the deprecation warning and creates a temp tablecache_result()no longer emits the spurious deprecation warningSupersedes #4296 for the purpose of landing on
main.Checklist
Stack (via Graphite)
🤖 Generated with Claude Code