public static TableDesc getOutputTableDesc(LogicalPlan plan) { LogicalNode [] found = findAllNodes(plan.getRootNode().getChild(), NodeType.CREATE_TABLE, NodeType.INSERT); if (found.length == 0) { return new TableDesc(null, plan.getRootNode().getOutSchema(), "TEXT", new KeyValueSet(), null); } else { StoreTableNode storeNode = (StoreTableNode) found[0]; return new TableDesc( storeNode.getTableName(), storeNode.getOutSchema(), storeNode.getStorageType(), storeNode.getOptions(), storeNode.getUri()); } }
public static TableDesc getOutputTableDesc(LogicalPlan plan) { LogicalNode [] found = findAllNodes(plan.getRootNode().getChild(), NodeType.CREATE_TABLE, NodeType.INSERT); if (found.length == 0) { return new TableDesc(null, plan.getRootNode().getOutSchema(), "TEXT", new KeyValueSet(), null); } else { StoreTableNode storeNode = (StoreTableNode) found[0]; return new TableDesc( storeNode.getTableName(), storeNode.getOutSchema(), storeNode.getStorageType(), storeNode.getOptions(), storeNode.getUri()); } }
int i = 0; for (int j = 0; j < partitionKeyColumns.length; j++) { int id = storeTableNode.getOutSchema().getRootColumns().size() + j; Column column = storeTableNode.getInSchema().getColumn(id); sortSpecs[i++] = new SortSpec(column, true, false);
int i = 0; for (int j = 0; j < partitionKeyColumns.length; j++) { int id = storeTableNode.getOutSchema().getRootColumns().size() + j; Column column = storeTableNode.getInSchema().getColumn(id); sortSpecs[i++] = new SortSpec(column, true, false);
projectedSchema = ((InsertNode) node).getProjectedSchema(); } else { tableSchema = node.getOutSchema(); projectedSchema = node.getInSchema();
projectedSchema = ((InsertNode) node).getProjectedSchema(); } else { tableSchema = node.getOutSchema(); projectedSchema = node.getInSchema();
public ColPartitionStoreExec(TaskAttemptContext context, StoreTableNode plan, PhysicalExec child) { super(context, plan.getInSchema(), plan.getOutSchema(), child); this.plan = plan; keyIds[i] = plan.getOutSchema().getColumnId(column.getQualifiedName());
public ColPartitionStoreExec(TaskAttemptContext context, StoreTableNode plan, PhysicalExec child) { super(context, plan.getInSchema(), plan.getOutSchema(), child); this.plan = plan; keyIds[i] = plan.getOutSchema().getColumnId(column.getQualifiedName());