This is an automated email from the ASF dual-hosted git repository.

hongze pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-gluten.git


The following commit(s) were added to refs/heads/main by this push:
     new 54ac91bc09 [FLINK] Incorrect Flink-to-Velox conversion on varbinary 
literals (#9669)
54ac91bc09 is described below

commit 54ac91bc09274f79ff21e3256de1199646bb6277
Author: Hongze Zhang <[email protected]>
AuthorDate: Wed May 28 10:11:43 2025 +0100

    [FLINK] Incorrect Flink-to-Velox conversion on varbinary literals (#9669)
---
 .../src/main/java/org/apache/gluten/rexnode/RexNodeConverter.java      | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git 
a/gluten-flink/planner/src/main/java/org/apache/gluten/rexnode/RexNodeConverter.java
 
b/gluten-flink/planner/src/main/java/org/apache/gluten/rexnode/RexNodeConverter.java
index 165619b61f..18b01a0e5b 100644
--- 
a/gluten-flink/planner/src/main/java/org/apache/gluten/rexnode/RexNodeConverter.java
+++ 
b/gluten-flink/planner/src/main/java/org/apache/gluten/rexnode/RexNodeConverter.java
@@ -45,6 +45,7 @@ import org.apache.calcite.rex.RexLiteral;
 import org.apache.calcite.rex.RexNode;
 
 import java.math.BigDecimal;
+import java.nio.charset.StandardCharsets;
 import java.util.List;
 import java.util.stream.Collectors;
 
@@ -102,7 +103,7 @@ public class RexNodeConverter {
       case VARCHAR:
         return new VarCharValue(literal.getValue().toString());
       case BINARY:
-        return new VarBinaryValue(literal.getValue().toString());
+        return 
VarBinaryValue.create(literal.getValue().toString().getBytes(StandardCharsets.UTF_8));
       case DECIMAL:
       case INTERVAL_SECOND:
         // interval is used as decimal.


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to