Skip to content

test_writes.py::test_duckdb_url_import Failed to download extension "iceberg"#3773

Description

@kevinjqliu

Apache Iceberg version

None

Please describe the bug 馃悶

    @pytest.mark.integration
    def test_duckdb_url_import(warehouse: Path, arrow_table_with_null: pa.Table) -> None:
        os.environ["TZ"] = "Etc/UTC"
        time.tzset()
        tz = pytz.timezone(os.environ["TZ"])

        catalog = SqlCatalog("test_sql_catalog", uri="sqlite:///:memory:", warehouse=f"/{warehouse}")
        catalog.create_namespace("default")

        identifier = "default.arrow_table_v1_with_null"
        tbl = _create_table(catalog, identifier, {}, [arrow_table_with_null])
        location = tbl.metadata_location

        import duckdb

>       duckdb.sql("INSTALL iceberg; LOAD iceberg;")
E       _duckdb.IOException: IO Error: Failed to download extension "iceberg" at URL "http://extensions.duckdb.org/v1.5.5/osx_arm64/iceberg.duckdb_extension.gz"
E       Extension "iceberg" is an existing extension.
E
E       For more info, visit https://duckdb.org/docs/stable/extensions/troubleshooting?version=v1.5.5&platform=osx_arm64&extension=iceberg (ERROR Could not establish connection)

tests/integration/test_writes/test_writes.py:885: IOException
============================================================================================== short test summary info ===============================================================================================
FAILED tests/integration/test_writes/test_writes.py::test_duckdb_url_import - _duckdb.IOException: IO Error: Failed to download extension "iceberg" at URL "http://extensions.duckdb.org/v1.5.5/osx_arm64/iceberg.duckdb_extension.gz"
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! stopping after 1 failures !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
====================================================================== 1 failed, 1268 passed, 70 skipped, 3951 deselected in 430.95s (0:07:10) =======================================================================

Willingness to contribute

  • I can contribute a fix for this bug independently
  • I would be willing to contribute a fix for this bug with guidance from the Iceberg community
  • I cannot contribute a fix for this bug at this time

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions