Can't enable "variantType-preview" using DLTs

Malthe
Valued Contributor II

Using create_streaming_table and passing table properties as follows, I get an error running the pipeline for the first time:

Your table schema requires manually enablement of the following table feature(s): variantType-preview.

I'm using this code:

create_streaming_table(
    name=name,
    schema=schema,
    table_properties={
        "delta.feature.variantType-preview": "supported",
        "delta.parquet.compression.codec": "ZSTD",
        "pipelines.reset.allowed": "false",
    }
)

That's a bit surprising because the table shows that this property was indeed set under the Unity Catalog table entry details. I believe this has been working in the past.

The workaround suggested (to manually enable it) does not work because the table was never refreshed:

Streaming table [REDACTED] needs to be refreshed to execute QUERY. If the table is created from DBSQL, please run REFRESH STREAMING TABLE. If the table is created by a pipeline in Delta Live Tables, please run a pipeline update. SQLSTATE: 55019