Closed jianhong2014 closed 5 years ago
e.g. date_format works normally using postman, but doesn't work in java env
Hey @jianhong2014 , could you provide more information so we can duplicate the issue? Such as your env, data and query etc.
Thanks for the update! Will look into the issue and request more information if needed.
any update? if possible,we can talk directly
Hello @jianhong2014
Thanks for the feedback. Could you clarify couple of quiestions
GET /_opendistro/_sql?format=jdbc
{
"query": """
SELECT date_format(utc_time, 'Y-MM-dd') x, count(*)
FROM kibana_sample_data_logs
WHERE host='www.elastic.co'
GROUP BY date_format(utc_time, 'Y-MM-dd')
"""
}
GET /_opendistro/_sql?format=jdbc
{
"query": """
SELECT date_format(utc_time, 'Y-MM-dd') x, count(*)
FROM kibana_sample_data_logs
WHERE host='www.elastic.co'
GROUP BY x
"""
}
e.g. date_format works normally using postman, but doesn't work in java env