Skip to content

Commit ce7985f

Browse files
committed
refactor: revert to simpler binary construction for any rep UDT in calcite
1 parent b2063d0 commit ce7985f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

isthmus/src/main/java/io/substrait/isthmus/expression/ExpressionRexConverter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ public RexNode visit(Expression.NullLiteral expr, Context context) throws Runtim
112112
public RexNode visit(Expression.UserDefinedAnyLiteral expr, Context context)
113113
throws RuntimeException {
114114
RexLiteral binaryLiteral =
115-
rexBuilder.makeBinaryLiteral(new ByteString(expr.value().toByteString().toByteArray()));
115+
rexBuilder.makeBinaryLiteral(new ByteString(expr.value().toByteArray()));
116116
RelDataType type = typeConverter.toCalcite(typeFactory, expr.getType());
117117
return rexBuilder.makeReinterpretCast(type, binaryLiteral, rexBuilder.makeLiteral(false));
118118
}

0 commit comments

Comments
 (0)