You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We should clarify the placement rule behavior on temporary table.
Create/Update: Placement rule is meaningless for both global and local temporary tables, so we should forbid all placement options when creating or updating a global/local temporary table
SHOW PLACEMENT: The problem is local temporary table. For local temporary table, it is allowed to have a same name with a normal table in the same database. We should clarify the show behavior. For example, a normal table test.t1 is configured with some placement options and a local temporary table with the same name also exists. What should SHOW PLACEMENT returns? A row display normal table's placement or dismiss this row because a local temporary table exists? I prefer to ignore local temporary table in this situation just like SHOW TABLES .
SHOW PLACEMENT FOR TABLE : The same problem with SHOW PLACEMENT . But I prefer to use the local temporary table as the target table for this case just like what SHOW CREATE TABLE does. So, for SHOW PLACEMENT FOR TABLE t1, if a local temporary table exists in the current database, it always returns an empty result set ignoring the normal table.
The text was updated successfully, but these errors were encountered:
We should clarify the placement rule behavior on temporary table.
Create/Update: Placement rule is meaningless for both global and local temporary tables, so we should forbid all placement options when creating or updating a global/local temporary table
SHOW PLACEMENT
: The problem is local temporary table. For local temporary table, it is allowed to have a same name with a normal table in the same database. We should clarify the show behavior. For example, a normal tabletest.t1
is configured with some placement options and a local temporary table with the same name also exists. What shouldSHOW PLACEMENT
returns? A row display normal table's placement or dismiss this row because a local temporary table exists? I prefer to ignore local temporary table in this situation just likeSHOW TABLES
.SHOW PLACEMENT FOR TABLE
: The same problem withSHOW PLACEMENT
. But I prefer to use the local temporary table as the target table for this case just like whatSHOW CREATE TABLE
does. So, forSHOW PLACEMENT FOR TABLE t1
, if a local temporary table exists in the current database, it always returns an empty result set ignoring the normal table.The text was updated successfully, but these errors were encountered: