How to enforce that all queries must include a partition filter in databricks delta table - Stack Overflow

admin2025-04-26  10

I want to know if is it possible to enforce that all queries must include a partition filter if the delta table is a partition table in databricks?

I tried the below option and set the required property but it doesn't work and I can query test_table without passing the partition clause in the where condition.

ALTER TABLE test_table SET TBLPROPERTIES ('partitioned'='true', 'partitioned.query.required'='true');

Please let me know if it is doable in delta table.

转载请注明原文地址:http://conceptsofalgorithm.com/Algorithm/1745666471a313058.html

最新回复(0)