Skip to content

SNOW-2912540: remap write_pandas missing-table errors via ProgrammingError.raw_msg - #4328

Draft
sfc-gh-fpawlowski wants to merge 1 commit into
SNOW-2912540-mock-ud-connect-hookfrom
SNOW-2912540-write-pandas-raw-msg
Draft

SNOW-2912540: remap write_pandas missing-table errors via ProgrammingError.raw_msg#4328
sfc-gh-fpawlowski wants to merge 1 commit into
SNOW-2912540-mock-ud-connect-hookfrom
SNOW-2912540-write-pandas-raw-msg

Conversation

@sfc-gh-fpawlowski

Copy link
Copy Markdown

Summary

  • Session.write_pandas remapped a missing table only when ProgrammingError.msg ended with "does not exist".
  • Universal Driver suffixes .msg with (request_id=..., sfqid=...), so the remap never fired and raw 001757 leaked.
  • Check getattr(pe, "raw_msg", pe.msg) instead — both v4 and v5 store the unformatted body there.

Context

Stacked on #4326. Recovers test_write_pandas / test_write_pandas_with_overwrite on UD (CI run 32475873257, 9 unique tests / 18 grouped failures).

Test plan

  • tests/integ/test_pandas_to_df.py::test_write_pandas
  • tests/integ/test_pandas_to_df.py::test_write_pandas_with_overwrite
  • Confirm legacy connector still remaps (.raw_msg / .msg both end with "does not exist").

Made with Cursor

…Error.raw_msg

Co-authored-by: Cursor <cursoragent@cursor.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant