Skip to content

Commit

Permalink
xx
Browse files Browse the repository at this point in the history
  • Loading branch information
FANNG1 committed Mar 25, 2024
1 parent 7e2b352 commit 879edd4
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,13 +51,11 @@ public Map<String, String> toGravitinoTableProperties(Map<String, String> proper
String storeAs = gravitinoTableProperties.get(HivePropertyConstants.SPARK_HIVE_STORED_AS);
String fileFormat = Optional.ofNullable(storeAs).orElse(provider);
if (fileFormat != null) {
String gravitinoFormat =
fileFormatMap.get(fileFormat.toLowerCase(Locale.ROOT));
String gravitinoFormat = fileFormatMap.get(fileFormat.toLowerCase(Locale.ROOT));
if (gravitinoFormat != null) {
gravitinoTableProperties.put(HivePropertyConstants.GRAVITINO_HIVE_FORMAT, gravitinoFormat);
} else {
throw new NotSupportedException(
"Doesn't support hive file format: " + fileFormat);
throw new NotSupportedException("Doesn't support hive file format: " + fileFormat);
}
}

Expand Down

0 comments on commit 879edd4

Please sign in to comment.