Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RiakTs CreateTable command #602

Merged
merged 2 commits into from
Apr 1, 2016
Merged

Conversation

srgg
Copy link
Contributor

@srgg srgg commented Mar 16, 2016

No description provided.

{
private static final TableDefinition tableDefinition = new TableDefinition("TestTable", Arrays.asList(
new FullColumnDescription("field1", ColumnDescription.ColumnType.TIMESTAMP, false, 1),
new FullColumnDescription("field2", ColumnDescription.ColumnType.SINT64, false, null, 1),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you think this case should result in an error when creating the TableDefinition? (Having 2 columns with the same key ordinal #). The null ordinal # is confusing too...

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hm.. my bad.. I forgot about the necessity of having the whole PK as a head of a local key :(

@alexmoore
Copy link
Contributor

+1. Works as advertised.

I'll have to see if we need to add any extra validation to ensure that one key type is null while the other is defined (your second column), but that can wait.

@alexmoore alexmoore merged commit f9fa70b into develop Apr 1, 2016
@alexmoore alexmoore deleted the feature/create-table-riakts-command branch April 1, 2016 04:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants