Skip to content

Conversation

@XiaoHongbo-Hope
Copy link
Contributor

@XiaoHongbo-Hope XiaoHongbo-Hope commented Jan 14, 2026

Purpose

Before:
AttributeError: 'RecordBatch' object has no attribute 'column_names' and add_column for py36
if pk_key in data.column_names: enhanced_table = enhanced_table.add_column(0, f'_KEY_{pk_key}', key_column)

After:

  1. Replace data.column_namesdata.schema.names
  2. Replace add_column()RecordBatch.from_arrays()
  3. Remove Python 3.6 skip logic from tests

Tests

API and Format

Documentation

@XiaoHongbo-Hope XiaoHongbo-Hope changed the title [python] Fix RecordBatch compatibility issues in py36 [python/hotfix] fix RecordBatch compatibility issues in py36 Jan 15, 2026
@XiaoHongbo-Hope XiaoHongbo-Hope marked this pull request as ready for review January 15, 2026 02:24
@JingsongLi
Copy link
Contributor

+1

@JingsongLi JingsongLi merged commit ae39363 into apache:master Jan 15, 2026
18 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