pavlospt opened a new pull request, #50: URL: https://github.com/apache/fluss-rust/pull/50
## Description This PR implements the `Display` trait for all `DataType` variants and their related types, enabling human-readable string representations. ## Changes - ✅ Implemented `Display` for all primitive types (Boolean, TinyInt, SmallInt, Int, BigInt, Float, Double, etc.) - ✅ Implemented `Display` for complex types (Array, Map, Row, Char, Binary, Decimal, Time, Timestamp, etc.) - ✅ Added nullable handling with 'NOT NULL' suffix for non-nullable types - ✅ Comprehensive test coverage for all implementations - ✅ Fixed missing newline at EOF in rust-toolchain.toml ## Examples ```rust assert_eq!(DataTypes::int().to_string(), "INT"); assert_eq!(DataTypes::array(DataTypes::string()).to_string(), "ARRAY<STRING>"); assert_eq!(DataTypes::int().as_non_nullable().to_string(), "INT NOT NULL"); ``` Fixes #38 -- 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]
