harshkumar-2005 opened a new pull request, #47922:
URL: https://github.com/apache/arrow/pull/47922

   ### Rationale
   Introduces a `type_singleton(Type::type id)` utility to create 
parameter-free DataType instances
   (such as int32, boolean, utf8, etc.) without requiring parameters. Returns 
an error for
   parameterized or unsupported types.
   
   ### Implementation Details
   - Added implementation in `type_traits.cc`
   - Declared function in `type_traits.h`
   - Added comprehensive tests for:
     - Parameter-free types (success cases)
     - Parameterized types (expected error)
     - Invalid type IDs (graceful error handling)
   
   ### Testing
   All tests in `arrow-type-test` passed locally:
   
   ### Notes
   This utility simplifies internal code where parameter-free type instances 
are required.
   
   Closes: https://issues.apache.org/jira/browse/ARROW-46531


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