fix style check

This commit is contained in:
Anton Popov 2022-09-08 15:47:43 +00:00
parent ba41239ecd
commit bbb7974dfb
4 changed files with 5 additions and 3 deletions

View File

@ -939,6 +939,7 @@ size_t FieldVisitorToNumberOfDimensions::operator()(const Array & x)
{
const size_t size = x.size();
size_t dimensions = 0;
for (size_t i = 0; i < size; ++i)
{
size_t element_dimensions = applyVisitor(*this, x[i]);

View File

@ -39,7 +39,7 @@ Array createEmptyArrayField(size_t num_dimensions);
DataTypePtr getDataTypeByColumn(const IColumn & column);
/// Converts Object types and columns to Tuples in @columns_list and @block
/// and checks that types are consistent with types in @extended_storage_columns.
/// and checks that types are consistent with types in @storage_snapshot.
void convertDynamicColumnsToTuples(Block & block, const StorageSnapshotPtr & storage_snapshot);
/// Checks that each path is not the prefix of any other path.

View File

@ -29,6 +29,7 @@ namespace ErrorCodes
extern const int INCORRECT_DATA;
extern const int CANNOT_READ_ALL_DATA;
extern const int ARGUMENT_OUT_OF_BOUND;
extern const int LOGICAL_ERROR;
}
template <typename Parser>

View File

@ -8,8 +8,8 @@
Array(Tuple(k1 Int8, k2 Tuple(k3 Int8, k4 Int8, k5 String)))
{"id":1,"arr":[{"k1":[{"k2":"aaa","k3":"bbb","k4":0},{"k2":"ccc","k3":"","k4":0}],"k5":{"k6":""}}]}
{"id":2,"arr":[{"k1":[{"k2":"","k3":"ddd","k4":10},{"k2":"","k3":"","k4":20}],"k5":{"k6":"foo"}}]}
1 [['aaa','ccc']] [['bbb','']] [[]] ['']
2 [[]] [['ddd','']] [[10,20]] ['foo']
1 [['aaa','ccc']] [['bbb','']] [[0,0]] ['']
2 [['','']] [['ddd','']] [[10,20]] ['foo']
{"k1":{"k2":"","k3":"","k4":20}}
{"k1":{"k2":"","k3":"ddd","k4":10}}
{"k1":{"k2":"aaa","k3":"bbb","k4":0}}