Skip to content

Commit

Permalink
Add UNSAFE to config.
Browse files Browse the repository at this point in the history
  • Loading branch information
rdblue committed Dec 19, 2023
1 parent 21e8af9 commit 99a169f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions core/src/main/java/org/apache/iceberg/SystemConfigs.java
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,10 @@ private SystemConfigs() {}

/** @deprecated will be removed in 2.0.0; use name mapping instead */
@Deprecated
public static final ConfigEntry<Boolean> NETFLIX_PARQUET_ID_FALLBACK_ENABLED =
public static final ConfigEntry<Boolean> NETFLIX_UNSAFE_PARQUET_ID_FALLBACK_ENABLED =
new ConfigEntry<>(
"iceberg.netflix.parquet-id-fallback.enabled",
"ICEBERG_NETFLIX_PARQUET_ID_FALLBACK_ENABLED",
"iceberg.netflix.unsafe-parquet-id-fallback.enabled",
"ICEBERG_NETFLIX_UNSAFE_PARQUET_ID_FALLBACK_ENABLED",
true,
s -> {
LOG.warn(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1123,7 +1123,7 @@ public <D> CloseableIterable<D> build() {
NameMapping mapping;
if (nameMapping != null) {
mapping = nameMapping;
} else if (SystemConfigs.NETFLIX_PARQUET_ID_FALLBACK_ENABLED.value()) {
} else if (SystemConfigs.NETFLIX_UNSAFE_PARQUET_ID_FALLBACK_ENABLED.value()) {
mapping = null;
} else {
mapping = NameMapping.empty();
Expand Down

0 comments on commit 99a169f

Please sign in to comment.