Skip to content
This repository has been archived by the owner on Sep 18, 2023. It is now read-only.

Exception when there is function expression in pos or len of substring #1053

Closed
jackylee-ch opened this issue Jul 28, 2022 · 1 comment
Closed
Labels
bug Something isn't working

Comments

@jackylee-ch
Copy link
Contributor

Describe the bug

Caused by: java.lang.ClassCastException: com.intel.oap.expression.ColumnarSubtract cannot be cast to com.intel.oap.expression.ColumnarLiteral
	at com.intel.oap.expression.ColumnarSubString.doColumnarCodeGen(ColumnarTernaryOperator.scala:60)
	at com.intel.oap.expression.ColumnarAlias.doColumnarCodeGen(ColumnarNamedExpressions.scala:39)
	at com.intel.oap.expression.ColumnarConditionProjector$.$anonfun$init$3(ColumnarConditionProjector.scala:371)

To Reproduce

select substr(col, 2, length(col) - 2) from table

Expected behavior
None Exception.

Additional context
None

@PHILO-HE
Copy link
Collaborator

Fixed.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants