Giter Club home page Giter Club logo

Comments (6)

sundy-li avatar sundy-li commented on July 18, 2024 1

yes,it's releasing...

from clickhouse-native-jdbc.

sundy-li avatar sundy-li commented on July 18, 2024

Could u please show us the code? So we can reproduce and look into this problem

from clickhouse-native-jdbc.

lingya avatar lingya commented on July 18, 2024

ok ,

create table:
CREATE TABLE all_test(
url String,
host String,
topDomain String,
ipaddr String,
country String,
province String,
area String,
ispID String,
audioVideoType UInt8,
euAccessDate Date,
euAccessTime UInt64
)
ENGINE = MergeTree(euAccessDate, (host,topDomain,audioVideoType), 8192);

java code :

Class.forName("com.github.housepower.jdbc.ClickHouseDriver");
Connection connection = DriverManager.getConnection("jdbc:clickhouse://localhost:9000","default","lyd.ai");
Statement stmt = connection.createStatement();
PreparedStatement pstmt = connection.prepareStatement("INSERT INTO all_test VALUES(?, ?, ?,?,?,?,?,?,?,?,?)");
for (int i = 0; i < 10; i++) {
pstmt.setString(1, "www.baidu.com/tt/t.q");
pstmt.setString(2, "www.baidu.com");
pstmt.setString(3, "baidu.com");
pstmt.setString(4, "127.0.0.1");
pstmt.setString(5, "**");
pstmt.setString(6, "北京");
pstmt.setString(7, "北京");
pstmt.setString(8, "电信");
pstmt.setByte(9, (byte)0);
pstmt.setDate(10, java.sql.Date.valueOf("2005-12-12"));
pstmt.setLong(11, 2018080912);
pstmt.addBatch();
}
pstmt.executeBatch();

from clickhouse-native-jdbc.

sundy-li avatar sundy-li commented on July 18, 2024

Thanks for your feedback. We mistake the Chinese String size , fixed

from clickhouse-native-jdbc.

lingya avatar lingya commented on July 18, 2024

Is it the latest in maven repository ?

from clickhouse-native-jdbc.

sundy-li avatar sundy-li commented on July 18, 2024

V1.4-stable is on the maven central.

https://mvnrepository.com/artifact/com.github.housepower/clickhouse-native-jdbc/1.4-stable

from clickhouse-native-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.