Class SqlParserTest.Sql

  • Enclosing class:

    protected class SqlParserTest.Sql
    extends java.lang.Object
    Helper class for building fluent code such as sql("values 1").ok();.
    • Field Summary

      Modifier and Type Field Description
      private boolean expression  
      private java.lang.String sql  
    • Constructor Summary

      Constructor Description
      Sql​(java.lang.String sql)  
      Sql​(java.lang.String sql, boolean expression)  
    • Field Detail

      • sql

        private final java.lang.String sql
      • expression

        private final boolean expression
    • Constructor Detail

      • Sql

        Sql​(java.lang.String sql)
      • Sql

        Sql​(java.lang.String sql,
            boolean expression)
    • Method Detail

      • node

        public SqlParserTest.Sql node​(org.hamcrest.Matcher<org.apache.calcite.sql.SqlNode> matcher)
      • expression

        public SqlParserTest.Sql expression()
        Flags that this is an expression, not a whole query.
      • sansCarets

        public SqlParserTest.Sql sansCarets()
        Removes the carets from the SQL string. Useful if you want to run a test once at a conformance level where it fails, then run it again at a conformance level where it succeeds.