8000 JAVA-913: Redesign IndexMetadata API. by adutra · Pull Request #452 · apache/cassandra-java-driver · GitHub
[go: up one dir, main page]

Skip to content

Conversation

@adutra
Copy link
Contributor
@adutra adutra commented Sep 15, 2015

See CASSANDRA-10216 for details.

@adutra adutra force-pushed the java913 branch 4 times, most recently from b10e9bb to 94b8dad Compare September 16, 2015 09:27
Copy link
Contributor

Choose a reason for hiding this comment

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

This one is failing on <= 2.1 for some reason, though looks like it should work...looking into it.

Copy link
Contributor

Choose a reason for hiding this comment

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

Just needed to selectively create the index based on major version much like should_create_metadata_for_index_on_map_values, i.e.: https://gist.github.com/tolbertam/4be3efec48975fe4b4d4

@adutra adutra force-pushed the java913 branch 2 times, most recently from a9f08b3 to d56dd0b Compare September 16, 2015 16:08
@tolbertam
Copy link
Contributor

Added a version requirement check to one of the tests (feel free to squash that when merging). This looks good to me 👍

@tolbertam
Copy link
Contributor

Added another test (for testing with multiple indexes on same column - not really necessary but figured would be good to add) and also added 'kind' validation. PR still looks good to me 👍

@tolbertam
Copy link
Contributor

I noticed via cassandra-dtests that it was possible to add secondary indexes to materialized views. I noticed that the driver didn't support that yet, so i added it here in 92dabb3 since it seemed pretty straightforward, feel free to back out/change/etc. if it isn't an appropriate change.

Secondary indexes are semi-busted on C* trunk right now (added comment to CASSANDRA-9921), so the test I added currently fails (unless 8000 you put a breakpoint before the execute statement and add the index manually twice), but should pass once fixed in C*.

@adutra
Copy link
Contributor Author
adutra commented Sep 17, 2015

lgtm 👍 thanks for finding out that 2is on mvs are allowed!

@adutra
Copy link
Contributor Author
adutra commented Sep 17, 2015

@tolbertam I just pushed a commit reverting indexes on materialized views following the decision in CASSANDRA-9921. Could you kindly review it again?

@tolbertam
Copy link
Contributor

Sounds good, taking a look :)

Copy link
Contributor

Choose a reason for hiding this comment

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

It'd probably be fine to just delete this test and if support gets added back we can readd it then

@tolbertam
Copy link
Contributor

looks good to me 👍

This commit contains substantial contributions by Andrew Tolbert (@tolbertam).
adutra added a commit that referenced this pull request Sep 17, 2015
@adutra adutra merged commit 1bdcd10 into 3.0 Sep 17, 2015
@adutra adutra deleted the java913 branch February 10, 2016 16:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

0