-
Notifications
You must be signed in to change notification settings - Fork 319
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
[#2620] feat(spark-connector): support hive table format properties #2605
Conversation
bc0e4cb
to
b485ac4
Compare
It's ready to review now, @jerryshao @qqqttt123 @mchades @yuqi1129 @diqiu50 please help to review when you are free. |
...tor/src/main/java/com/datastrato/gravitino/spark/connector/hive/HivePropertiesConverter.java
Show resolved
Hide resolved
...tor/src/main/java/com/datastrato/gravitino/spark/connector/hive/HivePropertiesConverter.java
Outdated
Show resolved
Hide resolved
spark-connector/src/main/java/com/datastrato/gravitino/spark/connector/PropertiesConverter.java
Outdated
Show resolved
Hide resolved
...tor/src/main/java/com/datastrato/gravitino/spark/connector/hive/HivePropertiesConverter.java
Show resolved
Hide resolved
...tor/src/main/java/com/datastrato/gravitino/spark/connector/hive/HivePropertiesConverter.java
Outdated
Show resolved
Hide resolved
...tor/src/main/java/com/datastrato/gravitino/spark/connector/hive/HivePropertiesConverter.java
Outdated
Show resolved
Hide resolved
...rc/test/java/com/datastrato/gravitino/integration/test/util/spark/SparkTableInfoChecker.java
Show resolved
Hide resolved
...tor/src/main/java/com/datastrato/gravitino/spark/connector/hive/HivePropertiesConverter.java
Show resolved
Hide resolved
@yuqi1129 @mchades @diqiu50 ,is there any other comments? @jerryshao do you have time to review? |
Overall LGTM |
@jerryshao do you have time to review this PR? |
public static final String SPARK_HIVE_STORED_AS = "hive.stored-as"; | ||
public static final String SPARK_HIVE_INPUT_FORMAT = "input-format"; | ||
public static final String SPARK_HIVE_OUTPUT_FORMAT = "output-format"; | ||
public static final String SPARK_HIVE_SERDE_LIB = "serde-lib"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are these configurations defined by Spark or by you?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
spark use raw string like hive.stored-as
, I defined SPARK_HIVE_STORED_AS
to refer to it.
HivePropertiesConstants.GRAVITINO_HIVE_SERDE_LIB); | ||
|
||
/** | ||
* CREATE TABLE xxx STORED AS PARQUET will save "hive.stored.as" = "PARQUET" in property. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it "hive.stored-as" or "hive.stored.as"?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hive.stored-as
, will correct it
@jerryshao all comments are addressed, please help to review again |
LGTM. Thanks @FANNG1 for your work. |
Sorry, I've dealt with some things during this time. Have you completed this part of the work? |
What changes were proposed in this pull request?
support hive table format properties
Why are the changes needed?
Fix: #2620
Does this PR introduce any user-facing change?
no
How was this patch tested?
UT and IT