kylin-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] imsong commented on a change in pull request #135: KYLIN-3347 : calcite function QueryService Exception
Date Thu, 26 Apr 2018 06:08:28 GMT
imsong commented on a change in pull request #135: KYLIN-3347 : calcite function QueryService
Exception
URL: https://github.com/apache/kylin/pull/135#discussion_r184268450
 
 

 ##########
 File path: query/src/main/java/org/apache/kylin/query/util/DefaultQueryTransformer.java
 ##########
 @@ -50,6 +50,8 @@
     private static final Pattern PIN_SUM_OF_FN_CONVERT = Pattern
             .compile(S0 + "SUM" + S0 + "\\(" + S0 + "\\{\\s*fn" + SM + "convert" + S0 + "\\("
+ S0 + "([^\\s,]+)" + S0
                     + "," + S0 + "SQL_DOUBLE" + S0 + "\\)" + S0 + "\\}" + S0 + "\\)", Pattern.CASE_INSENSITIVE);
+    private static final Pattern PTN_HAVING_FUNCTION = Pattern.compile("\\{fn" + "(.*?)"
+ "\\}",
 
 Review comment:
   @rogercloud
   
   Hello Roger
   
   I also need to use TIMESTAMPADD and SQL_TSI_HOUR functions.
   Because, Tableau + kylin odbc generate automatically query using this functions.
   
   I don't think that is great idea... I hope that Kylin can support calcite reserved functions.
https://calcite.apache.org/docs/reference.html
   
   thank you. :)

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

Mime
View raw message