Git Product home page Git Product logo

Comments (6)

qiaojialin avatar qiaojialin commented on May 16, 2024

这个应该没维护了

现在获取结果集列名的方法,JDBC 和 Session 不太一样,可以参考

https://raw.githubusercontent.com/apache/incubator-iotdb/master/example/jdbc/src/main/java/org/apache/iotdb/JDBCExample.java

https://github.com/apache/incubator-iotdb/blob/master/example/session/src/main/java/org/apache/iotdb/SessionExample.java

推荐使用 Session 的

from iotdb.

liubofeng avatar liubofeng commented on May 16, 2024

收到,感谢您的回复,我现在的需求是要提前获取列的类型,然后再插入数据的时候用preparedStatement指定类型,请问有这块的指导资料吗?

from iotdb.

jixuan1989 avatar jixuan1989 commented on May 16, 2024

Not maintained?? don't we have UT to cover it?

我们这个接口没有再维护了?JDBC的接口还是应该维护吧。。

这个应该没维护了

现在获取结果集列名的方法,JDBC 和 Session 不太一样,可以参考

https://raw.githubusercontent.com/apache/incubator-iotdb/master/example/jdbc/src/main/java/org/apache/iotdb/JDBCExample.java

https://github.com/apache/incubator-iotdb/blob/master/example/session/src/main/java/org/apache/iotdb/SessionExample.java

推荐使用 Session 的

我现在的需求是要提前获取列的类型,然后再插入数据的时候用preparedStatement指定类型,请问有这块的指导资料吗?

看下这个文档的show timeseries语法:

https://iotdb.apache.org/UserGuide/Master/Operation%20Manual/SQL%20Reference.html

此外session有个API是fetchMetadata 应该也可以。

from iotdb.

qiaojialin avatar qiaojialin commented on May 16, 2024

preparedStatement 最近没维护,不确定能不能正常工作。。如果每次写入都要查一下元数据会比较慢,可以用 Session 的 insertRecords 接口。String values 这个接口会在服务器端自动推断类型,只要提前注册好序列就可以了。

如果想写入的时候指定类型,可以查出来类型在客户端缓存,这个查询可以用 show timeseries

from iotdb.

liubofeng avatar liubofeng commented on May 16, 2024

收到, @jixuan1989 @qiaojialin 感谢回复!感觉咱们现在主要维护session这块了,我看一下,能提供一下交流群吗,这样方便交流

from iotdb.

qiaojialin avatar qiaojialin commented on May 16, 2024

Not maintained?? don't we have UT to cover it?

我们这个接口没有再维护了?JDBC的接口还是应该维护吧。。

ResultSetMetaData metaData = resultSet.getMetaData();
metaData.getColumnLabel();
这个是有的,那个 catalog 什么的没了

from iotdb.

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.