Closed epical-mi closed 5 years ago
Thanks for reporting this issue. We're looking into it. Also, just to confirm, could you post a sample of the date fields from kibana_sample_data_logs
?
Here is the sample of the date fields data.
{
"took" : 7,
"timed_out" : false,
"_shards" : {
"total" : 1,
"successful" : 1,
"skipped" : 0,
"failed" : 0
},
"hits" : {
"total" : 14011,
"max_score" : 1.0,
"hits" : [
{
"_index" : "kibana_sample_data_logs",
"_type" : "_doc",
"_id" : "Zm-M2GkBesMuHbN9_-HK",
"_score" : 1.0,
"_source" : {
"utc_time" : "2018-08-11T10:27:34.904Z",
"timestamp" : "2019-04-13T10:27:34.904Z"
}
},
{
"_index" : "kibana_sample_data_logs",
"_type" : "_doc",
"_id" : "Z2-M2GkBesMuHbN9_-HK",
"_score" : 1.0,
"_source" : {
"utc_time" : "2018-08-11T10:57:45.412Z",
"timestamp" : "2019-04-13T10:57:45.412Z"
}
}
]
}
}
Our own fix for this issue was this patch. Works now ok with SQuirrel and SQLWorkbenchJ
@@ -72,6 +72,7 @@ public class TimestampType implements TypeHelper<Timestamp> {
// Make some effort to understand ISO format
if (value.length() > 11 && value.charAt(10) == 'T') {
value = value.replace('T', ' ');
+ value = value.replace("Z", "");
}
if (calendar == null) {
I have a similar issue with timestamps in the following format:
2019-05-02T20:42:39.429+00:00
with a query like SELECT * FROM security-auditlog-2019.05.02
I may have a fix and will send a pull request
Trying to select date fields from ES using JDBC driver and SQuirrel returns errors to the execution logs. All the date fields are seen as
<Error>
within the result set.The select I'm trying to execute is:
select * from kibana_sample_data_logs;
SQuirrel logs: