Skip to content

Defining a custom Constant for Bigquery removes function call #8213

Answered by jcrist
saschahofmann asked this question in Q&A
Discussion options

You must be logged in to vote

I suspect this is due to sqlglot - in ibis 7.0 we started using sqlglot as part of the bigquery compilation chain. Does it make a difference though? From looking at the bigquery docs AFAICT both CURRENT_DATE and CURRENT_DATE() should be identical: https://cloud.google.com/bigquery/docs/reference/standard-sql/date_functions#current_date.

Since getting the current date is a general enough operation it makes sense to support it directly in ibis itself. I've pushed a PR up here: #8664.

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@jcrist
Comment options

Answer selected by cpcloud
@saschahofmann
Comment options

@saschahofmann
Comment options

@cpcloud
Comment options

@saschahofmann
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants