use of com.yahoo.elide.datastores.aggregation.queryengines.sql.metadata.SQLTable in project elide by yahoo.
the class SQLColumnProjectionTest method testPhysicalColumnThatCanNest.
@Test
public void testPhysicalColumnThatCanNest() throws Exception {
SQLTable table = metaDataStore.getTable(ClassType.of(TableB.class));
ColumnProjection projection = table.getColumnProjection("dim1");
assertTrue(projection.canNest(table, metaDataStore));
}
use of com.yahoo.elide.datastores.aggregation.queryengines.sql.metadata.SQLTable in project elide by yahoo.
the class SQLColumnProjectionTest method testColumnArgsColumnThatCanNest.
@Test
public void testColumnArgsColumnThatCanNest() throws Exception {
SQLTable table = metaDataStore.getTable(ClassType.of(TableA.class));
Map<String, Argument> args = new HashMap<>();
args.put("foo", Argument.builder().name("foo").value("bar").build());
ColumnProjection projection = table.getColumnProjection("dim2", args);
assertTrue(projection.canNest(table, metaDataStore));
}
use of com.yahoo.elide.datastores.aggregation.queryengines.sql.metadata.SQLTable in project elide by yahoo.
the class HasColumnArgsVisitorTest method testPhysicalColumn.
@Test
public void testPhysicalColumn() throws Exception {
SQLTable table = metaDataStore.getTable(ClassType.of(TableB.class));
ColumnProjection projection = table.getColumnProjection("physical");
assertFalse(matches(table, projection));
}
use of com.yahoo.elide.datastores.aggregation.queryengines.sql.metadata.SQLTable in project elide by yahoo.
the class HasColumnArgsVisitorTest method testJoinWithColumnArgs.
@Test
public void testJoinWithColumnArgs() throws Exception {
SQLTable table = metaDataStore.getTable(ClassType.of(TableA.class));
ColumnProjection projection = table.getColumnProjection("joinWithColumnArgsToPhysical");
assertTrue(matches(table, projection));
}
use of com.yahoo.elide.datastores.aggregation.queryengines.sql.metadata.SQLTable in project elide by yahoo.
the class HasColumnArgsVisitorTest method testColumnArgs.
@Test
public void testColumnArgs() throws Exception {
SQLTable table = metaDataStore.getTable(ClassType.of(TableC.class));
ColumnProjection projection = table.getColumnProjection("columnArgs");
assertTrue(matches(table, projection));
}
Aggregations