MCPcopy Create free account
hub / github.com/PostHog/duckgres / timestampToTime

Function timestampToTime

server/flightclient/flight_executor.go:812–826  ·  view source on GitHub ↗
(val arrow.Timestamp, unit arrow.TimeUnit)

Source from the content-addressed store, hash-verified

810 names := make([]string, r.schema.NumFields())
811 for i := 0; i < r.schema.NumFields(); i++ {
812 names[i] = r.schema.Field(i).Name
813 }
814 return names, nil
815}
816
817func (r *FlightRowSet) ColumnTypes() ([]sqlcore.ColumnTyper, error) {
818 types := make([]sqlcore.ColumnTyper, r.schema.NumFields())
819 for i := 0; i < r.schema.NumFields(); i++ {
820 types[i] = newArrowColumnType(r.schema.Field(i))
821 }
822 return types, nil
823}
824
825func (r *FlightRowSet) Next() bool {
826 if r.done || r.err != nil {
827 return false
828 }
829

Callers 1

extractArrowValueFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected