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

[NSE-207] fix scala unit tests #393

Merged
merged 11 commits into from
Jul 15, 2021
Merged

Conversation

rui-mo
Copy link
Collaborator

@rui-mo rui-mo commented Jul 6, 2021

What changes were proposed in this pull request?

This pr:

  • fix concat w/ null
  • fix local function calling undefined variables
  • fix aggregate and sort for literal
  • fix some date and timestamp functions
  • add fallback to subquery and coalesce
  • fixed segfault in SMJ caused by the case of field name

depends on: oap-project/arrow#26
#207

How was this patch tested?

verified on TPC-DS v1 and v2

@github-actions
Copy link

github-actions bot commented Jul 6, 2021

#207

(TreeBuilder.makeLiteral(value.asInstanceOf[java.lang.Long]), resultType)
val origLongNode = TreeBuilder.makeLiteral(value.asInstanceOf[java.lang.Long])
val timestampNode = TreeBuilder.makeFunction(
"seconds_to_timestamp", Lists.newArrayList(origLongNode), resultType)
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To fix this issue: Failed to make LLVM module due to Return type of root node int64 does not match that of expression timestamp[us, tz=UTC]

@rui-mo rui-mo force-pushed the wip_fix_ut_3 branch 3 times, most recently from 350de4f to aa38b68 Compare July 12, 2021 10:08
@rui-mo rui-mo changed the title [NSE-207] fix scala unit tests [DNM][NSE-207] fix scala unit tests Jul 13, 2021
@@ -193,6 +206,9 @@ case class ColumnarSortExec(
val hasInput = iter.hasNext
val res = if (!hasInput) {
Iterator.empty
} else if (allLiteral) {
// If sortOrder are all Literal, no need to do sorting.
new CloseableColumnBatchIterator(iter)
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

for all Literal case

@rui-mo rui-mo changed the title [DNM][NSE-207] fix scala unit tests [NSE-207] fix scala unit tests Jul 14, 2021
@zhouyuan zhouyuan merged commit dae4d82 into oap-project:master Jul 15, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants