-
Notifications
You must be signed in to change notification settings - Fork 323
Open
Labels
api: bigqueryIssues related to the googleapis/python-bigquery API.Issues related to the googleapis/python-bigquery API.type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.‘Nice-to-have’ improvement, new feature or different behavior or design.
Description
"BigQuery now supports the INTERVAL type, which represents a duration or an amount of time. This type is in Preview."
https://cloud.google.com/bigquery/docs/release-notes#July_27_2021
Name | Range |
---|---|
INTERVAL | -10000-0 -3660000 -87840000:0:0 to 10000-0 3660000 87840000:0:0 |
An INTERVAL object represents duration or amount of time. Interval is composed of three independent parts:
[sign]Y-M
: Years and Months[sign]D
: Days[sign]H:M:S.F
: Hours, Minutes, Seconds and Subseconds.
Canonical format
[sign]Y-M [sign]D [sign]H:M:S[.F]
Y
: YearM
: MonthD
: DayH
: HourM
: MinuteS
: Second[.F]
: Up to six fractional digits (microsecond precision)
TODO:
- Add relevant enums for data types
- Row data is converted to relevant type in RowIterator (
list_rows()
) feat: add support for INTERVAL data type tolist_rows
#840 - Convert data type in query parameters
- Covert data type in
insert_rows
Edit: Removed pandas, arrow, db-api support in favor of #836, as those implementations are currently blocked on Arrow and the BQ Storage API.
thijs-obj and arthurcw
Metadata
Metadata
Assignees
Labels
api: bigqueryIssues related to the googleapis/python-bigquery API.Issues related to the googleapis/python-bigquery API.type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.‘Nice-to-have’ improvement, new feature or different behavior or design.