Skip to content

test: enable float/double/binary array casts to string#4386

Draft
manuzhang wants to merge 1 commit into
apache:mainfrom
manuzhang:codex/array-string-cast-types
Draft

test: enable float/double/binary array casts to string#4386
manuzhang wants to merge 1 commit into
apache:mainfrom
manuzhang:codex/array-string-cast-types

Conversation

@manuzhang
Copy link
Copy Markdown
Member

@manuzhang manuzhang commented May 21, 2026

Which issue does this PR close?

N/A.

Rationale for this change

CometCastSuite had FloatType, DoubleType, and BinaryType commented out for ArrayType to StringType casts. The native cast path already handles floating-point elements, and BinaryType can use the existing native binary string formatting path when arrays cast their elements to strings.

What changes are included in this PR?

  • Enable FloatType, DoubleType, and BinaryType in CometCastSuite.cast ArrayType to StringType.
  • Remove the special incompatibility guard for ArrayType(BinaryType) -> StringType so it follows normal element string-cast support.

How are these changes tested?

  • ./mvnw test -Pspark-4.1 -Dtest=none -Dsuites="org.apache.comet.CometCastSuite cast ArrayType to StringType"
  • Also verified FloatType, DoubleType, and BinaryType one at a time with the same focused Spark 4.1 suite before restoring the full type list.

Co-authored-by: @codex

@manuzhang manuzhang force-pushed the codex/array-string-cast-types branch from 3861785 to 460615e Compare May 21, 2026 16:13
@manuzhang manuzhang changed the title [codex] Enable array-to-string cast coverage for float and binary types fix: support binary array casts to string May 21, 2026
Enable FloatType, DoubleType, and BinaryType in CometCastSuite's ArrayType-to-StringType coverage.

Allow ArrayType(BinaryType) casts to string to use the existing native binary string formatting path.

Co-authored-by: Codex <codex@openai.com>
@manuzhang manuzhang force-pushed the codex/array-string-cast-types branch from 460615e to 413d575 Compare May 21, 2026 16:16
@manuzhang manuzhang changed the title fix: support binary array casts to string test: enable float/double/binary array casts to string May 21, 2026
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