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

feat(bq2bq): add spillover date via SQL support #10

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

vianhazman
Copy link
Member

No description provided.

@vianhazman vianhazman marked this pull request as ready for review September 23, 2021 08:47
@kushsharma
Copy link
Member

This looks good, can you add an example or test that uses this?

@vianhazman
Copy link
Member Author

Hi @kushsharma , thanks for reviewing. I've added an example in the latest commit a95c38d.

Comment on lines +2 to +3
TIMESTAMP('__dstart__') as dstart,
TIMESTAMP('__dend__') as dend,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

these dstart dend macros won't work now and these will be exact timestamps getting passed to this SQL, we know that right?

Comment on lines +6 to +7
WHERE date >= DATE_SUB('__dstart__', INTERVAL 14 DAY)
AND date < '__dend__'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

similarly, these will be exact timestamps.

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

Successfully merging this pull request may close these issues.

2 participants