You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@carbondata.apache.org by xuchuanyin <gi...@git.apache.org> on 2018/10/30 01:01:20 UTC
[GitHub] carbondata pull request #2861: [CARBONDATA-3025]handle passing spark appname...
Github user xuchuanyin commented on a diff in the pull request:
https://github.com/apache/carbondata/pull/2861#discussion_r229147458
--- Diff: integration/spark2/src/main/scala/org/apache/spark/sql/execution/datasources/SparkCarbonTableFormat.scala ---
@@ -175,6 +174,12 @@ with Serializable {
dataSchema: StructType,
context: TaskAttemptContext): OutputWriter = {
val model = CarbonTableOutputFormat.getLoadModel(context.getConfiguration)
+ val appName = context.getConfiguration.get(CarbonCommonConstants.CARBON_WRITTEN_BY_APPNAME)
+ if (null != appName) {
+ CarbonProperties.getInstance()
+ .addProperty(CarbonCommonConstants.CARBON_WRITTEN_BY_APPNAME,
+ appName)
--- End diff --
optimize the indent
---