Class BabelParserTest


  • public class BabelParserTest
    extends SqlParserTest
    Tests the "Babel" SQL parser, that understands all dialects of SQL.
    • Constructor Detail

      • BabelParserTest

        public BabelParserTest()
    • Method Detail

      • parserImplFactory

        protected org.apache.calcite.sql.parser.SqlParserImplFactory parserImplFactory()
        Description copied from class: SqlParserTest
        Implementors of custom parsing logic who want to reuse this test should override this method with the factory for their extension parser.
        Overrides:
        parserImplFactory in class SqlParserTest
      • testGenerateKeyWords

        public void testGenerateKeyWords()
        Description copied from class: SqlParserTest
        Generates a copy of reference.md with the current set of key words. Fails if the copy is different from the original.
        Overrides:
        testGenerateKeyWords in class SqlParserTest
      • testReservedWords

        public void testReservedWords()
      • testMetadata

        public void testMetadata()

        Copy-pasted from base method, but with some key differences.

        Overrides:
        testMetadata in class SqlParserTest
      • testSelect

        public void testSelect()
      • testYearIsNotReserved

        public void testYearIsNotReserved()
      • testKeywords

        public void testKeywords()
        Tests that there are no reserved keywords.
      • testAs

        public void testAs()
        In Babel, AS is not reserved.
        Overrides:
        testAs in class SqlParserTest
      • testDesc

        public void testDesc()
        In Babel, DESC is not reserved.