adriangb opened a new pull request, #21387:
URL: https://github.com/apache/datafusion/pull/21387

   ## Summary
   
   - Adds `is_nullable(expression)` scalar UDF that returns the schema-level 
nullability of the input expression as a boolean
   - Completes the Arrow field introspection set alongside `arrow_typeof` and 
`arrow_metadata`
   - Returns `true` for nullable columns/expressions, `false` for non-nullable 
ones (NOT NULL columns, concrete literals)
   
   ## Test plan
   
   - [x] Added sqllogictest (`is_nullable.slt`) covering:
     - Literal expressions (non-nullable: `is_nullable(1)` → false)
     - NULL literal (nullable: `is_nullable(NULL)` → true)
     - Nullable columns (`id`, `name` from `table_with_metadata`)
     - Non-nullable columns (`ts`, `nonnull_name` from `table_with_metadata`)
     - Expression nullability propagation (`id + 1` inherits nullable)
   - [x] `cargo fmt --all` passes
   - [x] `cargo clippy` passes
   - [x] Regenerated `scalar_functions.md` docs
   
   🤖 Generated with [Claude Code](https://claude.com/claude-code)


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

Reply via email to