Skip to content

refactor: let CastNonPartitionArrayIfNeed only handle casting, leave name mapping to MappingFields in FieldMapping#293

Merged
lxy-9602 merged 4 commits into
alibaba:mainfrom
lxy-9602:refact-field-mapping
May 20, 2026
Merged

refactor: let CastNonPartitionArrayIfNeed only handle casting, leave name mapping to MappingFields in FieldMapping#293
lxy-9602 merged 4 commits into
alibaba:mainfrom
lxy-9602:refact-field-mapping

Conversation

@lxy-9602
Copy link
Copy Markdown
Collaborator

Purpose

Use non_partition_data_schema field names in CastNonPartitionArrayIfNeed so it only does type casting; field name remapping (e.g. RENAME COLUMN) is handled solely by MappingFields. This refactor does not affect correctness since MappingFields always overwrites field names afterwards.

Linked pr: #292

Tests

FieldMappingReaderTest.TestReadWithSchemaEvolutionRenameCombinedCast

API and Format

Documentation

Generative AI tooling

Generated-by: Claude-4.6-Opus

@lxy-9602 lxy-9602 merged commit 40f5148 into alibaba:main May 20, 2026
9 checks passed
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.

2 participants