HyukjinKwon opened a new pull request, #585: URL: https://github.com/apache/spark-connect-rust/pull/585
### What changes were proposed in this pull request? The "Types and Schemas" guide (`docs/types.md`) listed 13 Spark SQL types. `spark_connect::types::DataType` has 30 variants, and these were missing: - `Null`, `Byte`, `Short` - `Char`, `Varchar`, and `String` with a collation - `TimestampNtz`, `Time`, `TimestampNtzNanos`, `TimestampLtzNanos` - `CalendarInterval`, `YearMonthInterval`, `DayTimeInterval` - `Variant`, `Geometry`, `Geography`, `Udt` and `Unparsed` The guide now has a table per family: numbers and booleans, strings and binary, dates and times, intervals, nested types, variant and spatial, and the others. Each row gives the DDL spelling (`simple_string()`) and its aliases, the Rust `DataType`, and the `Value` that `collect()` gives. Each table has notes on what a collected value means, and on what the server requires or refuses. These include: - `spark.sql.timeType.enabled` for TIME, and `spark.sql.timestampNanosTypes.enabled` for the nanosecond timestamps (both off by default in 4.3.0); - CHAR/VARCHAR, which a cast turns into STRING and which `create_dataframe` and reader schemas refuse; - the interval types that `create_dataframe` takes; - the SRIDs of the spatial types. New examples cover inspecting and building a schema, `from_ddl` with `create_dataframe`, `try_cast`, and nested values. The existing sections were checked and corrected (e.g. a `False` that is Rust `false`). ### Why are the changes needed? The guide did not document most of the types. ### Does this PR introduce _any_ user-facing change? Docs only. ### How was this patch tested? - A script checked the page against the enum: all 30 variants are documented. - Every claim was checked against a Spark 4.3.0 server: the DDL spellings parse the same with `from_ddl` and the server's `parse_ddl`, and the collected values and the errors are as stated. - The page's Rust blocks, used verbatim, ran against the server, `assert_eq!`s included. - `scripts/check_doc_snippets.py` (56 snippets, 0 failures) and `mkdocs build --strict` pass. ### Was this patch authored or co-authored using generative AI tooling? Generated-by: Claude Opus 5.5 This pull request and its description were written by Isaac. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
