Repository navigation
Conversation
… escaping - matrixone#30596: DOUBLE NaN/+-Inf are no longer emitted as bare tokens (previously restore failed at the first INSERT); float/double specials are now quoted alike. - matrixone#30598: near-max FLOAT wire text above MaxFloat32 is emitted as a quoted literal (unquoted it fails restore, out of range); -0 for float/double keeps its sign via quoting instead of numeric passthrough. - matrixone#30590: LOAD DATA path and field-delimiter are interpolated as doubled-quote SQL literals; a backslash field delimiter (no portable literal form) is rejected at validation instead of a broken export. - matrixone#30587: string literals no longer rely on backslash escapes: quotes are doubled and backslash bytes go through CHAR(92), so dumps restore with and without NO_BACKSLASH_ESCAPES; BIT NUL bytes use the same _binary-piece/CHAR(0) join (also fixing raw-quote corruption). Tests: TestConvertValueFloatBoundary, TestConvertValueSqlModeSafe, TestConvertValueBit, TestSqlStringLiteral, TestCheckFieldDelimiterBackslash. (Test_toCsvFields/Test_toCsvLine failures are pre-existing on main: escapeString already doubles backslashes; untouched here.)
- matrixone#30628: toCsvLine now surfaces the final Flush error and showLoad checks Close, instead of MODUMP SUCCESS over truncated CSV. - matrixone#30481: LOCAL INFILE emits a relative file name so the .sql+.csv pair restores from any directory/host; server-side INFILE keeps the absolute export path. Tests: Test_loadDataInfilePath, Test_toCsvLineFlushError. (Test_toCsvFields/Test_toCsvLine failures pre-exist on main.)
Contributor
|
This pull request does not currently match the merge queue conditions, so it cannot be queued from here. The box comes back if it matches again. |
Contributor
Author
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.
Stacked on #60 (touches the same
showLoad).Flusherror of the CSV writer and theCloseerror of the CSV file were discarded, so a failing last write still producedMODUMP SUCCESSand a restorable-but-truncated dump. Both are now surfaced (export exits non-zero).LOAD DATA LOCAL INFILEembedded the absolute export path, pinning restores to the original machine/directory. It now emits the relative CSV file name, so the.sql+.csvpair restores anywhere; server-sideLOAD DATA INFILEkeeps the absolute path (resolved on the server).Tests:
Test_loadDataInfilePath,Test_toCsvLineFlushErrorpass.Test_toCsvFields/Test_toCsvLinefailures pre-exist on main (escapeString doubles backslashes; unrelated).Confirmed orthogonal to open #57 (source-row iteration errors).
Closes matrixorigin/matrixone#30628
Closes matrixorigin/matrixone#30481