I had performed a test using mixed array type object of ignored case. I have found that the value of the column index disappeared for index position 2.
Steps to reproduce:
CREATE TABLE t (an_array_attr OBJECT(ignored));
INSERT INTO t (an_array_attr) VALUES ( '{"value": ["wada", ["wada", false], 3]}'::object );
Here, ["wada", false] disappeared in the test result. It only shows the "wada" and 3 in the output.
So, i only want to know about this unusual behavior of crate db.
Is it a cratedb bug or cratedb not support the mixed array type?
If cratedb does not support the mixed array type than, how could the below test succeed:
INSERT INTO t (an_array_attr) VALUES ( '{"value": ["yo!", true]}'::object );
INSERT INTO t (an_array_attr) VALUES ( '{"value": [{"k": 1}, 2]}'::object );
These test cases are failed in case of dynamic insertion.
How are you checking if the values are missing. I tried to replicate this and can see, that the Admin UI has a display bug together with formatting. However, when turning formatting off, I still can see ["wada",false].
Also using other clients, I can see that the array is still available.
Hi prodata, which version you are using of CrateDB. i have tested it on CrateDB 4.1.4 and 4.5.1.
Please provide me any reference like link, document etc. on how to turn off formatting.
thank you for figuring this out so quickly. I am happy it turned out to be “only” a bug in Admin UI. Nevertheless, as many people, including you, will go to the Admin UI for their first steps using and evaluating CrateDB, we will try to come up with a bugfix as soon as possible.