PColumn column = ref.getColumn(); if (!SchemaUtil.isPKColumn(column)) { PTable table = ref.getTable(); String defaultFamilyName = table.getDefaultFamilyName() == null ? QueryConstants.DEFAULT_COLUMN_FAMILY : table.getDefaultFamilyName().getString();
PTable tableContainingColumnToDrop = columnRefToDrop.getTable(); byte[] emptyCF = getNewEmptyColumnFamilyOrNull(tableContainingColumnToDrop, columnRefToDrop.getColumn()); if (emptyCF != null) {
PTable tableContainingColumnToDrop = columnRefToDrop.getTable(); byte[] emptyCF = getNewEmptyColumnFamilyOrNull(tableContainingColumnToDrop, columnRefToDrop.getColumn()); if (emptyCF != null) {
@Override protected ColumnRef resolveColumn(ColumnParseNode node) throws SQLException { ColumnRef ref = super.resolveColumn(node); PTable table = ref.getTable(); // Track if we need to compare KeyValue during filter evaluation // using column family. If the column qualifier is enough, we // just use that. try { if (!SchemaUtil.isPKColumn(ref.getColumn())) { table.getColumnForColumnName(ref.getColumn().getName().getString()); } } catch (AmbiguousColumnException e) { disambiguateWithFamily = true; } return ref; } }
PTable tableContainingColumnToDrop = columnRefToDrop.getTable(); byte[] emptyCF = getNewEmptyColumnFamilyOrNull(tableContainingColumnToDrop, columnRefToDrop.getColumn()); if (emptyCF != null) {
PTable table = ref.getTable(); int pkPosition = ref.getPKSlotPosition();
PColumn column = ref.getColumn(); if (!SchemaUtil.isPKColumn(column)) { PTable table = ref.getTable(); String defaultFamilyName = table.getDefaultFamilyName() == null ? QueryConstants.DEFAULT_COLUMN_FAMILY : table.getDefaultFamilyName().getString();
PColumn column = ref.getColumn(); if (!SchemaUtil.isPKColumn(column)) { PTable table = ref.getTable(); String defaultFamilyName = table.getDefaultFamilyName() == null ? QueryConstants.DEFAULT_COLUMN_FAMILY : table.getDefaultFamilyName().getString();
@Override protected ColumnRef resolveColumn(ColumnParseNode node) throws SQLException { ColumnRef ref = super.resolveColumn(node); PTable table = ref.getTable(); // if current table in the context is local index and table in column reference is global means // the column is not present in the local index. If where condition contains the column // not present in the index then we need to go through main table for each row in index and get the // missing column which is like full scan of index table and data table. Which is // inefficient. Then we can skip this plan. if (context.getCurrentTable().getTable().getIndexType() == IndexType.LOCAL && (table.getIndexType() == null || table.getIndexType() == IndexType.GLOBAL)) { String schemaNameStr = table.getSchemaName()==null?null:table.getSchemaName().getString(); String tableNameStr = table.getTableName()==null?null:table.getTableName().getString(); throw new ColumnNotFoundException(schemaNameStr, tableNameStr, null, ref.getColumn().getName().getString()); } // Track if we need to compare KeyValue during filter evaluation // using column family. If the column qualifier is enough, we // just use that. try { if (!SchemaUtil.isPKColumn(ref.getColumn())) { table.getColumnForColumnName(ref.getColumn().getName().getString()); } } catch (AmbiguousColumnException e) { disambiguateWithFamily = true; } return ref; } }
@Override protected ColumnRef resolveColumn(ColumnParseNode node) throws SQLException { ColumnRef ref = super.resolveColumn(node); PTable table = ref.getTable(); // if current table in the context is local index and table in column reference is global means // the column is not present in the local index. If where condition contains the column // not present in the index then we need to go through main table for each row in index and get the // missing column which is like full scan of index table and data table. Which is // inefficient. Then we can skip this plan. if (context.getCurrentTable().getTable().getIndexType() == IndexType.LOCAL && (table.getIndexType() == null || table.getIndexType() == IndexType.GLOBAL)) { String schemaNameStr = table.getSchemaName()==null?null:table.getSchemaName().getString(); String tableNameStr = table.getTableName()==null?null:table.getTableName().getString(); throw new ColumnNotFoundException(schemaNameStr, tableNameStr, null, ref.getColumn().getName().getString()); } // Track if we need to compare KeyValue during filter evaluation // using column family. If the column qualifier is enough, we // just use that. try { if (!SchemaUtil.isPKColumn(ref.getColumn())) { table.getColumnForColumnName(ref.getColumn().getName().getString()); } } catch (AmbiguousColumnException e) { disambiguateWithFamily = true; } return ref; } }
PTable table = ref.getTable(); int pkPosition = ref.getPKSlotPosition();
PTable table = ref.getTable(); int pkPosition = ref.getPKSlotPosition();