[ 
https://issues.apache.org/jira/browse/FLINK-39279?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Sergey Nuyanzin updated FLINK-39279:
------------------------------------
    Description: 
In case there is existing materialized table like
{code:sql}
CREATE MATERIALIZED TABLE mt (
DISTRIBUTED BY HASH (b) INTO 7 BUCKETS
AS SELECT t1.* FROM t1
{code}

and then if there is a query like (with different or absent distribution)
{code:sql}
CREATE OR ALTER MATERIALIZED TABLE mt (
DISTRIBUTED BY HASH (z) INTO 123 BUCKETS
AS SELECT t1.* FROM t1
{code}

another example when first materialized table is without distribution and in 
the second with.

  was:
In case there is existing materialized table like
{code:sql}
CREATE MATERIALIZED TABLE mt (
DISTRIBUTED BY HASH (b) INTO 7 BUCKETS
AS SELECT t1.* FROM t1
{code}

and then if there is a query like (with different or absent distribution)
{code:sql}
CREATE MATERIALIZED TABLE mt (
DISTRIBUTED BY HASH (z) INTO 123 BUCKETS
AS SELECT t1.* FROM t1
{code}

another example when first materialized table is without distribution and in 
the second with.


> CREATE OR ALTER MATERIALIZED TABLE doesn't respect distribution change
> ----------------------------------------------------------------------
>
>                 Key: FLINK-39279
>                 URL: https://issues.apache.org/jira/browse/FLINK-39279
>             Project: Flink
>          Issue Type: Bug
>          Components: Table SQL / Planner
>            Reporter: Sergey Nuyanzin
>            Assignee: Sergey Nuyanzin
>            Priority: Major
>              Labels: pull-request-available
>
> In case there is existing materialized table like
> {code:sql}
> CREATE MATERIALIZED TABLE mt (
> DISTRIBUTED BY HASH (b) INTO 7 BUCKETS
> AS SELECT t1.* FROM t1
> {code}
> and then if there is a query like (with different or absent distribution)
> {code:sql}
> CREATE OR ALTER MATERIALIZED TABLE mt (
> DISTRIBUTED BY HASH (z) INTO 123 BUCKETS
> AS SELECT t1.* FROM t1
> {code}
> another example when first materialized table is without distribution and in 
> the second with.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to