Skip to content

Commit

Permalink
Rename iceberg.add_files-procedure.enabled to `iceberg.add-files-pr…
Browse files Browse the repository at this point in the history
…ocedure.enabled`
  • Loading branch information
ebyhr committed Oct 23, 2024
1 parent 801f483 commit f670cd3
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions docs/src/main/sphinx/connector/iceberg.md
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ implementation is used:
* - `iceberg.register-table-procedure.enabled`
- Enable to allow user to call [`register_table` procedure](iceberg-register-table).
- `false`
* - `iceberg.add_files-procedure.enabled`
* - `iceberg.add-files-procedure.enabled`
- Enable to allow user to call [`add_files` procedure](iceberg-add-files).
- `false`
* - `iceberg.query-partition-filter-required`
Expand Down Expand Up @@ -590,7 +590,7 @@ nested directories, or `false` to ignore them.
#### Add files

The connector can add files from tables or locations to an existing table if
`iceberg.add_files-procedure.enabled` is set to `true` for the catalog.
`iceberg.add-files-procedure.enabled` is set to `true` for the catalog.

Use the procedure `system.add_files_from_table` to add existing files from a
Hive table or `system.add_files` to add existing files from a specified location
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,8 @@ public boolean isAddFilesProcedureEnabled()
return addFilesProcedureEnabled;
}

@Config("iceberg.add_files-procedure.enabled")
@Config("iceberg.add-files-procedure.enabled")
@LegacyConfig("iceberg.add_files-procedure.enabled")
@ConfigDescription("Allow users to call the add_files procedure")
public IcebergConfig setAddFilesProcedureEnabled(boolean addFilesProcedureEnabled)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ public void testExplicitPropertyMappings()
.put("iceberg.materialized-views.hide-storage-table", "false")
.put("iceberg.materialized-views.storage-schema", "mv_storage_schema")
.put("iceberg.register-table-procedure.enabled", "true")
.put("iceberg.add_files-procedure.enabled", "true")
.put("iceberg.add-files-procedure.enabled", "true")
.put("iceberg.sorted-writing-enabled", "false")
.put("iceberg.query-partition-filter-required", "true")
.put("iceberg.query-partition-filter-required-schemas", "bronze,silver")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ protected QueryRunner createQueryRunner()
dataDirectory = Files.createTempDirectory("_test_hidden");
QueryRunner queryRunner = IcebergQueryRunner.builder()
.setMetastoreDirectory(dataDirectory.toFile())
.addIcebergProperty("iceberg.add_files-procedure.enabled", "true")
.addIcebergProperty("iceberg.add-files-procedure.enabled", "true")
.build();

queryRunner.installPlugin(new TestingHivePlugin(dataDirectory));
Expand Down

0 comments on commit f670cd3

Please sign in to comment.