Repository navigation
Align the default field separators for the export table and load data. - #22570
Conversation
|
You are nearing your monthly Qodo Merge usage quota. For more information, please visit here. PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
|
You are nearing your monthly Qodo Merge usage quota. For more information, please visit here. PR Code Suggestions ✨Explore these optional code suggestions:
|
|||||||||
matrixorigin#22570) Align the default field separators for the export table and load data. Approved by: @aunjgr, @iamlinjunhong, @heni02
User description
What type of PR is this?
Which issue(s) this PR fixes:
issue ##22565
What this PR does / why we need it:
Align the default field separators for the export table and load data.
PR Type
Bug fix
Description
Standardized default field separators across export and load operations
Replaced hardcoded separators with centralized constants
Added comprehensive test for export-load roundtrip functionality
Diagram Walkthrough
File Walkthrough
update.go
Define default field separator constantspkg/sql/parsers/tree/update.go
DefaultFieldsTerminatedset to commaDefaultFieldsEnclosedByandDefaultFieldsEscapedBydefinedtypes.go
Use centralized separator constants in CSV parserpkg/sql/colexec/external/types.go
\ttotree.DefaultFieldsTerminatedbind_load.go
Apply default constants in load data bindingpkg/sql/plan/bind_load.go
load_data.sql
Add export-load roundtrip test casetest/distributed/cases/load_data/load_data.sql
load_data.result
Update test results for roundtrip validationtest/distributed/cases/load_data/load_data.result