You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@storm.apache.org by HeartSaVioR <gi...@git.apache.org> on 2016/09/26 03:14:40 UTC

[GitHub] storm issue #1714: STORM-2125 Use Calcite's implementation of Rex Compiler

Github user HeartSaVioR commented on the issue:

    https://github.com/apache/storm/pull/1714
  
    There's an another issue: when to initialize DataContext.
    
    Calcite utilizes the variables in DataContext. and there're datetime related variables in DataContext.
    
    The thing is, SQL standard says that functions such as CURRENT_TIMESTAMP return the same value throughout the query. Since we're querying in stream, when to initialize DataContext defines the boundary to show same datetime across rows. With joining stream, the issue is more complicated.
    
    For now I just initialize DataContext at the query compilation phase and pass it to components, so that the value of current datetime is static (don't change) across workers in topology. If we would like to make it dynamic, we need to discuss.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---