Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GetQueryResultsResponse ¶
type GetQueryResultsResponse struct {
JobReference *bigqueryv2.JobReference `json:"jobReference"`
Schema *bigqueryv2.TableSchema `json:"schema"`
Rows []*TableRow `json:"rows"`
TotalRows uint64 `json:"totalRows,string"`
JobComplete bool `json:"jobComplete"`
PageToken string `json:"pageToken,omitempty"`
TotalBytes uint64 `json:"-"`
}
type QueryResponse ¶
type QueryResponse struct {
JobReference *bigqueryv2.JobReference `json:"jobReference"`
Schema *bigqueryv2.TableSchema `json:"schema"`
Rows []*TableRow `json:"rows"`
TotalRows uint64 `json:"totalRows,string"`
JobComplete bool `json:"jobComplete"`
TotalBytes int64 `json:"-"`
ChangedCatalog *googlesqlite.ChangedCatalog `json:"-"`
}
type TableCell ¶
Redefines the TableCell type to return null explicitly because TableCell for bigqueryv2 is omitted if V is nil,
func (*TableCell) AVROValue ¶ added in v0.1.23
func (c *TableCell) AVROValue(namespace string, schema *types.AVROFieldSchema) (interface{}, error)
func (*TableCell) AppendValueToARROWBuilder ¶ added in v0.1.23
type TableDataList ¶ added in v0.1.5
type TableRow ¶
type TableRow struct {
F []*TableCell `json:"f,omitempty"`
}
func Format ¶ added in v0.1.18
func Format(schema *bigqueryv2.TableSchema, rows []*TableRow, useInt64Timestamp bool) []*TableRow
Format converts TIMESTAMP result cells from the raw canonical timestamp produced by the SQL backend into the representation the BigQuery REST API returns: int64 microseconds-since-epoch when useInt64Timestamp is set, and otherwise a float seconds-since-epoch string. Every official client decodes a TIMESTAMP value as one of those two numeric forms, never as a formatted datetime string.
func (*TableRow) AppendValueToARROWBuilder ¶ added in v0.1.23
func (r *TableRow) AppendValueToARROWBuilder(builder *array.RecordBuilder) error
Click to show internal directories.
Click to hide internal directories.