You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Alexander Fedosov (JIRA)" <ji...@apache.org> on 2019/05/21 10:51:00 UTC
[jira] [Commented] (SPARK-27599) DataFrameWriter.partitionBy should
be optional when writing to a hive table
[ https://issues.apache.org/jira/browse/SPARK-27599?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16844716#comment-16844716 ]
Alexander Fedosov commented on SPARK-27599:
-------------------------------------------
Hello, [~ndimiduk]!
Could you please provide more details about your concrete case?
I'm sorry, but the description of the ticket is not so clear to me.
Thanks in advance.
> DataFrameWriter.partitionBy should be optional when writing to a hive table
> ---------------------------------------------------------------------------
>
> Key: SPARK-27599
> URL: https://issues.apache.org/jira/browse/SPARK-27599
> Project: Spark
> Issue Type: Improvement
> Components: SQL
> Affects Versions: 2.4.1
> Reporter: Nick Dimiduk
> Priority: Minor
>
> When writing to an existing, partitioned table stored in the Hive metastore, Spark requires the call to {{saveAsTable}} to provide a value for {{partitionedBy}}, even though that information is provided by the metastore itself. Indeed, that information is available to Spark, as it will error if the specified {{partitionBy}} does not match that of the table definition in metastore.
> There may be other attributes of the save call that can be retrieved from the metastore...
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org