Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SUPPORT]hoodie.datasource.hive_sync.sync_comment attribute not work #9124

Closed
gwnszbd opened this issue Jul 5, 2023 · 5 comments
Closed
Labels
priority:major degraded perf; unable to move forward; potential bugs schema-and-data-types

Comments

@gwnszbd
Copy link

gwnszbd commented Jul 5, 2023

Environment Description

  • Hudi version :0.12.3

  • Spark version :2.4.6

  • Hive version :3.1.2

  • Hadoop version :3.1.2

  • Storage (HDFS/S3/GCS..) :cos

  • Running on Docker? (yes/no) :no

I use deltastreamer write hudi and sync to hive
1.hoodie.datasource.hive_sync.sync_comment=true
2.avsc file :{"fields":[{"name":"ID","type":["string","null"],"doc":"主键"}, ...
But the id field of the hive table still has no comment

Are there any other areas that need to be configured?

@codope codope added schema-and-data-types priority:major degraded perf; unable to move forward; potential bugs labels Jul 5, 2023
@ad1happy2go
Copy link
Collaborator

@gwnszbd
Do the hudi table when directly reading from the path has the comment?

@gwnszbd
Copy link
Author

gwnszbd commented Jul 12, 2023

@gwnszbd Do the hudi table when directly reading from the path has the comment?

How to do it ? like this?
spark.read.format("org.apache .hudi") .load(basePath + "/*").printSchema

@codope
Copy link
Member

codope commented Jul 18, 2023

@gwnszbd Sorry for the delay.

Yes, That is right. Can you see the comments when you see this?

@gwnszbd
Copy link
Author

gwnszbd commented Jul 25, 2023

@gwnszbd Sorry for the delay.

Yes, That is right. Can you see the comments when you see this?

no ,no comment
it show:
|-- ID: string (nullable = true)

@parisni
Copy link
Contributor

parisni commented Jul 29, 2023

spark.read.format("org.apache .hudi") .load(basePath + "/*").printSchema

please try this patch, it should fix it #8683

@gwnszbd gwnszbd closed this as completed Aug 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority:major degraded perf; unable to move forward; potential bugs schema-and-data-types
Projects
Archived in project
Development

No branches or pull requests

4 participants