[
https://issues.apache.org/jira/browse/ASTERIXDB-1430?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15392551#comment-15392551
]
Vignesh Raghunathan commented on ASTERIXDB-1430:
------------------------------------------------
I posted the following questions in the mailing list but I didn't get all of
them answered:
I am trying to step through some of the function descriptor code. For instance,
I launched an AsterixDB instance via AsterixHyracksIntegrationUtil, placed a
breakpoint in
org.apache.asterix.runtime.evaluators.constructors.ATimeConstructorDescriptor.createEvaluatorFactory(...).new
IScalarEvaluatorFactory() {...}.createScalarEvaluator(...).new
IScalarEvaluator() {...}.evaluate(IFrameTupleReference, IPointable)
and ran the query
let $v := time(“12:23:23”)
return $v
However, execution doesn’t stop at the breakpoint. My questions are as follows:
1. http://sigmod.github.io/papers/socc15-final153.pdf mentions runtime
artifacts called evaluators for function expressions. Is the evaluate function
mentioned above part of an evaluator for the time constructor?
2. Is a separate JVM launched for each virtual node controller?
3. How can I debug a task that is scheduled to run in a particular node
controller?
As an aside, http://sigmod.github.io/papers/socc15-final153.pdf mentions that
translation between logical functions and evaluators happen during the job
generation phase. Does that mean the rule based physical optimization phase is
skipped for functions?
I am also not able to figure out where the function evaluators are actually
called in code. Where can I find them?
[~imaxon] [[email protected]] [~tillw] Could you please help?
> 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)