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

Mutator Question: Is it possible to partition by ingestion time? #319

Open
lionkeng opened this issue Dec 4, 2022 · 1 comment
Open

Comments

@lionkeng
Copy link

lionkeng commented Dec 4, 2022

From the changes made in #113, it looks like the column identified for partitioning that the mutator cli takes has to exist. What I'd like to do is to actually partition the table by ingestion time (https://cloud.google.com/bigquery/docs/partitioned-tables#ingestion_time). This is a pseudo column named _PARTITIONTIME. Can this be supported?

@dilyand
Copy link
Contributor

dilyand commented Dec 13, 2022

Hi @lionkeng , apologies for the long silence about your question.

You can create a table by specifying the load_tstamp column as the partitioning column. This column will be automatically added to the table, ie it doesn't need to exist in advance.

Would that help?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants