[ https://issues.apache.org/jira/browse/CASSANDRA-13535?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Anonymous updated CASSANDRA-13535: ---------------------------------- Reproduced In: 3.10, 3.8, 3.7 (was: 3.7, 3.8, 3.10) Status: Awaiting Feedback (was: Open) > Error decoding JSON for timestamp smaller than Integer.MAX_VALUE > ---------------------------------------------------------------- > > Key: CASSANDRA-13535 > URL: https://issues.apache.org/jira/browse/CASSANDRA-13535 > Project: Cassandra > Issue Type: Bug > Components: Core > Reporter: Jeremy Nguyen Xuan > > When trying to insert a JSON with field of type timestamp, the field is > decoded as an Integer instead as a Long. > {code} > CREATE TABLE foo.bar ( > myfield timestamp, > PRIMARY KEY (myfield) > ); > cqlsh:foo> INSERT INTO bar JSON '{"myfield":0}'; > InvalidRequest: Error from server: code=2200 [Invalid query] message="Error > decoding JSON value for myfield: Expected a long or a datestring > representation of a timestamp value, but got a Integer: 0" > cqlsh:foo> INSERT INTO bar JSON '{"myfield":2147483647}'; > InvalidRequest: Error from server: code=2200 [Invalid query] message="Error > decoding JSON value for myfield: Expected a long or a datestring > representation of a timestamp value, but got a Integer: 2147483647" > cqlsh:foo> INSERT INTO bar JSON '{"myfield":2147483648}'; > cqlsh:foo> > {code} -- This message was sent by Atlassian JIRA (v6.4.14#64029) --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@cassandra.apache.org For additional commands, e-mail: commits-h...@cassandra.apache.org