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

Commit

Permalink
Fix found issues
Browse files Browse the repository at this point in the history
  • Loading branch information
PHILO-HE authored and zhouyuan committed May 24, 2022
1 parent 8550282 commit 5a41c36
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -419,7 +419,7 @@ object ColumnarExpressionConverter extends Logging {
replaceWithColumnarExpression(
getArrayItem.ordinal,
convertBoundRefToAttrRef = convertBoundRefToAttrRef),
new ColumnarStringSplitPart(strSplit.str, strSplit.regex, getArrayItem.ordinal, null))
new StringSplitPart(strSplit.str, strSplit.regex, getArrayItem.ordinal, null))
case other =>
throw new UnsupportedOperationException(
s" --> ${other.getClass} | ${other} is not currently" +
Expand Down Expand Up @@ -479,6 +479,15 @@ object ColumnarExpressionConverter extends Logging {
return true
case c: Concat =>
c.children.map(containsSubquery).exists(_ == true)
case getArrayItem: GetArrayItem =>
getArrayItem.child match {
case strSplit: StringSplit =>
strSplit.children.map(containsSubquery).exists(_ == true)
case other =>
throw new UnsupportedOperationException(
s" --> ${other.getClass} | ${other} is not currently" +
s" supported as child of GetArrayItem.")
}
case b: BinaryExpression =>
containsSubquery(b.left) || containsSubquery(b.right)
case s: String2TrimExpression =>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ object ColumnarTernaryOperator {
new ColumnarSubString(src, arg1, arg2, ss)
// Currently not supported.
case ssp: StringSplitPart =>
new ColumnarStringSplitPart(ssp.str, ssp.regex, ssp.limit, ssp)
new ColumnarStringSplitPart(src, arg1, arg2, ssp)
case st: StringTranslate =>
new ColumnarStringTranslate(src, arg1, arg2, st)
case sl: StringLocate =>
Expand Down

0 comments on commit 5a41c36

Please sign in to comment.