brianmhess / cassandra-loader

Delimited file loader for Cassandra
Apache License 2.0
197 stars 93 forks source link

CQL schema strings longer than 4096 fail to parse #65

Closed alfredo-gimenez closed 7 years ago

alfredo-gimenez commented 7 years ago

Because the cqlSchema is parsed using the csv parser, the size of schemaString is restricted to 4096 characters.

jbax commented 7 years ago

Hi there the parser is not restricted to 4096 characters, this is just the default limit. You can increase it or simply set the limit to -1 to not have a limit at all.

As per javadoc, all you need to do is to use:

settings.setMaxCharsPerColumn(-1);and be done with it.

Hope this helps.

brianmhess commented 7 years ago

Fixed in v0.0.26

alfredo-gimenez commented 7 years ago

Great! The other issue I didn't mention in #65 was when you have parentheses in your table names (#74) PR #66 fixes both problems.