Mikhail Nelaev
Mikhail Nelaev
Looks like issue is still here. https://github.com/PNixx/clickhouse-activerecord/blob/c91066a817782c430a7909b9af043dcfb206b647/lib/active_record/connection_adapters/clickhouse/oid/array.rb#L46 Maybe serialization should look something like `"[" + value.map { |item| serialize(item) }.join(", ") + "]"` Otherwise, [here in Rails](https://github.com/rails/rails/blob/36c1591bcb5e0ee3084759c7f42a706fe5bb7ca7/activerecord/lib/active_record/connection_adapters/abstract/database_statements.rb#L489-L495) array is still...
Table: ``` execute if(isNull(_dummy_0), defaultValueOfTypeName('Array(Int32)'), _CAST(_dummy_0, 'Array(Int32)')) Array(Int32) : 1': While executing ValuesBlockInputFormat. (CANNOT_READ_ARRAY_FROM_TEXT) (version 22.1.3.7 (official build)) ```
Tried 0.6.2, same behavior with fallback to YAML serialization: ```ruby irb(main):001:0> Test.insert_all([{id: 1, array_of_ints: [1, 2]}]) Clickhouse test (system) (3.4ms) DESCRIBE TABLE `test` Clickhouse Test Insert (5.6ms) INSERT INTO test...