alamb commented on issue #6817:
URL: 
https://github.com/apache/arrow-datafusion/issues/6817#issuecomment-1637092320

   I think this would be very straightforward as long as the postgres type had 
a clear mapping to an Arrow type. For example int8 maps seemingly nicely to 
`DataType::Int8`
   
   The mapping of SQL type to ArrowType is done here: 
   
   
https://github.com/apache/arrow-datafusion/blob/49583bd5010282ca126e75100dce958aa346e5ee/datafusion/sql/src/planner.rs#L308-L400
   
   ```
   cDataFusion CLI v27.0.0
   ❯ create table foo(x int8);
   This feature is not implemented: Unsupported SQL type 
Custom(ObjectName([Ident { value: "int8", quote_style: None }]), [])
   ```
   
   So we would just have to encode a listing of custom type names to arry


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