Class SqlToRelTestBase

java.lang.Object
org.apache.calcite.test.SqlToRelTestBase

public abstract class SqlToRelTestBase extends Object
SqlToRelTestBase is an abstract base for tests which involve conversion from SQL to relational algebra.

SQL statements to be translated can use the schema defined in MockCatalogReader; note that this is slightly different from Farrago's SALES schema. If you get a parser or validator error from your test SQL, look down in the stack until you see "Caused by", which will usually tell you the real error.

  • Field Details

    • NL

      protected static final String NL
  • Constructor Details

    • SqlToRelTestBase

      public SqlToRelTestBase()
  • Method Details