GithubHelp home page GithubHelp logo

Comments (7)

dai-chen avatar dai-chen commented on August 27, 2024

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.

from sql-jdbc.

jianhong2014 avatar jianhong2014 commented on August 27, 2024

image

from sql-jdbc.

jianhong2014 avatar jianhong2014 commented on August 27, 2024

image

from sql-jdbc.

jianhong2014 avatar jianhong2014 commented on August 27, 2024

image

from sql-jdbc.

dai-chen avatar dai-chen commented on August 27, 2024

Thanks for the update! Will look into the issue and request more information if needed.

from sql-jdbc.

jianhong2014 avatar jianhong2014 commented on August 27, 2024

any update? if possible,we can talk directly

from sql-jdbc.

galkk avatar galkk commented on August 27, 2024

Hello @jianhong2014

Thanks for the feedback. Could you clarify couple of quiestions

  1. Which version of the driver you are using?
  2. Could you show the ouput of your query from Kibana, using this as an example
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
  """
}

from sql-jdbc.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.