Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 9 additions & 8 deletions documentation/client/arrow_flight_sql.md
Original file line number Diff line number Diff line change
Expand Up @@ -174,16 +174,17 @@ before any row (*since arrow-extensions `0.3.5`*; it was inferred from the first
advertised schema (`GetFlightInfo`, a prepared statement's schema, the ADBC result schema) and the
stream always agree, and preparing a statement runs no search. A `BIGINT` column arrives as
`Int(64)` whatever its values, and a computed column the engine declares `DOUBLE` (`x * 2` over a
`DOUBLE` column) as `Float(DOUBLE)`. Each leg of a JOIN or of a derived table is typed the same
way, from its own statement. A column of no known type (`ANY`, an object with no declared fields, a
flattened or disabled object) is `Utf8`, its cells the engine's text (see
[Value classes](gateway.md#value-classes)). A cell holding several values in a column
declared as one value fails, naming the column, the row and how to declare the column a list,
`DOUBLE` column) as `Float(DOUBLE)`. A timestamp travels in milliseconds: a `date_nanos` column (a
`TIMESTAMP` the engine reads to the nanosecond) arrives at millisecond precision. Each leg of a JOIN
or of a derived table is typed the same way, from its own statement. A column of no known type
(`ANY`, an object with no declared fields, a flattened or disabled object) is `Utf8`, its cells the
engine's text (see [Value classes](gateway.md#value-classes)). A cell holding several values in a
column declared as one value fails, naming the column, the row and how to declare the column a list,
instead of reading `NULL`; so does a value its column's type cannot hold. A set operation's branches
are typed from the declared types above when the statement is planned, and a JOIN result carries
DuckDB's types. A column the reader cannot answer — a dictionary-encoded column, an Arrow
type it has no reader for — fails naming the column instead of reading `NULL` (*since
arrow-extensions `0.3.4`*).
DuckDB's types. A column the reader cannot answer — a dictionary-encoded column, an Arrow type it
has no reader for — fails naming the column instead of reading `NULL` (*since arrow-extensions
`0.3.4`*).

*Since arrow-extensions `0.3.5`*, a statement the relational engine runs — a cross-index JOIN, a
correlated subquery, a derived table, a `WITH`, a set operation other than `UNION ALL` — is typed
Expand Down
5 changes: 4 additions & 1 deletion documentation/sql/known_limitations.md
Original file line number Diff line number Diff line change
Expand Up @@ -683,7 +683,10 @@ the column it aggregates, whatever the other rows answer.
`MAX`), a `GREATEST` / `LEAST` and a window partition over it compute in milliseconds, as
Elasticsearch's doc values and aggregations do, and so does a number of days added to a
function's result over it (`DATE_TRUNC(dn, MONTH) + 1`), to a per-group value or in an ingest
script.
script. Over Arrow Flight SQL and ADBC, where a timestamp travels as `Timestamp(MS)`, a `date_nanos`
value arrives at millisecond precision (`…00.123456789Z` reads `…00.123`); through the relational
engine (a JOIN, for instance) it arrived as its text, nanoseconds included, before
arrow-extensions `0.3.5`. A plain query through the JDBC driver keeps the nanoseconds.
- **An `unsigned_long` value above 2^63-1 is answered as stored**, a `java.math.BigInteger` in a
`BIGINT` column (core has no unsigned type); every smaller value is a `Long`.
- **A `flattened` field, an `alias`, a `wildcard`, a `match_only_text`, a `version` or a `geo_shape`
Expand Down
Loading