File tree Expand file tree Collapse file tree 3 files changed +5
-6
lines changed
client-v2/src/test/java/com/clickhouse/client Expand file tree Collapse file tree 3 files changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -77,7 +77,7 @@ public void simpleProxyTest() throws Exception {
7777 System .out .println (createSQL );
7878 createTable (createSQL );
7979
80- client .register (SamplePOJO .class , SamplePOJO . generateTableSchema (tableName ));
80+ client .register (SamplePOJO .class , client . getTableSchema (tableName , "default" ));
8181 List <Object > simplePOJOs = new ArrayList <>();
8282
8383 for (int i = 0 ; i < 1000 ; i ++) {
@@ -100,7 +100,7 @@ public void simpleDisabledProxyTest() throws Exception {
100100 System .out .println (createSQL );
101101 createTable (createSQL );
102102
103- client .register (SamplePOJO .class , SamplePOJO . generateTableSchema (tableName ));
103+ client .register (SamplePOJO .class , client . getTableSchema (tableName , "default" ));
104104 List <Object > simplePOJOs = new ArrayList <>();
105105
106106 for (int i = 0 ; i < 1000 ; i ++) {
Original file line number Diff line number Diff line change @@ -59,9 +59,8 @@ public void insertSimplePOJOs() throws Exception {
5959 String createSQL = SamplePOJO .generateTableCreateSQL (tableName );
6060 System .out .println (createSQL );
6161 createTable (createSQL );
62- TableSchema schema = client .getTableSchema (tableName , "default" );
6362
64- client .register (SamplePOJO .class , schema );
63+ client .register (SamplePOJO .class , client . getTableSchema ( tableName , "default" ) );
6564 List <Object > simplePOJOs = new ArrayList <>();
6665
6766 for (int i = 0 ; i < 1 ; i ++) {
Original file line number Diff line number Diff line change @@ -146,8 +146,8 @@ public SamplePOJO() {
146146 map .put (String .valueOf ((char ) ('a' + i )), i + 1 );
147147 }
148148
149- nestedInnerInt = Collections . singletonList (random .nextInt (32768 ));
150- nestedInnerString = Collections . singletonList (RandomStringUtils .randomAlphabetic (1 , 256 ));
149+ nestedInnerInt = List . of (random .nextInt (Integer . MAX_VALUE ));
150+ nestedInnerString = List . of (RandomStringUtils .randomAlphabetic (1 , 256 ));
151151 }
152152
153153 public int getInt8 () {
You can’t perform that action at this time.
0 commit comments