Github user vdiravka commented on a diff in the pull request:

    https://github.com/apache/drill/pull/1111#discussion_r166660333
  
    --- Diff: 
contrib/storage-hive/core/src/main/java/org/apache/drill/exec/store/hive/HiveUtilities.java
 ---
    @@ -507,5 +510,52 @@ public static boolean 
hasHeaderOrFooter(HiveTableWithColumnCache table) {
         int skipFooter = retrieveIntProperty(tableProperties, 
serdeConstants.FOOTER_COUNT, -1);
         return skipHeader > 0 || skipFooter > 0;
       }
    +
    +  /**
    +   * This method checks whether the table is transactional and set 
necessary properties in {@link JobConf}.
    +   * If schema evolution properties aren't set in job conf for the input 
format, method sets the column names
    +   * and types from table/partition properties or storage descriptor.
    +   *
    +   * @param job the job to update
    +   * @param properties table or partition properties
    +   * @param sd storage descriptor
    +   */
    +  public static void verifyAndAddTransactionalProperties(JobConf job, 
Properties properties, StorageDescriptor sd) {
    --- End diff --
    
    `job` involves table `properties`, but `JobConf` hasn't any method to 
return that properties. It is possible to get only one property. But looks like 
this is not an issue.
    There is in AcidUtils the `isTablePropertyTransactional` method with 
`Configuration` input parameter.
    Changed. Thank you.


---

Reply via email to