fe/src/main/java/com/cloudera/impala/catalog/HdfsTable.java
/**
   * Create columns corresponding to fieldSchemas, including column statistics.
   * Throws a TableLoadingException if the metadata is incompatible with what we
   * support.
   */
Create columns corresponding to fieldSchemas, including column statistics.
Throws a TableLoadingException if the metadata is incompatible with what we
support.
Create columns corresponding to fieldSchemas including column statistics . Throws a TableLoadingException if the metadata is incompatible with what we support .
private void loadColumns(List<FieldSchema> fieldSchemas, HiveMetaStoreClient client)
      throws TableLoadingException {
    int pos = 0;
    for (FieldSchema s: fieldSchemas) {
      ColumnType type = parseColumnType(s);
      if (pos < numClusteringCols_ && !type.supportsTablePartitioning()) {
        throw new TableLoadingException(
            String.format("Failed to load metadata for table '%s' because of " +
                "unsupported partition-column type '%s' in partition column '%s'",
                getName(), type.toString(), s.getName()));
      }
      Column col = new Column(s.getName(), type, s.getComment(), pos);
      colsByPos_.add(col);
      colsByName_.put(s.getName(), col);
      ++pos;
      loadColumnStats(col, client);
    }
  }
private void loadColumns ( List < FieldSchema > fieldSchemas , HiveMetaStoreClient client ) throws TableLoadingException { int pos = 0 ; for ( FieldSchema s : fieldSchemas ) { ColumnType type = parseColumnType ( s ) ; if ( pos < numClusteringCols_ && ! type . supportsTablePartitioning ( ) ) { throw new TableLoadingException ( String . format ( "Failed to load metadata for table '%s' because of " + "unsupported partition-column type '%s' in partition column '%s'" , getName ( ) , type . toString ( ) , s . getName ( ) ) ) ; } Column col = new Column ( s . getName ( ) , type , s . getComment ( ) , pos ) ; colsByPos_ . add ( col ) ; colsByName_ . put ( s . getName ( ) , col ) ; ++ pos ; loadColumnStats ( col , client ) ; } }
Create columns corresponding to fieldSchemas, including column statistics.
Create columns corresponding to fieldSchemas including column statistics .
// Check if we support partitioning on columns of such a type. // Load and set column stats in col.