public CatalogSchemaTableName asCatalogSchemaTableName() { return new CatalogSchemaTableName(catalogName, schemaName, objectName); }
public CatalogSchemaTableName asCatalogSchemaTableName() { return new CatalogSchemaTableName(catalogName, schemaName, objectName); }
if (writerTarget instanceof CreateHandle) { CreateHandle createHandle = (CreateHandle) writerTarget; context.setOutputTable(new CatalogSchemaTableName( createHandle.getHandle().getConnectorId().getCatalogName(), createHandle.getSchemaTableName().getSchemaName(), context.setOutputTable(new CatalogSchemaTableName( insertHandle.getHandle().getConnectorId().getCatalogName(), insertHandle.getSchemaTableName().getSchemaName(), context.setOutputTable(new CatalogSchemaTableName( deleteHandle.getHandle().getConnectorId().getCatalogName(), deleteHandle.getSchemaTableName().getSchemaName(),
@Override public Void visitTableScan(TableScanNode node, IOPlanBuilder context) { TableMetadata tableMetadata = metadata.getTableMetadata(session, node.getTable()); context.addInputTableColumnInfo(new IOPlan.TableColumnInfo( new CatalogSchemaTableName( tableMetadata.getConnectorId().getCatalogName(), tableMetadata.getTable().getSchemaName(), tableMetadata.getTable().getTableName()), parseConstraints(node.getTable(), node.getCurrentConstraint()))); return null; }
@Override public Void visitTableScan(TableScanNode node, IoPlanBuilder context) { TableMetadata tableMetadata = metadata.getTableMetadata(session, node.getTable()); context.addInputTableColumnInfo(new IoPlan.TableColumnInfo( new CatalogSchemaTableName( tableMetadata.getConnectorId().getCatalogName(), tableMetadata.getTable().getSchemaName(), tableMetadata.getTable().getTableName()), parseConstraints(node.getTable(), node.getCurrentConstraint()))); return null; }
if (writerTarget instanceof CreateHandle) { CreateHandle createHandle = (CreateHandle) writerTarget; context.setOutputTable(new CatalogSchemaTableName( createHandle.getHandle().getConnectorId().getCatalogName(), createHandle.getSchemaTableName().getSchemaName(), context.setOutputTable(new CatalogSchemaTableName( insertHandle.getHandle().getConnectorId().getCatalogName(), insertHandle.getSchemaTableName().getSchemaName(), context.setOutputTable(new CatalogSchemaTableName( deleteHandle.getHandle().getConnectorId().getCatalogName(), deleteHandle.getSchemaTableName().getSchemaName(),
@Test public void testIOExplain() { String query = "SELECT * FROM orders"; MaterializedResult result = computeActual("EXPLAIN (TYPE IO, FORMAT JSON) " + query); TableColumnInfo input = new TableColumnInfo( new CatalogSchemaTableName("local", "sf0.01", "orders"), ImmutableSet.of( new ColumnConstraint( "orderstatus", createVarcharType(1).getTypeSignature(), new FormattedDomain( false, ImmutableSet.of( new FormattedRange( new FormattedMarker(Optional.of("F"), EXACTLY), new FormattedMarker(Optional.of("F"), EXACTLY)), new FormattedRange( new FormattedMarker(Optional.of("O"), EXACTLY), new FormattedMarker(Optional.of("O"), EXACTLY)), new FormattedRange( new FormattedMarker(Optional.of("P"), EXACTLY), new FormattedMarker(Optional.of("P"), EXACTLY))))))); assertEquals( jsonCodec(IOPlan.class).fromJson((String) getOnlyElement(result.getOnlyColumnAsSet())), new IOPlan(ImmutableSet.of(input), Optional.empty())); } }
new IOPlan( ImmutableSet.of(new TableColumnInfo( new CatalogSchemaTableName(catalog, "tpch", "test_orders"), ImmutableSet.of( new ColumnConstraint( new IOPlan( ImmutableSet.of(new TableColumnInfo( new CatalogSchemaTableName(catalog, "tpch", "test_orders"), ImmutableSet.of( new ColumnConstraint(
new IoPlan( ImmutableSet.of(new TableColumnInfo( new CatalogSchemaTableName(catalog, "tpch", "test_orders"), ImmutableSet.of( new ColumnConstraint( new IoPlan( ImmutableSet.of(new TableColumnInfo( new CatalogSchemaTableName(catalog, "tpch", "test_orders"), ImmutableSet.of( new ColumnConstraint(