When creating materialized view with spark.sql function it returns following error message.
[MATERIALIZED_VIEW_OPERATION_NOT_ALLOWED.MV_NOT_ENABLED] The materialized view operation CREATE is not allowed: Materialized view features are not enabled for your workspace. Please reach out to Databricks to enable materialized views for your workspace. SQLSTATE: 56038
But I can create materialized view with sql editor, I have create materialized view permission on target catalog and schema.
Is this a known issue with spark.sql ?