hive-protolib/src/main/java/com/streamsets/pipeline/stage/lib/hive/HiveMetastoreUtil.java
public static void validateTblPropertiesInfo(
      HMPDataFormat hmpDataFormat,
      TBLPropertiesInfoCacheSupport.TBLPropertiesInfo tblPropertiesInfo,
      String qualifiedTableName
  ) throws HiveStageCheckedException {
    if (hmpDataFormat == HMPDataFormat.AVRO && !tblPropertiesInfo.getSerdeLibrary().equals(HiveMetastoreUtil.AVRO_SERDE)) {
      throw new HiveStageCheckedException(
          Errors.HIVE_32,
          qualifiedTableName,
          tblPropertiesInfo.getSerdeLibrary(),
          hmpDataFormat.getLabel()
      );
    } else if (hmpDataFormat == HMPDataFormat.PARQUET && !tblPropertiesInfo.getSerdeLibrary().equals(HiveMetastoreUtil.PARQUET_SERDE)) {
      throw new HiveStageCheckedException(
          Errors.HIVE_32,
          qualifiedTableName,
          tblPropertiesInfo.getSerdeLibrary(),
          hmpDataFormat.getLabel()
      );
    }
  }
public static void validateTblPropertiesInfo(
      HMPDataFormat hmpDataFormat,
      TBLPropertiesInfoCacheSupport.TBLPropertiesInfo tblPropertiesInfo,
      String qualifiedTableName
  ) throws HiveStageCheckedException {
    if (hmpDataFormat == HMPDataFormat.AVRO && !tblPropertiesInfo.getSerdeLibrary().equals(HiveMetastoreUtil.AVRO_SERDE)) {
      throw new HiveStageCheckedException(
          Errors.HIVE_32,
          qualifiedTableName,
          tblPropertiesInfo.getSerdeLibrary(),
          hmpDataFormat.getLabel()
      );
    } else if (hmpDataFormat == HMPDataFormat.PARQUET && !tblPropertiesInfo.getSerdeLibrary().equals(HiveMetastoreUtil.PARQUET_SERDE)) {
      throw new HiveStageCheckedException(
          Errors.HIVE_32,
          qualifiedTableName,
          tblPropertiesInfo.getSerdeLibrary(),
          hmpDataFormat.getLabel()
      );
    }
  }
public static void validateTblPropertiesInfo ( HMPDataFormat hmpDataFormat , TBLPropertiesInfoCacheSupport . TBLPropertiesInfo tblPropertiesInfo , String qualifiedTableName ) throws HiveStageCheckedException { if ( hmpDataFormat == HMPDataFormat . AVRO && ! tblPropertiesInfo . getSerdeLibrary ( ) . equals ( HiveMetastoreUtil . AVRO_SERDE ) ) { throw new HiveStageCheckedException ( Errors . HIVE_32 , qualifiedTableName , tblPropertiesInfo . getSerdeLibrary ( ) , hmpDataFormat . getLabel ( ) ) ; } else if ( hmpDataFormat == HMPDataFormat . PARQUET && ! tblPropertiesInfo . getSerdeLibrary ( ) . equals ( HiveMetastoreUtil . PARQUET_SERDE ) ) { throw new HiveStageCheckedException ( Errors . HIVE_32 , qualifiedTableName , tblPropertiesInfo . getSerdeLibrary ( ) , hmpDataFormat . getLabel ( ) ) ; } }
Returns true if this is a TABLE metadata request (new or changed table).

@param hmpDataFormat the target data format \in {avro, parquet}
@param tblPropertiesInfo the table data format
@param qualifiedTableName the qualified table name
@throws HiveStageCheckedException HiveStageCheckedException if the target data format does not match with the table data format.
Returns true if this is a TABLE metadata request ( new or changed table ) .