[
https://issues.apache.org/jira/browse/KYLIN-5445?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17692994#comment-17692994
] ASF GitHub Bot commented on KYLIN-5445: --------------------------------------- sonarcloud[bot] commented on PR #2094: URL: https://github.com/apache/kylin/pull/2094#issuecomment-1442767903 SonarCloud Quality Gate failed. [](https://sonarcloud.io/dashboard?id=apache_kylin&pullRequest=2094) [](https://sonarcloud.io/project/issues?id=apache_kylin&pullRequest=2094&resolved=false&types=BUG) [](https://sonarcloud.io/project/issues?id=apache_kylin&pullRequest=2094&resolved=false&types=BUG) [2 Bugs](https://sonarcloud.io/project/issues?id=apache_kylin&pullRequest=2094&resolved=false&types=BUG) [](https://sonarcloud.io/project/issues?id=apache_kylin&pullRequest=2094&resolved=false&types=VULNERABILITY) [](https://sonarcloud.io/project/issues?id=apache_kylin&pullRequest=2094&resolved=false&types=VULNERABILITY) [1 Vulnerability](https://sonarcloud.io/project/issues?id=apache_kylin&pullRequest=2094&resolved=false&types=VULNERABILITY) [](https://sonarcloud.io/project/security_hotspots?id=apache_kylin&pullRequest=2094&resolved=false&types=SECURITY_HOTSPOT) [](https://sonarcloud.io/project/security_hotspots?id=apache_kylin&pullRequest=2094&resolved=false&types=SECURITY_HOTSPOT) [0 Security Hotspots](https://sonarcloud.io/project/security_hotspots?id=apache_kylin&pullRequest=2094&resolved=false&types=SECURITY_HOTSPOT) [](https://sonarcloud.io/project/issues?id=apache_kylin&pullRequest=2094&resolved=false&types=CODE_SMELL) [](https://sonarcloud.io/project/issues?id=apache_kylin&pullRequest=2094&resolved=false&types=CODE_SMELL) [70 Code Smells](https://sonarcloud.io/project/issues?id=apache_kylin&pullRequest=2094&resolved=false&types=CODE_SMELL) [](https://sonarcloud.io/component_measures?id=apache_kylin&pullRequest=2094&metric=new_coverage&view=list) [76.7% Coverage](https://sonarcloud.io/component_measures?id=apache_kylin&pullRequest=2094&metric=new_coverage&view=list) [](https://sonarcloud.io/component_measures?id=apache_kylin&pullRequest=2094&metric=new_duplicated_lines_density&view=list) [0.0% Duplication](https://sonarcloud.io/component_measures?id=apache_kylin&pullRequest=2094&metric=new_duplicated_lines_density&view=list) > Epoch tables of metadata are created without primary key, which results in > failure of creating table under specific versions of database > ---------------------------------------------------------------------------------------------------------------------------------------- > > Key: KYLIN-5445 > URL: https://issues.apache.org/jira/browse/KYLIN-5445 > Project: Kylin > Issue Type: Bug > Components: Metadata > Affects Versions: 5.0-alpha > Reporter: Ruixuan Zhang > Assignee: Ruixuan Zhang > Priority: Major > Fix For: 5.0-alpha > > > When KYLIN using jdbc to create epoch table, sometimes creating table will > results in failure under certain versions of database due to that table not > specifying the primary key. > Therefore, the field target_epoch can be used as primary key, and its > previous constraint of being unique can be removed. For the environment that > the table has already exist, KYLIN will firstly check if the primary key > exists, if so, then target_epoch will be added as primary key. -- This message was sent by Atlassian Jira (v8.20.10#820010)
