ravipesala commented on a change in pull request #3324: [HOTFIX] Fix task id in
FileFormat write
URL: https://github.com/apache/carbondata/pull/3324#discussion_r303194690
##########
File path:
integration/spark-datasource/src/main/scala/org/apache/spark/sql/carbondata/execution/datasources/SparkCarbonFileFormat.scala
##########
@@ -143,6 +145,13 @@ class SparkCarbonFileFormat extends FileFormat
conf.set(CarbonSQLHadoopMapReduceCommitProtocol.COMMIT_PROTOCOL, "true")
new OutputWriterFactory {
+
+ /**
+ * counter used for generating unique task numbers.
+ */
+ val counter = new AtomicLong()
Review comment:
@jackylk in carbon taskid is treated as number, not a string so the queries
might fail. And to change the number to the string may need more changes. So
here uuid generated based on the taskid and counter.
----------------------------------------------------------------
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