public abstract class SqlToRelTestBase extends Object
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.
| 限定符和类型 | 类和说明 |
|---|---|
static class |
SqlToRelTestBase.CustomCorrelate
Custom implementation of Correlate for testing.
|
| 构造器和说明 |
|---|
SqlToRelTestBase() |
| 限定符和类型 | 方法和说明 |
|---|---|
SqlToRelFixture |
expr(String sql) |
SqlToRelFixture |
fixture()
Creates the test fixture that determines the behavior of tests.
|
SqlToRelFixture |
sql(String sql)
Creates a test context with a SQL query.
|
protected static final String NL
public SqlToRelFixture fixture()
public final SqlToRelFixture sql(String sql)
MockCatalogReaderSimple.init().public final SqlToRelFixture expr(String sql)
Copyright © 2012-2023 Apache Software Foundation. All Rights Reserved.