Databricks supports multiple dialects (like Spark SQL, ANSI SQL, or specific connectors like JDBC).
I think if you are using a connector or engine that doesn't interpret WHERE 1=1
properly, it may lead to a syntax error.
You may try :
WHERE TRUE
or a dummy column or system function :
WHERE oneofyourcolumns IS NOT NULL
-- or
WHERE LENGTH('') = 0