niuge01 commented on a change in pull request #3532: [CARBONDATA-3557] Write 
flink streaming data to partition table
URL: https://github.com/apache/carbondata/pull/3532#discussion_r361780938
 
 

 ##########
 File path: 
integration/flink/src/main/java/org/apache/carbon/flink/CarbonS3Writer.java
 ##########
 @@ -139,15 +152,16 @@ public void commit() throws IOException {
         );
       }
       dataPath = dataPath + this.table.getDatabaseName() + 
CarbonCommonConstants.FILE_SEPARATOR +
-          this.table.getTableName() + CarbonCommonConstants.FILE_SEPARATOR +
-          this.writePartition + CarbonCommonConstants.FILE_SEPARATOR;
-      Map<String, Long> fileList =
-          this.uploadSegmentDataFiles(this.writePath + 
"Fact/Part0/Segment_null/", dataPath);
+          this.table.getTableName() + CarbonCommonConstants.FILE_SEPARATOR;
+      StageInput stageInput = this.uploadSegmentDataFiles(this.writePath, 
dataPath);
+      if (stageInput == null) {
+        return;
+      }
       try {
         String stageInputPath = CarbonTablePath.getStageDir(
             table.getAbsoluteTableIdentifier().getTablePath()) +
-            CarbonCommonConstants.FILE_SEPARATOR + this.writePartition;
-        StageManager.writeStageInput(stageInputPath, new StageInput(dataPath, 
fileList));
+            CarbonCommonConstants.FILE_SEPARATOR + UUID.randomUUID();// TODO 
UUID
 
 Review comment:
   done

----------------------------------------------------------------
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]


With regards,
Apache Git Services

Reply via email to