JingsongLi opened a new pull request, #1291:
URL: https://github.com/apache/paimon-rust/pull/1291

   ### Purpose
   
   Closes #1285.
   
   Common SQL names split, locate, date, typeof, hex, unhex, size and hour are 
not registered in SQLContext. Some require semantic adapters rather than simple 
aliases.
   
   ### Brief change log
   
   - Add regex split with limits and Unicode locate, plus explicit hex/unhex 
encoding behavior.
   - Add array/map size, temporal hour extraction and SQL-style type labels 
including Variant and small decimals.
   - Alias native to_date with configuration forwarding and document NULL, 
error, regex, time and encoding contracts.
   
   ### Tests
   
   - Regression coverage: Dynamic row inputs, NULL and empty values, split 
limits/trailing fields/empty patterns, Unicode positions, signed/binary hex, 
odd/invalid hex, Variant/decimal types, map size and TIME/DATE hour extraction.
   - Reproduced the missing behavior on the original main before implementation.
   - Passed the complete DataFusion suite with `TZ=UTC RUST_MIN_STACK=16777216 
CARGO_BUILD_JOBS=3 cargo test --locked -p paimon-datafusion --all-targets -- 
--test-threads=4`.
   - Passed Rust 1.98 Clippy for this crate and all its targets with `--no-deps 
-- -D warnings`, formatting and diff checks.
   
   ### API and Format
   
   Adds SQLContext SQL capabilities. No storage-format or Rust public API 
changes.
   
   ### Documentation
   
   Documented syntax, type/null/error behavior and supported limits in 
`docs/src/sql.md`.
   


-- 
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]

Reply via email to