Skip to content

Commit

Permalink
Fix compiler errors from secondary index pull
Browse files Browse the repository at this point in the history
  • Loading branch information
jtaylor-sfdc committed Jun 24, 2013
1 parent 1a11cb5 commit 0267233
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,7 @@ public MutationState createIndex(CreateIndexStatement statement) throws SQLExcep
columns.add(indexCol);
}

return doCreateTable(statement, null, (LinkedList<PColumn>) pkColumns, columns, familyNames, new PostIndexDDLCompiler(connection));
return doCreateTable(statement, null, pkColumns, columns, familyNames, new PostIndexDDLCompiler(connection));
}

private MutationState doCreateTable(CreateTableStatement statement, String pkName, LinkedList<PColumn> pkColumns, List<PColumn> columns,
Expand Down Expand Up @@ -457,7 +457,7 @@ private MutationState doCreateTable(CreateTableStatement statement, String pkNam
throw new SQLExceptionInfo.Builder(SQLExceptionCode.INVALID_BUCKET_NUM).build().buildException();
}
if (saltBucketNum != null) {
((LinkedList<PColumn>) pkColumns).addFirst(SaltingUtil.SALTING_COLUMN);
pkColumns.addFirst(SaltingUtil.SALTING_COLUMN);
}

if (isIndex) {
Expand Down

0 comments on commit 0267233

Please sign in to comment.