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
Allow partition-wise copy from bq to bq tables. #26884
Comments
Thanks for opening your first issue here! Be sure to follow the issue template! |
@o-nikolas done |
@bhankit1410 We only expose capabilities available in job AP: |
Hello, I think I can give the reference. I think @bhankit1410 is talking about the following operation. It copies individual partitions to another table or another table's partition.
Operator:
The only difference is I am willing to submit a PR! If anyone can assign me the issue, that would be great! Thanks in advance! |
Assigned |
Thank you very much @eladkal! |
Hey @bhankit1410, I think this feature has already been supported. I have tested on https://gist.github.com/bugraoz93/d3ee6d2d03d1881de4614d1e7c3b8234
I have also checked the code. I have tested the individual methods to ensure that they can process the Could you please expand your case a little bit? Which Apache Airflow version are you using to achieve it? Which provider version are you using for google (apache-airflow-providers-google)? |
Thank you @bugraoz93 |
Yes. I realised it works with a '$' decorator and went ahead. It is in production for 2 months now. My sheer stupidity to miss out on updating this thread and closing it. Sorry about that. Cheers. |
Description
As of now, there is no support to copy a partition from a source table to destination table's partition in the existing code
bq cp
cli gives an option to do this with a decorator ( $ ).Use case/motivation
we have many use cases everyday where we keep different tables across projects in sync by materialising new partitions with a frequency. This feature could be great. other options for now would be using DBT, but to use it just for this will be an added task.
Related issues
No response
Are you willing to submit a PR?
Code of Conduct
The text was updated successfully, but these errors were encountered: