feat: Support for DuckDB’s RANGE function with two timestamps for BigQuery Compatibility #10487
Open
1 task done
Labels
feature
Features or general enhancements
Is your feature request related to a problem?
In DuckDB, the RANGE function requires a third argument (an interval) when working with timestamps. This differs from BigQuery’s implementation, where the RANGE function can take two timestamp arguments without an interval. This incompatibility prevents the following query, which works in BigQuery, from running in DuckDB.
Error:
The same query works in BigQuery:
Resulting:
What is the motivation behind your request?
I’m using Ibis to test BigQuery queries locally. This feature is needed to make sure BigQuery operators work the same way in Ibis. Specifically, it would support doing as of joins as suggested by the documentation. Enabling it also envolves adding the
RANGE_CONTAINS
function.Describe the solution you'd like
Add support to BQ's RANGE and RANGE_CONTAINS functions when BigQuery dialect is chosen.
What version of ibis are you running?
9.5.0
What backend(s) are you using, if any?
DuckDB, BigQuery
Code of Conduct
The text was updated successfully, but these errors were encountered: