Skip to content

Commit

Permalink
Merge pull request #1647 from johnedquinn/v1-fn-consolidation
Browse files Browse the repository at this point in the history
Rewrites PLUS and BITWISE_AND implementations using new modeling
  • Loading branch information
johnedquinn authored Nov 19, 2024
2 parents 10f93bd + 4c9bc85 commit 6a4b3e2
Show file tree
Hide file tree
Showing 42 changed files with 1,009 additions and 605 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,10 @@ internal class ExprCallDynamic(
exactMatches = currentExactMatches
}
}
return if (currentMatch == null) null else Candidate(functions[currentMatch!!].getInstance(args.toTypedArray()))
return if (currentMatch == null) null else {
val instance = functions[currentMatch!!].getInstance(args.toTypedArray()) ?: return null
Candidate(instance)
}
}

/**
Expand Down
8 changes: 8 additions & 0 deletions partiql-eval/src/test/kotlin/org/partiql/eval/PTestCase.kt
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
package org.partiql.eval

interface PTestCase : Runnable {
/**
* Executes the test case
*/
override fun run()
}
Loading

0 comments on commit 6a4b3e2

Please sign in to comment.