We have many tables which are following a certain pattern for example:- project.dataset.ffm_{lang}_{event}.
I want to create a duplicate table for all these tables via a script by adding clustering and partitioning into them. I tried parameterized queries which is supported by big query but we cannot add parameters to table name.
I also tried wildcard function but was not able to find any way to create a table of a particular pattern from another table which follow same kind of pattern.
The query i want to run is something like this:-
create table `project.dataset.ffm_demo_{lang}_{event}`
like `project.dataset.ffm_{lang}_{event}`