Class LexEscapeTest


  • public class LexEscapeTest
    extends java.lang.Object
    Testing SqlValidator and Lex quoting.
    • Constructor Detail

      • LexEscapeTest

        public LexEscapeTest()
    • Method Detail

      • getPlanner

        private static org.apache.calcite.tools.Planner getPlanner​(java.util.List<org.apache.calcite.plan.RelTraitDef> traitDefs,
                                                                   org.apache.calcite.sql.parser.SqlParser.Config parserConfig,
                                                                   org.apache.calcite.tools.Program... programs)
      • runProjectQueryWithLex

        private static void runProjectQueryWithLex​(org.apache.calcite.config.Lex lex,
                                                   java.lang.String sql)
                                            throws org.apache.calcite.sql.parser.SqlParseException,
                                                   org.apache.calcite.tools.ValidationException,
                                                   org.apache.calcite.tools.RelConversionException
        Throws:
        org.apache.calcite.sql.parser.SqlParseException
        org.apache.calcite.tools.ValidationException
        org.apache.calcite.tools.RelConversionException
      • testCalciteEscapeOracle

        public void testCalciteEscapeOracle()
                                     throws org.apache.calcite.sql.parser.SqlParseException,
                                            org.apache.calcite.tools.ValidationException,
                                            org.apache.calcite.tools.RelConversionException
        Throws:
        org.apache.calcite.sql.parser.SqlParseException
        org.apache.calcite.tools.ValidationException
        org.apache.calcite.tools.RelConversionException
      • testCalciteEscapeMySql

        public void testCalciteEscapeMySql()
                                    throws org.apache.calcite.sql.parser.SqlParseException,
                                           org.apache.calcite.tools.ValidationException,
                                           org.apache.calcite.tools.RelConversionException
        Throws:
        org.apache.calcite.sql.parser.SqlParseException
        org.apache.calcite.tools.ValidationException
        org.apache.calcite.tools.RelConversionException
      • testCalciteEscapeMySqlAnsi

        public void testCalciteEscapeMySqlAnsi()
                                        throws org.apache.calcite.sql.parser.SqlParseException,
                                               org.apache.calcite.tools.ValidationException,
                                               org.apache.calcite.tools.RelConversionException
        Throws:
        org.apache.calcite.sql.parser.SqlParseException
        org.apache.calcite.tools.ValidationException
        org.apache.calcite.tools.RelConversionException
      • testCalciteEscapeSqlServer

        public void testCalciteEscapeSqlServer()
                                        throws org.apache.calcite.sql.parser.SqlParseException,
                                               org.apache.calcite.tools.ValidationException,
                                               org.apache.calcite.tools.RelConversionException
        Throws:
        org.apache.calcite.sql.parser.SqlParseException
        org.apache.calcite.tools.ValidationException
        org.apache.calcite.tools.RelConversionException
      • testCalciteEscapeJava

        public void testCalciteEscapeJava()
                                   throws org.apache.calcite.sql.parser.SqlParseException,
                                          org.apache.calcite.tools.ValidationException,
                                          org.apache.calcite.tools.RelConversionException
        Throws:
        org.apache.calcite.sql.parser.SqlParseException
        org.apache.calcite.tools.ValidationException
        org.apache.calcite.tools.RelConversionException