Skip to content

Question about the delta catalog managed commit #1332

@horizonzy

Description

@horizonzy

When I try to create a table following the demo code.  https://github.com/unitycatalog/unitycatalog/blob/2e4376a7ed6b506315fa8c54de273e48[…]park/src/main/scala/io/unitycatalog/spark/UCSingleCatalog.scala

Step 1. Create a staging table
Step 2. Get the tmp credential via staging table, and commit the 0000.json to the staging table location.
Step3. Create the normal table(External) using the same table name, staging table location.

But at the Step3, it throw an exception.

com.databricks.sdk.core.error.platform.InvalidParameterValue: Input path url 's3://xxxxxxx/unity-catalog/xxxxxx/__unitystorage/catalogs/00216c35-b906-4425-ba63-5ccbeab49acd/tables/fb1bb278-34e3-4cc2-9f4c-736c46d70efa' overlaps with managed storage within 'CreateTable' call. 

Because I try to create a External  table with the managed storage, the External  table location is the staging table location.

But if I try to change the table type to Managed at Step3, it will throw another exception.
com.databricks.sdk.core.error.platform.InvalidParameterValue: Request to create table

'streamnative_workspace.public_default.test__unity__catalog__yan__7' from outside of Databricks Unity Catalog enabled compute environment is denied. Table type must be EXTERNAL to create table externally, instead it is 'MANAGED'.

Anyone can help to check this case? Thanks  (edited)

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