Skip to content

Conversation

comphead
Copy link
Contributor

Which issue does this PR close?

Closes #2552 .

Rationale for this change

What changes are included in this PR?

How are these changes tested?

@comphead
Copy link
Contributor Author

Depends on #2586

}
}

test("test concat function - strings") {
Copy link
Member

Choose a reason for hiding this comment

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

Concat supports other types as well:

private def allowedTypes: Seq[AbstractDataType] = Seq(StringType, BinaryType, ArrayType)

Copy link
Contributor Author

@comphead comphead Oct 21, 2025

Choose a reason for hiding this comment

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

Thanks @andygrove this PR for string only
ArrayType waits for apache/datafusion#18020

I dont see binary type support though https://spark.apache.org/docs/latest/api/sql/#concat

UPD: Binary it is probably a specific case of array concat

scala> spark.sql("select concat(to_binary('abc'), to_binary('def'))").show(false)
+--------------------------------------+
|concat(to_binary(abc), to_binary(def))|
+--------------------------------------+
|[0A BC 0D EF]                         |
+--------------------------------------+

I'll check this

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.

Comet cannot accelerate Concat because: concat is not supported

2 participants