Alberto_Umana
Databricks Employee
Databricks Employee

Hello @sboxi 

Can you try with this, as it looks it is possible, also about scheduling, please refer to below documentation you can use SCHEDULE clause.

 

CREATE MATERIALIZED VIEW IF NOT EXISTS my_materialized_view AS

SELECT

    t.column1,

    v.column2,

    AVG(t.column3) AS avg_column3

FROM

    my_table t

INNER JOIN

    my_view v

ON

    t.id = v.id

GROUP BY

    t.column1, v.column2;

https://docs.databricks.com/ja/sql/language-manual/sql-ref-syntax-ddl-create-materialized-view.html