You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@gravitino.apache.org by "justinmclean (via GitHub)" <gi...@apache.org> on 2025/08/12 05:50:28 UTC

[I] [Improvement] correct SQLite table creation SQL generation in SqliteTableOperations.java [gravitino]

justinmclean opened a new issue, #8035:
URL: https://github.com/apache/gravitino/issues/8035

   ### What would you like to be improved?
   
   In catalogs/catalog-jdbc-common/src/test/java/org/apache/gravitino/catalog/jdbc/operation/SqliteTableOperations.java, correct SQLite table creation SQL generation to always close with a semicolon and include optional comments and properties to prevent malformed statements when a comment is specified.
   
   Here's a test to help:
   ```
     @Test
     public void testGenerateCreateTableSqlWithCommentEndsWithSemicolon() {
       SqliteTableOperations ops = new SqliteTableOperations();
       
       String sql = ops.generateCreateTableSql(
           "test_table",
           new JdbcColumn[0],
           "comment",
           null,
           new Transform[0],
           Distributions.NONE,
           new Index[0]);
       
       assertTrue(sql.trim().endsWith("COMMENT 'comment';"), 
                  "Generated SQL should end with COMMENT 'comment';");
     }
   ```
   
   
   ### How should we improve?
   
   _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: commits-unsubscribe@gravitino.apache.org.apache.org

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


Re: [I] [Improvement] correct SQLite table creation SQL generation in SqliteTableOperations.java [gravitino]

Posted by "justinmclean (via GitHub)" <gi...@apache.org>.
justinmclean closed issue #8035: [Improvement]  correct SQLite table creation SQL generation in SqliteTableOperations.java
URL: https://github.com/apache/gravitino/issues/8035


-- 
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: commits-unsubscribe@gravitino.apache.org

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


Re: [I] [Improvement] correct SQLite table creation SQL generation in SqliteTableOperations.java [gravitino]

Posted by "justinmclean (via GitHub)" <gi...@apache.org>.
justinmclean commented on issue #8035:
URL: https://github.com/apache/gravitino/issues/8035#issuecomment-3186450684

   Sure, it's yours.


-- 
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: commits-unsubscribe@gravitino.apache.org

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


Re: [I] [Improvement] correct SQLite table creation SQL generation in SqliteTableOperations.java [gravitino]

Posted by "PCloud63514 (via GitHub)" <gi...@apache.org>.
PCloud63514 commented on issue #8035:
URL: https://github.com/apache/gravitino/issues/8035#issuecomment-3186344199

   Hi, although I have previously contributed to another "good first issue,"
   would it be okay if I also work on this one?


-- 
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: commits-unsubscribe@gravitino.apache.org

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