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

Spike: Types compatibility and Codecs #84

Closed
tabdulradi opened this issue Sep 4, 2016 · 3 comments
Closed

Spike: Types compatibility and Codecs #84

tabdulradi opened this issue Sep 4, 2016 · 3 comments
Assignees
Projects
Milestone

Comments

@tabdulradi
Copy link
Member

No description provided.

@tabdulradi tabdulradi added this to the 0.4 milestone Sep 4, 2016
@tabdulradi tabdulradi self-assigned this Sep 4, 2016
@tabdulradi
Copy link
Member Author

  1. Alter Table's alter type only allows very limited type changes, for example ( int -> varint )
  2. row.getVarint(...) on a column with a type int fails
  3. row.getVarint(...) on a column that has been changed from int to varint, but had existing data, still fails! (Why Cassandra allowed it first place?)

IOError: java.io.EOFException: EOF after 64 bytes out of 2148938))
com.datastax.driver.core.exceptions.NoHostAvailableException: All host(s) tried for query failed (tried: /127.0.0.1:9042 (com.datastax.driver.core.exceptions.ServerError: An unexpected error occurred server side on /127.0.0.1:9042: java.io.IOError: java.io.EOFException: EOF after 64 bytes out of 2148938))

@tabdulradi
Copy link
Member Author

Some types are exactly the same, like text and varchar, it doesn't matter anything changing between them.

@tabdulradi
Copy link
Member Author

Conclusion: Altering column types would definitely break Parsing if compiled on an older schema (and vice versa), even if types were compatible like (int and varint), but would still work for types were aliases like text and varchar.

Allowing parsing across different schemas requires more work, to be researched later.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Troy
Done
Development

No branches or pull requests

1 participant