Re: Recommendations for an embedded Cassandra and Unit Tests

2016-01-13 Thread Richard L. Burton III
I was hoping that the cqlsh project would expose a class that you can feed is a source file via Java. The parsers in these other projects don't properly parse CQL. e.g., when you encounter a semicolon within a string, ignore it and continue on looking for the end of the string. I ended up having

Re: Recommendations for an embedded Cassandra and Unit Tests

2016-01-12 Thread DuyHai Doan
"What I'm noticing with these projects is that they don't handle CQL files properly" --> your concern is very legit. But handling CQL files properly is very complex, let me explain the reasons. A naive solution if you want to handle CQL syntax is to re-use the ANTLR grammar file here: https://git

Re: Recommendations for an embedded Cassandra and Unit Tests

2016-01-11 Thread Richard L. Burton III
What I'm noticing with these projects is that they don't handle CQL files properly. e.g., cassandra-unit dies when you have a string that contains ; inside of it. The parsing logic they use is very primitive in the sense they simple look for ; to denote the end of a statement. Is there any class i

Re: Recommendations for an embedded Cassandra and Unit Tests

2016-01-11 Thread DuyHai Doan
Achilles 4.x does offer an embedded Cassandra server support with some utility classes like ScriptExecutor. It supports C* 2.2 currently : https://github.com/doanduyhai/Achilles/wiki/CQL-embedded-cassandra-server Le 11 janv. 2016 20:47, "Richard L. Burton III" a écrit : > I'm looking to see what

Recommendations for an embedded Cassandra and Unit Tests

2016-01-11 Thread Richard L. Burton III
I'm looking to see what's recommended for an embedded version of Cassandra, just for unit testing. I'm looking at https://github.com/jsevellec/cassandra-unit/wiki but I wanted to see if there's was a better recommendation? -- -Richard L. Burton III @rburton