sathesuraj opened a new issue, #2464:
URL: https://github.com/apache/polaris/issues/2464

   ### Is your feature request related to a problem? Please describe.
   
   Currently, Polaris does not support CockroachDB. It only supports 
PostgreSQL, even though CockroachDB is highly compatible with PostgreSQL.
   
   ### Describe the solution you'd like
   
   CockroachDB uses INT8 (64-bit signed integer) as the default storage type 
for INT, INTEGER, and BIGINT data types. It does not support a 32-bit integer 
type (INT4) as a separate storage type. This design simplifies type handling 
and avoids integer overflow issues.
   
   In Polaris, a JDBC connection is used to create metastore tables by 
executing SQL files. These files define types as INT and BIGINT. During the 
bootstrap process, when Polaris attempts to read INT columns from CockroachDB 
as the Integer Java datatype, it fails because CockroachDB stores these as 
INT8, which should be read as Long in Java.
   
   One option would be to update sql scripts to use INT4 and INT8 instead of 
INT, it should work with both PostgreSQL and Cockroach DB. 
   
   ### Describe alternatives you've considered
   
   _No response_
   
   ### Additional context
   
   _No response_


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