You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@gravitino.apache.org by "KeeProMise (via GitHub)" <gi...@apache.org> on 2025/06/25 03:01:22 UTC

[I] [Bug report] There is a syntax error in the policy_version_info table in the upgrade-0.9.0-to-1.0.0-mysql.sql file. [gravitino]

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

   ### Version
   
   main branch
   
   ### Describe what's wrong
   
   ```shell
   MySQL [gravitino]> CREATE TABLE IF NOT EXISTS `policy_version_info` (
       ->     `id` BIGINT(20) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'auto increment id',
       ->     `metalake_id` BIGINT(20) UNSIGNED NOT NULL COMMENT 'metalake id',
       ->     `policy_id` BIGINT(20) UNSIGNED NOT NULL COMMENT 'policy id',
       ->     `version` INT UNSIGNED NOT NULL COMMENT 'policy info version',
       ->     `policy_comment` TEXT DEFAULT NULL COMMENT 'policy info comment',
       ->     `enabled` TINYINT(1) DEFAULT 1 COMMENT 'whether the policy is enabled, 0 is disabled, 1 is enabled',
       ->     `content` MEDIUMTEXT DEFAULT NULL COMMENT 'policy content',
       ->     `deleted_at` BIGINT(20) UNSIGNED NOT NULL DEFAULT 0 COMMENT 'policy deleted at',
       ->     PRIMARY KEY (`id`),
       ->     UNIQUE KEY `uk_pod_ver_del` (`policy_id`, `version`, `deleted_at`),
       ->     KEY `idx_mid` (`metalake_id`),
       -> ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin COMMENT 'policy version info';
   ```
   ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ') ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin COMMENT 'policy vers' at line 13
   
   ### Error message and/or stacktrace
   
   ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ') ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin COMMENT 'policy vers' at line 13
   
   ### How to reproduce
   
   Executing this SQL statement 
   
   ### Additional context
   
   From the error message, it appears that the issue lies at the end of the SQL statement. The error prompt indicates that there is a syntax error near ') ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin COMMENT 'policy vers'. Specifically, the problem may be due to the comma after the last field or index definition in the table structure definition.


-- 
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] [Bug report] There is a syntax error in the policy_version_info table in the upgrade-0.9.0-to-1.0.0-mysql.sql file. [gravitino]

Posted by "mchades (via GitHub)" <gi...@apache.org>.
mchades closed issue #7467: [Bug report] There is a syntax error in the policy_version_info table in the upgrade-0.9.0-to-1.0.0-mysql.sql file.
URL: https://github.com/apache/gravitino/issues/7467


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