You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@asterixdb.apache.org by Heri Ramampiaro <he...@gmail.com> on 2015/08/21 00:16:13 UTC
CURRENT_DATE and CURRENT_TIME functions disabled?
Anyone knows why these values in "asterix-om/src/main/java/edu/uci/ics/asterix/om/functions/AsterixBuiltinFunctions.java” are false?
addFunction(CURRENT_DATE, ADateTypeComputer.INSTANCE, false);
addFunction(CURRENT_TIME, ATimeTypeComputer.INSTANCE, false);
Thanks,
-heri
Re: CURRENT_DATE and CURRENT_TIME functions disabled?
Posted by Heri Ramampiaro <he...@gmail.com>.
Thanks. This means we should not change them to “true” and keep them
as they are.
Best,
-heri
> On Aug 21, 2015, at 2:35 AM, Mike Carey <dt...@gmail.com> wrote:
>
> I thought it meant that it was false that they are FUNCTIONS.
> (These return different values per call even if given the same params.)
>
> On 8/20/15 3:19 PM, Taewoo Kim wrote:
>> As far as I know, that false means that the function doesn't require any
>> parameters. If it's true, then we need to provide parameters.
>>
>> Best,
>> Taewoo
>>
>> On Thu, Aug 20, 2015 at 3:16 PM, Heri Ramampiaro <he...@gmail.com> wrote:
>>
>>> Anyone knows why these values in
>>> "asterix-om/src/main/java/edu/uci/ics/asterix/om/functions/AsterixBuiltinFunctions.java”
>>> are false?
>>>
>>> addFunction(CURRENT_DATE, ADateTypeComputer.INSTANCE, false);
>>> addFunction(CURRENT_TIME, ATimeTypeComputer.INSTANCE, false);
>>>
>>> Thanks,
>>> -heri
>
Re: CURRENT_DATE and CURRENT_TIME functions disabled?
Posted by Mike Carey <dt...@gmail.com>.
I thought it meant that it was false that they are FUNCTIONS.
(These return different values per call even if given the same params.)
On 8/20/15 3:19 PM, Taewoo Kim wrote:
> As far as I know, that false means that the function doesn't require any
> parameters. If it's true, then we need to provide parameters.
>
> Best,
> Taewoo
>
> On Thu, Aug 20, 2015 at 3:16 PM, Heri Ramampiaro <he...@gmail.com> wrote:
>
>> Anyone knows why these values in
>> "asterix-om/src/main/java/edu/uci/ics/asterix/om/functions/AsterixBuiltinFunctions.java”
>> are false?
>>
>> addFunction(CURRENT_DATE, ADateTypeComputer.INSTANCE, false);
>> addFunction(CURRENT_TIME, ATimeTypeComputer.INSTANCE, false);
>>
>> Thanks,
>> -heri
Re: CURRENT_DATE and CURRENT_TIME functions disabled?
Posted by Taewoo Kim <wa...@gmail.com>.
As far as I know, that false means that the function doesn't require any
parameters. If it's true, then we need to provide parameters.
Best,
Taewoo
On Thu, Aug 20, 2015 at 3:16 PM, Heri Ramampiaro <he...@gmail.com> wrote:
> Anyone knows why these values in
> "asterix-om/src/main/java/edu/uci/ics/asterix/om/functions/AsterixBuiltinFunctions.java”
> are false?
>
> addFunction(CURRENT_DATE, ADateTypeComputer.INSTANCE, false);
> addFunction(CURRENT_TIME, ATimeTypeComputer.INSTANCE, false);
>
> Thanks,
> -heri
Re: CURRENT_DATE and CURRENT_TIME functions disabled?
Posted by Till Westmann <ti...@apache.org>.
The last parameter of addFunction is called isFunctional. So I think that this means that these functions are not actually functional in the sense that their result is not a consequence of the arguments that are being passed (especially as they don’t get any arguments).
Cheers,
Till
> On Aug 20, 2015, at 3:16 PM, Heri Ramampiaro <he...@gmail.com> wrote:
>
> Anyone knows why these values in "asterix-om/src/main/java/edu/uci/ics/asterix/om/functions/AsterixBuiltinFunctions.java” are false?
>
> addFunction(CURRENT_DATE, ADateTypeComputer.INSTANCE, false);
> addFunction(CURRENT_TIME, ATimeTypeComputer.INSTANCE, false);
>
> Thanks,
> -heri