nikhilindikuzha opened a new issue, #7294:
URL: https://github.com/apache/hudi/issues/7294
Hi Team,
whenever I am trying to create hudi table with mutiple primary key ,
generating :
hoodie.table.keygenerator.class=org.apache.hudi.keygen.SimpleKeyGenerator in
hudi .12.1
but the same create statement in hudi .11.1 , keygenerator class as complex
one. Any idea ?
Sample code:
` spark-shell \
--packages org.apache.hudi:hudi-spark-bundle_2.12:0.12.1 \
--conf "spark.serializer=org.apache.spark.serializer.KryoSerializer" \
--conf
'spark.sql.extensions=org.apache.spark.sql.hudi.HoodieSparkSessionExtension'
import org.apache.spark.sql.SaveMode._
import org.apache.hudi.DataSourceWriteOptions._
import org.apache.hudi.DataSourceWriteOptions
import org.apache.hudi.DataSourceReadOptions._
import org.apache.hudi.DataSourceReadOptions
import org.apache.hudi.QuickstartUtils._
import org.apache.spark.sql.DataFrame
spark.sql("""create table <db>.f_test5(
id string,
name string,
age string,
salary string,
upd_ts string,
job string
)
using hudi
partitioned by (job)
location 'gs://<bucket>/HUDI/f_test5/'
options (
type = 'cow',
primaryKey = 'id,name',
preCombineField = 'upd_ts'
)""")
Colla`
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]