Skip to content

[common] Copy primitive DATE and TIME arrays - #11315

Open
zhangyue19921010 wants to merge 4 commits into
apache:masterfrom
zhangyue19921010:contrib/copy-primitive-temporal-arrays-20261121
Open

zhangyue19921010 wants to merge 4 commits into
apache:masterfrom
zhangyue19921010:contrib/copy-primitive-temporal-arrays-20261121

Conversation

@zhangyue19921010

Copy link
Copy Markdown
Contributor

Purpose

Fixes #11314

Copying an int-backed GenericArray of DATE or TIME throws Unknown type, including arrays produced by InternalRowUtils.copyArray and rows copied by the Flink runtime serializer.

Handle DATE and TIME in the existing integer-array copy branch. The copied array remains independent of the source; the serialized representation is unchanged.

Tests

Added primitive-array, producer-to-copy and row-copy regressions for nullable/non-nullable INT, DATE and TIME elements, including empty arrays, value boundaries, mutation isolation and round trips. On unchanged production code, 12 of the 18 added cases fail for DATE/TIME; all six INT controls pass.

All 45 tests in InternalArraySerializerTest, InternalMapSerializerTest and InternalRowUtilsTest pass with normal Maven checks enabled (JDK 11, Java 8 source target). An exact-source Flink 1.20.1 serializer probe also passes all six INT/DATE/TIME cases across both copy overloads; the four DATE/TIME cases fail on the baseline. No full Flink job was run.

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.

[Bug] Copying primitive DATE and TIME arrays throws Unknown type

1 participant