Skip to content

test: add timestamp ntz array cast coverage#4589

Merged
andygrove merged 1 commit into
apache:mainfrom
manuzhang:codex/array-string-cast-types
Jun 4, 2026
Merged

test: add timestamp ntz array cast coverage#4589
andygrove merged 1 commit into
apache:mainfrom
manuzhang:codex/array-string-cast-types

Conversation

@manuzhang
Copy link
Copy Markdown
Member

Which issue does this PR close?

Part of #4248.

Rationale for this change

Array(TimestampNTZ) cast behavior should have explicit coverage for casts to String and to other supported array element types. The existing array cast coverage covered many primitive and temporal cases, but did not include TimestampNTZ array inputs.

What changes are included in this PR?

  • Extends CometCastSuite array-to-string coverage to include Array(TimestampNTZ).
  • Extends the CometCastSuite array-to-array cast matrix to include TimestampNTZ array inputs.
  • Adds SQL-file coverage for Array(TimestampNTZ) to String and to Array(String), Array(Date), and Array(Timestamp) across representative timezones.

How are these changes tested?

  • ./mvnw test -Pjdk17 -Dtest=none -Dsuites="org.apache.comet.CometCastSuite cast ArrayType to StringType"
  • ./mvnw test -Pjdk17 -Dtest=none -Dsuites="org.apache.comet.CometCastSuite cast ArrayType to ArrayType"

Add CometCastSuite coverage for casting Array(TimestampNTZ)
to String and to supported Array element types.

Co-authored-by: Codex <codex@openai.com>
Copy link
Copy Markdown
Member

@andygrove andygrove left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @manuzhang!

@andygrove andygrove merged commit 56b82d6 into apache:main Jun 4, 2026
51 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