Skip to content

[python] Fix stats evolution index mapping to use field ID instead of field name#7593

Open
plusplusjiajia wants to merge 1 commit intoapache:masterfrom
plusplusjiajia:fix-stats
Open

[python] Fix stats evolution index mapping to use field ID instead of field name#7593
plusplusjiajia wants to merge 1 commit intoapache:masterfrom
plusplusjiajia:fix-stats

Conversation

@plusplusjiajia
Copy link
Copy Markdown
Member

Purpose

SimpleStatsEvolutions._create_index_cast_mapping was using field.name to build the mapping between table schema and data schema. This breaks after column renames because names change while field IDs remain stable. Changed to use field.id, aligning with Java's SchemaEvolutionUtil.createIndexMapping.

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