Skip to content

Commit

Permalink
[FIX] The PRIMARY KEY on the partitioned table INODES does not includ…
Browse files Browse the repository at this point in the history
…e the partitioning column PARENT
  • Loading branch information
gangliao committed Oct 1, 2019
1 parent 3b22d9a commit f60c1f2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions HdfsMetaInfoSchema.java
Expand Up @@ -92,9 +92,10 @@ private HdfsMetaInfoSchema() throws SQLException {
+ " maxDate bigint, sequenceNumber int primary key, masterKeyId int, expiryDate bigint"
+ ");"
+ "CREATE TABLE inodes("
+ " id bigint primary key, parent bigint NOT NULL, name varchar,"
+ " id bigint, parent bigint NOT NULL, name varchar,"
+ " accessTime bigint, modificationTime bigint,"
+ " header bigint, permission bigint"
+ " header bigint, permission bigint,"
+ " PRIMARY KEY (id, parent)"
+ ");"
+ "PARTITION TABLE inodes ON COLUMN parent;"
+ "CREATE TABLE inodexattrs("
Expand Down

0 comments on commit f60c1f2

Please sign in to comment.