Hi all, I'd like to propose the following additions to the Flight SQL protocol, as discussed in [1]:
- SQL_SUBSTRAIT_DIALECT (577): a UTF-8 string holding a Substrait dialect [2], i.e. a YAML document listing the types, relations, expressions and function signatures the server accepts in a plan. It should only be returned if FLIGHT_SQL_SERVER_SUBSTRAIT is true. If it isn't returned, the server doesn't describe which part of Substrait it accepts; that doesn't mean it accepts all of it. - SQL_SUBSTRAIT_DIALECT_HASH (578): an opaque string identifying the dialect's content, for client-side caching. Clients compare it for equality only; the server must return a different value whenever the dialect changes (e.g. a hex-encoded SHA-256 of the dialect). Both codes sit in the [500, 1000) range next to the other SQL syntax codes, so ADBC, which reuses Flight SQL's SqlInfo codes, picks them up as well. The change is backwards-compatible: no existing codes or types change. The format change and the C++ enum update are in the PR [3]; the issue is [4]. The vote will be open for at least 72 hours. [ ] +1 Accept this proposal [ ] +0 [ ] -1 Do not accept this proposal because... [1]: https://lists.apache.org/thread/m9f6t1losc3w8jgz33xs0hmwgy1m6r0r [2]: https://github.com/substrait-io/substrait/blob/main/text/dialect_schema.yaml [3]: https://github.com/apache/arrow/pull/54360 [4]: https://github.com/apache/arrow/issues/53872 Thanks, Tornike
