Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dynamic table name assignment #64129

Closed
abhijat-github opened this issue May 20, 2024 · 2 comments
Closed

dynamic table name assignment #64129

abhijat-github opened this issue May 20, 2024 · 2 comments
Labels
feature st-wontfix Known issue, no plans to fix it currenlty

Comments

@abhijat-github
Copy link

feature - dynamic assignment of table name

I understand we have a way to use variable for entire object name .
For example :
SET param_db_temp = 'db_temp';
SET param_it = 'mytable_first';
select * from {db_temp : Identifier}.{it: Identifier}

Describe the solution you'd like

I am wondering if we can solve the below two problems to achieve the same result :

Problem 1
SET param_db_temp = 'db_temp';
SET param_it = 'mytable';
SET param_var = 'first';
select * from {db_temp : Identifier}.{it: Identifier}
{var: Identifier}_

Problem 2
SET param_db_temp = 'db_temp';
SET param_var = 'first';
select * from {db_temp : Identifier}.my_table
{var: Identifier}_

Describe alternatives you've considered

So far I have been not found an alternative.

Additional context

This feature will allow users to invoke the same function from multiple places and the interim tables created by the function wont overlap with each other .

@alexey-milovidov
Copy link
Member

Making expressions with identifiers, such as concatenation, is not supported.

@alexey-milovidov alexey-milovidov added the st-wontfix Known issue, no plans to fix it currenlty label May 20, 2024
@alexey-milovidov
Copy link
Member

This is a valid feature request, but I have to close it because there is no clear and good way of implementing it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature st-wontfix Known issue, no plans to fix it currenlty
Projects
None yet
Development

No branches or pull requests

2 participants