You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@iceberg.apache.org by GitBox <gi...@apache.org> on 2021/07/01 17:17:34 UTC

[GitHub] [iceberg] ismailsimsek commented on issue #2744: JdbcCatalog can not work on mysql and postgresql

ismailsimsek commented on issue #2744:
URL: https://github.com/apache/iceberg/issues/2744#issuecomment-872418671


   Thank you @haormj for testing the new feature,
   
   tested your suggestion with Mysql, Postgresql, MsSQL databases and its working, please feel free to open PR
   
   for 2. Error  it seems like we should use reasonable VARCHAR size current size is too big,
   following column sizes are working with MySQL 5.6 and other databases and i believe they should be sufficient 
   
   ```
         "CREATE TABLE " + CATALOG_TABLE_NAME +
             "(" +
             CATALOG_NAME + " VARCHAR(255) NOT NULL," +
             TABLE_NAMESPACE + " VARCHAR(255) NOT NULL," +
             TABLE_NAME + " VARCHAR(255) NOT NULL," +
             METADATA_LOCATION + " VARCHAR(5500)," +
             PREVIOUS_METADATA_LOCATION + " VARCHAR(5500)," +
             "PRIMARY KEY (" + CATALOG_NAME + ", " + TABLE_NAMESPACE + ", " + TABLE_NAME + ")" +
             ")";
   ```
   
   


-- 
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: issues-unsubscribe@iceberg.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org