Error with GRANT in Databricks SQL

Prabakar
Databricks Employee
Databricks Employee

While trying to GRANT SELECT permissions for a Database or Table it reports the below error.

Error running query
Operation not allowed: GRANT(line 1, pos 0)
== SQL ==
GRANT SELECT ON DATABASE my_database TO `my_table` LIMIT 1000
^^^

Prabakar
Databricks Employee
Databricks Employee

In Databricks SQL, by default, the Limit clause is enabled. So trying GRANT with limit will throw the error. Uncheck the Limit to execute the GRANT successfully.

Default:

imageUncheck Limit to fix this.

image 

View solution in original post