[ 
https://issues.apache.org/jira/browse/ASTERIXDB-1430?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15392689#comment-15392689
 ] 

Yingyi Bu commented on ASTERIXDB-1430:
--------------------------------------

[~vignesh.raghunathan90], please take a look at FunctionCollection.java:
https://github.com/apache/asterixdb/blob/master/asterixdb/asterix-algebra/src/main/java/org/apache/asterix/translator/util/FunctionCollection.java

If a function is put in "functionsToInjectUnkownHandling", that means the 
actual byte code of the function will be generated (in order to deal with 
null/missing consistently) from the source code you see, otherwise, the byte 
code of the function is based on what you see in the source code.

In order to effectively debug, you can temporarily move the function descriptor 
you're interested from "functionsToInjectUnkownHandling" to "temp" and 
recompile everything.  Then, you should be able to step into its source code.  
But note that, once you're done with the fix, you should put back the function 
descriptor into  "functionsToInjectUnkownHandling".


> Unexpected behavior in datetime constructor
> -------------------------------------------
>
>                 Key: ASTERIXDB-1430
>                 URL: https://issues.apache.org/jira/browse/ASTERIXDB-1430
>             Project: Apache AsterixDB
>          Issue Type: Bug
>          Components: Functions - AQL
>            Reporter: Murtadha Hubail
>              Labels: starter
>
> I used the function adjust-datetime-for-timezone(datetime, zone), which 
> returns string type, to adjust the current datetime, then I wanted to use the 
> returned value as datetime type.
> When I tried the following:
> {noformat}
> let $adjustedDatetime := adjust-datetime-for-timezone(current-datetime(), 
> "-10:00")
> return datetime($adjustedDatetime)
> {noformat}
> The returned datetime value lost the adjustment.
> I think the datetime constructor should either respect the adjustment or 
> throw an invalid format exception.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to