[
https://issues.apache.org/jira/browse/GOBBLIN-1810?focusedWorklogId=856539&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-856539
]
ASF GitHub Bot logged work on GOBBLIN-1810:
-------------------------------------------
Author: ASF GitHub Bot
Created on: 12/Apr/23 18:29
Start Date: 12/Apr/23 18:29
Worklog Time Spent: 10m
Work Description: vikrambohra commented on code in PR #3672:
URL: https://github.com/apache/gobblin/pull/3672#discussion_r1164500993
##########
gobblin-iceberg/src/main/java/org/apache/gobblin/iceberg/writer/IcebergMetadataWriter.java:
##########
@@ -801,12 +813,14 @@ public void flush(String dbName, String tableName) throws
IOException {
Transaction transaction = tableMetadata.transaction.get();
Map<String, String> props = tableMetadata.newProperties.or(
Maps.newHashMap(tableMetadata.lastProperties.or(getIcebergTable(tid).properties())));
- String topic = props.get(TOPIC_NAME_KEY);
+ //Set data offset range
+ setDatasetOffsetRange(tableMetadata, props);
+ String topicName = getTopicName(tid, tableMetadata);
Review Comment:
Is
tableMetadataMap.get(tid).setDatasetName(gmce.getDatasetIdentifier().getNativeName());
required after this change to a new way to get topic name?
##########
gobblin-iceberg/src/main/java/org/apache/gobblin/iceberg/writer/IcebergMetadataWriter.java:
##########
@@ -780,6 +782,16 @@ private StructLike
getIcebergPartitionVal(Collection<HiveSpec> specs, String fil
return partitionVal;
}
+ protected String getTopicName(TableIdentifier tid, TableMetadata
tableMetadata) {
Review Comment:
Lets add Javadoc
Issue Time Tracking
-------------------
Worklog Id: (was: 856539)
Time Spent: 0.5h (was: 20m)
> Support general iceberg catalog in icebergMetadataWriter
> --------------------------------------------------------
>
> Key: GOBBLIN-1810
> URL: https://issues.apache.org/jira/browse/GOBBLIN-1810
> Project: Apache Gobblin
> Issue Type: Improvement
> Reporter: Zihan Li
> Priority: Major
> Time Spent: 0.5h
> Remaining Estimate: 0h
>
> Now icebergMetadataWriter only supports HiveCatalog, we want to support the
> general catalog.
> Also, we want to add "avro.schema.literal" in iceberg table property
> In addition, we need to be able to change the way we calculate the Kafka
> topic name
--
This message was sent by Atlassian Jira
(v8.20.10#820010)