Skip to content

Commit

Permalink
fix spark ci bug
Browse files Browse the repository at this point in the history
  • Loading branch information
hdygxsj committed Jan 10, 2025
1 parent 16fb66b commit f61a535
Showing 1 changed file with 1 addition and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
import com.google.common.base.Preconditions;
import java.util.HashMap;
import java.util.Map;
import org.apache.commons.lang3.StringUtils;
import org.apache.gravitino.catalog.lakehouse.paimon.PaimonConstants;
import org.apache.gravitino.catalog.lakehouse.paimon.PaimonPropertiesUtils;
import org.apache.gravitino.spark.connector.PropertiesConverter;
Expand All @@ -42,14 +41,7 @@ public static PaimonPropertiesConverter getInstance() {
@Override
public Map<String, String> toSparkCatalogProperties(Map<String, String> properties) {
Preconditions.checkArgument(properties != null, "Paimon Catalog properties should not be null");
Map<String, String> all = PaimonPropertiesUtils.toPaimonCatalogProperties(properties);
String catalogBackend = all.remove(PaimonPropertiesConstants.GRAVITINO_PAIMON_CATALOG_BACKEND);
Preconditions.checkArgument(
StringUtils.isNotBlank(catalogBackend),
String.format(
"%s should not be empty", PaimonPropertiesConstants.GRAVITINO_PAIMON_CATALOG_BACKEND));
all.put(PaimonPropertiesConstants.PAIMON_CATALOG_METASTORE, catalogBackend);
return all;
return PaimonPropertiesUtils.toPaimonCatalogProperties(properties);
}

@Override
Expand Down

0 comments on commit f61a535

Please sign in to comment.