[
https://issues.apache.org/jira/browse/HUDI-1842?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17392191#comment-17392191
]
pengzhiwei commented on HUDI-1842:
----------------------------------
Hi [~shivnarayan] [~codope], For the exist hoodie table write by spark
datasource, we can create an external table on the table location, just like
this:
{code:java}
create table xxx using hudi options(primaryKey = 'id', preCombineField = 'ts')
partitioned by(dt) location '/xx/xx/hudi'{code}
we can modify the *hoodie.properites* to add the missing properties in the
*CreateHoodieTableCommand*.
> [SQL] Spark Sql Support For The Exists Hoodie Table
> ---------------------------------------------------
>
> Key: HUDI-1842
> URL: https://issues.apache.org/jira/browse/HUDI-1842
> Project: Apache Hudi
> Issue Type: Sub-task
> Reporter: pengzhiwei
> Assignee: pengzhiwei
> Priority: Blocker
> Labels: release-blocker
> Fix For: 0.9.0
>
>
> In order to support spark sql for hoodie, we persist some table properties to
> the hoodie.properties. e.g. primaryKey, preCombineField, partition columns.
> For the exists hoodie tables, these properties are missing. We need do some
> code in UpgradeDowngrade to support spark sql for the exists tables.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)