-
Notifications
You must be signed in to change notification settings - Fork 198
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
Support for Cassandra Duration type #355
Comments
Cassandra duration is not supported, as far as I know, there is not corresponding types in Lucene for that.
… On 29 Jun 2020, at 09:13, Ryan Quey ***@***.***> wrote:
Describe the feature: Support for duration data type
Currently, unless I am mistaken there does not seem to be support for Cassandra's duration data type <https://cassandra.apache.org/doc/3.11/cql/types.html#working-with-durations>. When I try to create an ES index for my existing C* table of type duration, I get the following error:
{"error":{
"root_cause": [{"type":"mapper_parsing_exception","reason":"Failed to execute query:null : Existing column [duration] type [duration] mismatch with inferred type [text]"}],
"type":"mapper_parsing_exception",
"reason":"Failed to execute query:null : Existing column [duration] type [duration] mismatch with inferred type [text]",
"caused_by": {"type":"configuration_exception","reason":"Existing column [duration] type [duration] mismatch with inferred type [text]"}},
"status":400
}
Furthermore, the duration type is not mentioned in Elassandra's docs related to type mapping <https://elassandra.readthedocs.io/en/latest/mapping.html#type-mapping>.
It would be nice to have support for this if possible, though I'm not sure how it would be implemented exactly
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub <#355>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/ACOMPGJ265U3DIJDWLVXBJ3RZA5IJANCNFSM4OK7JGJA>.
|
Ok that makes sense. Is there a recommended best practice then for handling Cassandra durations? Or is there a way to convert one into an integer (probably integer in milliseconds or nanoseconds) or something like that? |
Yes, an integer or a long (bigint in Cassandra)...
… On 29 Jun 2020, at 21:00, Ryan Quey ***@***.***> wrote:
Ok that makes sense. Is there a recommended best practice then for handling Cassandra durations? Or is there a way to convert one into an integer (probably integer in milliseconds or nanoseconds) or something like that?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub <#355 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/ACOMPGLDIOV2C5NBYIGQTITRZDQEHANCNFSM4OK7JGJA>.
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the feature: Support for
duration
data typeCurrently, unless I am mistaken there does not seem to be support for Cassandra's
duration
data type. When I try to create an ES index for my existing C* table of type duration, I get the following error:Furthermore, the duration type is not mentioned in Elassandra's docs related to type mapping.
It would be nice to have support for this if possible, though I'm not sure how it would be implemented exactly
The text was updated successfully, but these errors were encountered: