[
https://issues.apache.org/jira/browse/GOBBLIN-1006?focusedWorklogId=361079&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-361079
]
ASF GitHub Bot logged work on GOBBLIN-1006:
-------------------------------------------
Author: ASF GitHub Bot
Created on: 17/Dec/19 19:34
Start Date: 17/Dec/19 19:34
Worklog Time Spent: 10m
Work Description: ZihanLi58 commented on pull request #2851:
[GOBBLIN-1006] Enable configurable case-preserving and schema source-of-truth
in table level properties
URL: https://github.com/apache/incubator-gobblin/pull/2851#discussion_r358986094
##########
File path:
gobblin-data-management/src/main/java/org/apache/gobblin/data/management/conversion/hive/query/HiveAvroORCQueryGenerator.java
##########
@@ -160,21 +163,25 @@ public static String generateCreateTableDDL(Schema
schema,
// (evolution does not matter if its new destination table)
// 4. If evolution is disabled, and destination table does exists
// .. use columns from destination schema
+ // Make sure the schema attribute will be updated in source-of-truth
attribute.
+ // Or fall back to default attribute-pair used in Hive for ORC format.
+ if (tableProperties.containsKey(SCHEMA_SOURCE_OF_TRUTH)) {
+
tableProperties.setProperty(tableProperties.getProperty(SCHEMA_SOURCE_OF_TRUTH),
schema.toString());
+ tableProperties.remove(SCHEMA_SOURCE_OF_TRUTH);
Review comment:
Just curious about what is this for?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
Issue Time Tracking
-------------------
Worklog Id: (was: 361079)
Time Spent: 0.5h (was: 20m)
> Configurable case-preserving in ORC-conversion
> ----------------------------------------------
>
> Key: GOBBLIN-1006
> URL: https://issues.apache.org/jira/browse/GOBBLIN-1006
> Project: Apache Gobblin
> Issue Type: Improvement
> Reporter: Lei Sun
> Priority: Major
> Time Spent: 0.5h
> Remaining Estimate: 0h
>
--
This message was sent by Atlassian Jira
(v8.3.4#803005)