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
Currently partition can be passed as a parameter only inside tuple() function
ALTER TABLE test DROP PARTITION tuple(toMonday({partition:Date}));
But users would prefer to be able to pass it directly:
ALTER TABLE test DROP PARTITION {partition:String};
ALTER TABLE test DROP PARTITION {partition:Date};
Here are the steps
CREATE OR REPLACE TABLE default.test
(
EventDate Date
)
ENGINE = MergeTree
ORDER BY tuple()
PARTITION BY toMonday(EventDate);
ALTER TABLE test DROP PARTITION '2023-04-10'; -- works
SET param_table=test;
ALTER TABLE {table:Identifier} DROP PARTITION '2023-04-10' -- works;
SET param_partition='2023-04-10';
ALTER TABLE test DROP PARTITION tuple(toMonday({partition:Date})); -- works
ALTER TABLE test DROP PARTITION {partition:Identifier}; -- doesn't work
ALTER TABLE test DROP PARTITION '{partition:Identifier}'; -- doesn't work
ALTER TABLE test DROP PARTITION {partition:String}; -- doesn't work
The text was updated successfully, but these errors were encountered:
Currently partition can be passed as a parameter only inside tuple() function
But users would prefer to be able to pass it directly:
Here are the steps
The text was updated successfully, but these errors were encountered: