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

Commit

Permalink
[NSE-15]fix unexpected exception (#16)
Browse files Browse the repository at this point in the history
* fix unexpected exception

Signed-off-by: Yuan Zhou <[email protected]>

* do not early close sorter

Signed-off-by: Yuan Zhou <[email protected]>
  • Loading branch information
zhouyuan authored Jan 8, 2021
1 parent fde3007 commit ec28760
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,10 @@ object ColumnarSortMergeJoin extends Logging {
val lkeyProjectOrdinalList = new ListBuffer[Int]()
val lkeyFieldList: List[Field] = leftKeys.toList.zipWithIndex.map {
case (expr, i) => {
//TODO(): fix this workaround
if (expr.isInstanceOf[AttributeReference] && expr.asInstanceOf[AttributeReference].name == "none") {
return
}
val (nativeNode, returnType) = ConverterUtils.getColumnarFuncNode(expr)
if (s"${nativeNode.toProtobuf}".contains("none#")) {
throw new UnsupportedOperationException(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,8 @@ class ColumnarSorter(
has_next = sort_iterator.hasNext()

if (has_next == false) {
close()
//TODO(): should try to close sorter
//close()
}

return has_next
Expand Down

0 comments on commit ec28760

Please sign in to comment.