/** * @param part Partition * @param tblDesc Table Descriptor * @param usePartSchemaProperties Use Partition Schema Properties to set the * partition descriptor properties. This is usually set to true by the caller * if the table is partitioned, i.e. if the table has partition columns. * @throws HiveException */ public PartitionDesc(final Partition part,final TableDesc tblDesc, boolean usePartSchemaProperties) throws HiveException { PartitionDescConstructorHelper(part, tblDesc, usePartSchemaProperties); //We use partition schema properties to set the partition descriptor properties // if usePartSchemaProperties is set to true. if (usePartSchemaProperties) { setProperties(part.getMetadataFromPartitionSchema()); } else { // each partition maintains a large properties setProperties(part.getSchemaFromTableSchema(tblDesc.getProperties())); } }
/** * @param part Partition * @param tblDesc Table Descriptor * @param usePartSchemaProperties Use Partition Schema Properties to set the * partition descriptor properties. This is usually set to true by the caller * if the table is partitioned, i.e. if the table has partition columns. * @throws HiveException */ public PartitionDesc(final Partition part,final TableDesc tblDesc, boolean usePartSchemaProperties) throws HiveException { PartitionDescConstructorHelper(part, tblDesc, usePartSchemaProperties); //We use partition schema properties to set the partition descriptor properties // if usePartSchemaProperties is set to true. if (usePartSchemaProperties) { setProperties(part.getMetadataFromPartitionSchema()); } else { // each partition maintains a large properties setProperties(part.getSchemaFromTableSchema(tblDesc.getProperties())); } }
public PartitionDesc(final Partition part, final TableDesc tableDesc) throws HiveException { PartitionDescConstructorHelper(part, tableDesc, true); if (Utilities.isInputFileFormatSelfDescribing(this)) { // if IF is self describing no need to send column info per partition, since its not used anyway. Table tbl = part.getTable(); setProperties(MetaStoreUtils.getSchemaWithoutCols(part.getTPartition().getSd(), part.getParameters(), tbl.getDbName(), tbl.getTableName(), tbl.getPartitionKeys())); } else { setProperties(part.getMetadataFromPartitionSchema()); } }
public PartitionDesc(final Partition part) throws HiveException { PartitionDescConstructorHelper(part, getTableDesc(part.getTable()), true); if (Utilities.isInputFileFormatSelfDescribing(this)) { // if IF is self describing no need to send column info per partition, since its not used anyway. Table tbl = part.getTable(); setProperties(MetaStoreUtils.getSchemaWithoutCols(part.getTPartition().getSd(), part.getTPartition().getSd(), part.getParameters(), tbl.getDbName(), tbl.getTableName(), tbl.getPartitionKeys())); } else { setProperties(part.getMetadataFromPartitionSchema()); } }