drill-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Hsuan Yi Chu <hyi...@maprtech.com>
Subject Deterministic behavior of Negative Function?
Date Tue, 02 Feb 2016 07:42:44 GMT
All the variants of Negative DrillFuncHolder are supposed to be
deterministic. However, when they are being registered
into DrillOperatorTable, there is a if-statement:

https://github.com/apache/drill/blob/master/exec/java-exec/src/main/java/org/apache/drill/exec/expr/fn/DrillFunctionRegistry.java#L116

which claims DrillFuncHolder being non-deterministic when return type is
Interval. Why it is necessary to have this if-condition?

-------------------------

Making DrillFuncHolder non-deterministic will prevent partition-pruing or
constant folding from happening.

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message