Array of string was not implemented?
See original GitHub issueWe migrated to the new driver and we’re getting java.lang.IllegalArgumentException: Only singleton array is allowed
. I checked the repo and see that Array of numbers was implemented but not array of other stuff. Am I right? Is there a way to overcome this error?
Issue Analytics
- State:
- Created 2 years ago
- Comments:9
Top Results From Across the Web
How do I implement an array of strings? - Stack Overflow
Firstly. You must ALLOT permanent storage to the strings. In ciforth (my Forth) there is the word $, that does this in the...
Read more >Why is the string type not implemented as standard type?
Storing multiple strings as a 2-D char array is lousy, because a list of N strings is not an N-element long array; it's...
Read more >Java String Array- Tutorial With Code Examples
This tutorial on Java String Array explains how to declare, initialize & create String Arrays in Java and conversions that we can carry...
Read more >UnimplementedFeatureError: Nested dynamic arrays not ...
1 Answer 1 ... You can't return a dynamic array of dynamic arrays from a Solidity function. From the Solidity docs: Is it...
Read more >Array.BinarySearch Method (System) - Microsoft Learn
value does not implement the IComparable interface, and the search ... IComparable · Sort · Performing Culture-Insensitive String Operations in Arrays ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Unlike array of primitives, array of String is simply treated as Object. That’s why there’s no update(String[]) method in ClickHouseValue class and it’s not handled specifically in update(Object).
I see. I assume that you’re using
PreparedStatement
for batch insert.If that’s the case, could you please use input function as shown in examples? To be more specific, instead of
insert into mytable values(?,?,?)
, useinsert into mytable select col1, col2, col3 from input('col1 String, col2 DateTime64(3), col3 Array(String)')
, orinsert into mytable
for convenience. The differences are:insert into table values(...)(...)...
and send it to serverMeanwhile, since there’ll be another patch release this weekend. I’ll see if I can enhance the driver accordingly.
Thanks @zhicwu!