Hi @Yash01Kumar12
1. For the Index creation failure: Invalid column type - variant is used for 'raw_parsed'.
The indexing mechanism, does not support the VARIANT
data type for columns that need to be indexed. It only supports specific types like various numeric types, strings, timestamps, and arrays of numeric types (for vector embeddings).
While Variant data type is Public Preview, I see an internal feature request "DB-I-14338" to support Variant data type for Vector search. So, I suspect you would have to change the data type to proceed right now. I have added your usecase as well and a proxy vote.
In delta table, you would have to use the below code to support it. But I do not think this would still help as it has to be supported in Vector Search.
ALTER TABLE table_name SET TBLPROPERTIES('delta.feature.variantType-preview' = 'supported')
So, for now, can you use a different data type for the column which is supported today?
Thanks & Regards,
Nandini