You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description of the problem including expected versus actual behavior:
Got sql_illegal_argument_exception when getting data from elastic search using _xpack/sql.
uri: http://${host}/_xpack/sql?format=json
SQL:
select created_at, device_id from table1 where created_at > 1527982201597 AND user_id = '12345678'
Error:
Steps to reproduce:
use the code (js) below to post a request.
let options = {
method: 'POST',
uri: `http://${hosts}/_xpack/sql?format=json`,
body: {"query": `select created_at, device_id from table1 where created_at > 1527982201597 AND user_id = '12345678'`},
json: true
};
return rp(options);
Got exception in the result.
The created_at is date type and 1527982201597 is milliseconds.
Provide logs (if relevant):
{ error:
{ root_cause: [ [Object] ],
type: 'sql_illegal_argument_exception',
reason: '[1527982201597] out of [Int] range' },
status: 500
}
The text was updated successfully, but these errors were encountered:
@jdu-mydevices Thanks for the (clear) bug report.
I've been able to reproduce the issue and created a PR for it (#31777) which will track when and in what versions it will be pushed.
Elasticsearch version (
6.3
):Plugins installed: [_xpack]
JVM version (
1.8.0_161-b14
):OS version (
Linux 3.10.0-327.10.1.el7.x86_64
):Description of the problem including expected versus actual behavior:
Got
sql_illegal_argument_exception
when getting data from elastic search using _xpack/sql.uri:
http://${host}/_xpack/sql?format=json
SQL:
Error:
Steps to reproduce:
The created_at is date type and
1527982201597
is milliseconds.Provide logs (if relevant):
The text was updated successfully, but these errors were encountered: