Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Generated partition columns resolve to null when column mapping is enabled

Open
#983 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 3 days

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
48/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
java

Research direction

Start by reading getSerializedPartitionValue and its partitionFieldNames branch, along with the review discussion on #973 that identified the suspected lookup issue. Trace how generated partition columns are resolved when column mapping is enabled for both Kernel and Standalone Delta sources. Done means the example column yr resolves to its partition value instead of null in both sources, with and without #973.

Written by the indexing model from the issue text.

Description

Follow-up from review discussion on #973 (reported by @vaibhavk1992, not blocking that PR).

With delta.columnMapping.mode=name enabled, a generated partition column still comes out null on both the Kernel and Standalone Delta sources, with and without #973. The same table without column mapping resolves correctly.

Example: yr INT GENERATED ALWAYS AS (YEAR(ts)), partitioned by yr.

Suspected cause (from the review): the partitionFieldNames branch of getSerializedPartitionValue looks values up by the generated column's logical name, and the generated column isn't in the internal schema, so there's no storageName to use.

This is outside the scope of #972, so tracked here separately.

Dominant language
Java
Stars
1.3k
Forks
220
Avg merge
3d 22h
Merged PRs (30d)
12

Getting set up

  • Ships a Dockerfile or Docker Compose file
  • Has a pull request template
  • No contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from apache/incubator-xtable

All issues in apache/incubator-xtable

Similar issues

More Java issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.