You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@kylin.apache.org by GitBox <gi...@apache.org> on 2019/11/01 06:58:40 UTC

[GitHub] [kylin] weibin0516 commented on a change in pull request #902: KYLIN-3832 Query pushdown support postgresql

weibin0516 commented on a change in pull request #902: KYLIN-3832 Query pushdown support postgresql
URL: https://github.com/apache/kylin/pull/902#discussion_r341463032
 
 

 ##########
 File path: core-job/src/main/java/org/apache/kylin/job/util/FlatTableSqlQuoteUtils.java
 ##########
 @@ -25,66 +25,79 @@
 import java.util.regex.Matcher;
 import java.util.regex.Pattern;
 
+import org.apache.calcite.sql.SqlDialect;
 import org.apache.commons.lang.StringUtils;
 import org.apache.kylin.common.KylinConfig;
-import org.apache.kylin.common.SourceDialect;
 import org.apache.kylin.metadata.model.ColumnDesc;
 import org.apache.kylin.metadata.model.IJoinedFlatTableDesc;
 import org.apache.kylin.metadata.model.TableDesc;
+import org.apache.kylin.metadata.model.TableRef;
 import org.apache.kylin.metadata.model.TblColRef;
 
 import com.google.common.collect.Lists;
 import com.google.common.collect.Maps;
 
+import static org.apache.calcite.sql.SqlDialect.EMPTY_CONTEXT;
+
 public class FlatTableSqlQuoteUtils {
+
     private static KylinConfig kylinConfig = KylinConfig.getInstanceFromEnv();
+    private static final Map<String, SqlDialect> sqlDialectMap = Maps.newHashMap();
+    private static SqlDialect defaultDialect = null;
+    public static final SqlDialect NON_QUOTE_DIALECT = new SqlDialect(EMPTY_CONTEXT);
+    private static final SqlDialect HIVE_DIALECT = new SqlDialect(EMPTY_CONTEXT.withIdentifierQuoteString("`"));
 
 Review comment:
   Why `HIVE_DIALECT` not included in `static {...}` below ? 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to 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