From f1d864a03d2ec7ace4bf69e4067f950038999712 Mon Sep 17 00:00:00 2001 From: Yatsishin Ilya <2159081+qoega@users.noreply.github.com> Date: Thu, 27 Feb 2020 18:03:29 +0300 Subject: [PATCH] add storage test and fix string generator --- dbms/src/Storages/StorageGenerate.cpp | 77 +++--- .../TableFunctions/TableFunctionGenerate.h | 3 +- .../01072_random_table_function.reference | 238 ------------------ .../01087_storage_generate.reference | 103 ++++++++ .../0_stateless/01087_storage_generate.sql | 17 ++ .../01087_table_function_generate.reference | 238 ++++++++++++++++++ ....sql => 01087_table_function_generate.sql} | 0 7 files changed, 397 insertions(+), 279 deletions(-) delete mode 100644 dbms/tests/queries/0_stateless/01072_random_table_function.reference create mode 100644 dbms/tests/queries/0_stateless/01087_storage_generate.reference create mode 100644 dbms/tests/queries/0_stateless/01087_storage_generate.sql create mode 100644 dbms/tests/queries/0_stateless/01087_table_function_generate.reference rename dbms/tests/queries/0_stateless/{01072_random_table_function.sql => 01087_table_function_generate.sql} (100%) diff --git a/dbms/src/Storages/StorageGenerate.cpp b/dbms/src/Storages/StorageGenerate.cpp index 781f5f36276..1b72255bc9f 100644 --- a/dbms/src/Storages/StorageGenerate.cpp +++ b/dbms/src/Storages/StorageGenerate.cpp @@ -81,10 +81,10 @@ void fillColumnWithRandomData(IColumn & column, DataTypePtr type, UInt64 limit, { auto & data = typeid_cast &>(column).getData(); data.resize(limit); - pcg32 generator(random_seed); + pcg64_fast generator(random_seed); for (UInt64 i = 0; i < limit; ++i) { - UInt64 a = static_cast(generator()) << 32 | static_cast(generator()); + UInt64 a = static_cast(generator()); data[i] = static_cast(a); } break; @@ -128,10 +128,10 @@ void fillColumnWithRandomData(IColumn & column, DataTypePtr type, UInt64 limit, { auto & data = typeid_cast &>(column).getData(); data.resize(limit); - pcg32 generator(random_seed); + pcg64_fast generator(random_seed); for (UInt64 i = 0; i < limit; ++i) { - Int64 a = static_cast(generator()) << 32 | static_cast(generator()); + Int64 a = static_cast(generator()); data[i] = static_cast(a); } break; @@ -155,12 +155,12 @@ void fillColumnWithRandomData(IColumn & column, DataTypePtr type, UInt64 limit, { auto & data = typeid_cast &>(column).getData(); data.resize(limit); - pcg32 generator(random_seed); + pcg64_fast generator(random_seed); double d = 1.0; for (UInt64 i = 0; i < limit; ++i) { d = std::numeric_limits::max(); - data[i] = (d / pcg32::max()) * generator(); + data[i] = (d / pcg64::max()) * generator(); } break; } @@ -218,17 +218,29 @@ void fillColumnWithRandomData(IColumn & column, DataTypePtr type, UInt64 limit, for (UInt64 i = 0; i < limit; ++i) { offset += 1 + static_cast(generator()) % max_string_length; - offsets[i] = offset - 1; + offsets[i] = offset; } chars.resize(offset); for (UInt64 i = 0; i < offset; ++i) { - chars[i] = 32 + generator() % 95; + if (offset - i > 5 ) { + UInt32 r = generator(); + chars[i] = 32 + (r & 0x7F) % 95; + chars[i+1] = 32 + ((r >> 7) & 0x7F) % 95; + chars[i+2] = 32 + ((r >> 14) & 0x7F) % 95; + chars[i+3] = 32 + ((r >> 21) & 0x7F) % 95; + chars[i+4] = 32 + (r >> 28); + i+=4; + } + else { + UInt32 r = generator(); + chars[i] = 32 + (r % 95); + } } // add terminating zero char for (auto & i : offsets) { - chars[i] = 0; + chars[i-1] = 0; } } break; @@ -297,7 +309,7 @@ void fillColumnWithRandomData(IColumn & column, DataTypePtr type, UInt64 limit, { auto & data = typeid_cast &>(column).getData(); data.resize(limit); - pcg32 generator(random_seed); + pcg64_fast generator(random_seed); for (UInt64 i = 0; i < limit; ++i) { UInt64 a = static_cast(generator()) << 32 | static_cast(generator()); @@ -309,11 +321,10 @@ void fillColumnWithRandomData(IColumn & column, DataTypePtr type, UInt64 limit, { auto & data = typeid_cast &>(column).getData(); data.resize(limit); - pcg32 generator(random_seed); + pcg64_fast generator(random_seed); for (UInt64 i = 0; i < limit; ++i) { - Int128 x = static_cast(generator()) << 96 | static_cast(generator()) << 32 | - static_cast(generator()) << 64 | static_cast(generator()); + Int128 x = static_cast(generator()) << 64 | static_cast(generator()); data[i] = x; } } @@ -322,11 +333,11 @@ void fillColumnWithRandomData(IColumn & column, DataTypePtr type, UInt64 limit, { auto & data = typeid_cast &>(column).getData(); data.resize(limit); - pcg32 generator(random_seed); + pcg64_fast generator(random_seed); for (UInt64 i = 0; i < limit; ++i) { - UInt64 a = static_cast(generator()) << 32 | static_cast(generator()); - UInt64 b = static_cast(generator()) << 32 | static_cast(generator()); + UInt64 a = static_cast(generator()); + UInt64 b = static_cast(generator()); auto x = UInt128(a, b); data[i] = x; } @@ -397,8 +408,9 @@ void fillColumnWithRandomData(IColumn & column, DataTypePtr type, UInt64 limit, StorageGenerate::StorageGenerate(const StorageID & table_id_, const ColumnsDescription & columns_, UInt64 max_array_length_, UInt64 max_string_length_, UInt64 random_seed_) - : IStorage(table_id_), max_array_length(max_array_length_), max_string_length(max_string_length_), random_seed(random_seed_) + : IStorage(table_id_), max_array_length(max_array_length_), max_string_length(max_string_length_) { + random_seed = random_seed_ ? random_seed_ : randomSeed(); setColumns(columns_); } @@ -409,37 +421,24 @@ void registerStorageGenerate(StorageFactory & factory) { ASTs & engine_args = args.engine_args; - if (engine_args.size() < 1) - throw Exception("Storage Generate requires at least one argument: "\ - " structure(, max_array_length, max_string_length, random_seed).", + if (engine_args.size() > 3) + throw Exception("Storage Generate requires at most three arguments: "\ + "max_array_length, max_string_length, random_seed.", ErrorCodes::NUMBER_OF_ARGUMENTS_DOESNT_MATCH); - if (engine_args.size() > 5) - throw Exception("Storage Generate requires at most five arguments: "\ - " structure, max_array_length, max_string_length, random_seed.", - ErrorCodes::NUMBER_OF_ARGUMENTS_DOESNT_MATCH); - - /// Parsing first argument as table structure and creating a sample block - std::string structure = engine_args[0]->as().value.safeGet(); - UInt64 max_array_length_ = 10; UInt64 max_string_length_ = 10; UInt64 random_seed_ = 0; // zero for random /// Parsing second argument if present + if (engine_args.size() >= 1) + max_array_length_ = engine_args[0]->as().value.safeGet(); + if (engine_args.size() >= 2) - max_array_length_ = engine_args[1]->as().value.safeGet(); - - if (engine_args.size() >= 3) - max_string_length_ = engine_args[2]->as().value.safeGet(); - - if (engine_args.size() == 4) - random_seed_ = engine_args[3]->as().value.safeGet(); - - /// do not use predefined seed - if (!random_seed_) - random_seed_ = randomSeed(); + max_string_length_ = engine_args[1]->as().value.safeGet(); + if (engine_args.size() == 3) + random_seed_ = engine_args[2]->as().value.safeGet(); return StorageGenerate::create(args.table_id, args.columns, max_array_length_, max_string_length_, random_seed_); }); diff --git a/dbms/src/TableFunctions/TableFunctionGenerate.h b/dbms/src/TableFunctions/TableFunctionGenerate.h index 0b228fc0e5e..0002acd54b1 100644 --- a/dbms/src/TableFunctions/TableFunctionGenerate.h +++ b/dbms/src/TableFunctions/TableFunctionGenerate.h @@ -4,8 +4,7 @@ namespace DB { -/* random(structure, limit) - creates a temporary storage filling columns with random data - * random is case-insensitive table function +/* random(structure(, max_array_length, max_string_length, random_seed)) - creates a temporary storage that generates columns with random data */ class TableFunctionGenerate : public ITableFunction { diff --git a/dbms/tests/queries/0_stateless/01072_random_table_function.reference b/dbms/tests/queries/0_stateless/01072_random_table_function.reference deleted file mode 100644 index c0ca8469114..00000000000 --- a/dbms/tests/queries/0_stateless/01072_random_table_function.reference +++ /dev/null @@ -1,238 +0,0 @@ -UInt64 Int64 UInt32 Int32 UInt16 Int16 UInt8 Int8 -6067806098226807350 6067806098226807350 1412771199 1412771199 11647 11647 127 127 -533919876299229763 533919876299229763 1791099446 1791099446 566 566 54 54 -4640348442306208352 4640348442306208352 124312908 124312908 56652 -8884 76 76 -9035287264038165814 9035287264038165814 1968572995 1968572995 2627 2627 67 67 -3335561882147042384 3335561882147042384 1080415314 1080415314 54354 -11182 82 82 -1967107582972097042 1967107582972097042 2578637408 -1716329888 57952 -7584 96 96 -12006909317836685474 -6439834755872866142 2103691749 2103691749 51685 -13851 229 -27 -1211441240496071423 1211441240496071423 1218125110 1218125110 7478 7478 54 54 -11787857998754938359 -6658886074954613257 776621019 776621019 19419 19419 219 -37 -13395460454860618677 -5051283618848932939 4155847760 -139119536 13392 13392 80 80 -- -Enum8(\'hello\' = 1, \'world\' = 5) -world -hello -hello -world -hello -hello -world -hello -world -hello -- -Array(Nullable(Enum8(\'hello\' = 1, \'world\' = 5))) -['world','hello','hello','world','hello','hello','world','hello','world'] -['hello','hello','hello','hello','hello','world'] -['world','world','world','world','world','hello','hello','world'] -['hello','hello','world','hello','hello'] -['hello','world','world','world'] -['world','world','world','hello','hello','hello','world','hello'] -['world','world','hello','hello','hello','world','hello','hello','hello'] -[] -['hello','hello','hello','hello','world','hello','world','world','hello'] -[] -- -Nullable(Enum16(\'o\' = -200, \'h\' = 1, \'w\' = 5)) -h -w -o -w -o -h -h -w -o -o -- -Date DateTime DateTime(\'Europe/Moscow\') -2001-11-21 2014-10-08 16:26:39 2014-10-08 16:26:39 -1971-07-21 2026-10-04 10:37:26 2026-10-04 10:37:26 -2106-02-07 1973-12-09 22:21:48 1973-12-09 22:21:48 -1977-03-12 2032-05-19 12:49:55 2032-05-19 12:49:55 -2106-02-07 2004-03-27 22:21:54 2004-03-27 22:21:54 -2106-02-07 2051-09-18 11:10:08 2051-09-18 11:10:08 -2106-02-07 2036-08-30 09:49:09 2036-08-30 09:49:09 -1990-06-23 2008-08-07 20:05:10 2008-08-07 20:05:10 -2023-03-03 1994-08-11 20:03:39 1994-08-11 20:03:39 -2006-09-01 2101-09-11 05:09:20 2101-09-11 05:09:20 -- -DateTime64(3) DateTime64(6) DateTime64(6, \'Europe/Moscow\') -2026-10-04 10:37:26.199 2026-10-04 10:37:26.771199 2026-10-04 10:37:26.771199 -2032-05-19 12:49:55.908 2032-05-19 12:49:55.312908 2032-05-19 12:49:55.312908 -2051-09-18 11:10:08.314 2051-09-18 11:10:08.415314 2051-09-18 11:10:08.415314 -2008-08-07 20:05:10.749 2008-08-07 20:05:10.691749 2008-08-07 20:05:10.691749 -2101-09-11 05:09:20.019 2101-09-11 05:09:20.621019 2101-09-11 05:09:20.621019 -2062-07-10 05:18:58.924 2062-07-10 05:18:58.002924 2062-07-10 05:18:58.002924 -2074-03-12 07:52:50.424 2074-03-12 07:52:50.576424 2074-03-12 07:52:50.576424 -2075-04-13 03:14:55.643 2075-04-13 03:14:55.060643 2075-04-13 03:14:55.060643 -1990-06-27 22:41:59.565 1990-06-27 22:41:59.574565 1990-06-27 22:41:59.574565 -2071-06-01 23:38:13.679 2071-06-01 23:38:13.873679 2071-06-01 23:38:13.873679 -- -Float32 Float64 -1.1193126e38 5.913267578382113e307 -1.4190551e38 7.49679091079062e307 -9.849083e36 5.2032168334909443e306 -1.5596642e38 8.239620736359643e307 -8.559931e37 4.522165267798421e307 -2.043007e38 1.0793094445811738e308 -1.6667162e38 8.805171157988522e307 -9.650981e37 5.098560704291471e307 -6.1530254e37 3.25060979130477e307 -3.2926016e38 1.7394635336064728e308 -- -Decimal32(4) Decimal64(8) Decimal64(8) -141277.1199 60678060982.26807350 11193126615213725123159.9175630570523203 -179109.9446 5339198762.99229763 8559932011929819709498.3386368958995766 -12431.2908 46403484423.06208352 6153025631377423463914.5986917361218066 -196857.2995 90352872640.38165814 -11879398367401741707407.7196878679186689 -108041.5314 33355618821.47042384 -12283476719506904826004.1868293152015435 --171632.9888 19671075829.72097042 15831040503634978760989.7361741136110978 -210369.1749 -64398347558.72866142 9875885121509458147096.4410492055471380 -121812.5110 12114412404.96071423 600964137921042469886.3230431219622973 -77662.1019 -66588860749.54613257 -5499852289308439053567.7017000383452336 --13911.9536 -50512836188.48932939 -1027137932784200042018.0642287160896946 -- -Tuple(Int32, Int64) -(1412771199,6067806098226807350) -(1791099446,533919876299229763) -(124312908,4640348442306208352) -(1968572995,9035287264038165814) -(1080415314,3335561882147042384) -(-1716329888,1967107582972097042) -(2103691749,-6439834755872866142) -(1218125110,1211441240496071423) -(776621019,-6658886074954613257) -(-139119536,-5051283618848932939) -- -Array(Int8) -[127,54,76,67,82,96,-27,54,-37] -[80,-20,18,104,-94,99] -[-1,101,-9,79,-75,-106,-124,25] -[-126,76,-7,-28,20] -[50,109,25,61] -[119,75,-17,80,-26,-86,-1,78] -[87,87,-98,-52,-10,-55,90,-116,-110] -[] -[-8,30,126,-82,-83,-112,109,-37,46] -[] -- -Array(Nullable(Int32)) -[1412771199,1791099446,124312908,1968572995,1080415314,-1716329888,2103691749,1218125110,776621019] -[-139119536,458002924,-1375243758,-1499390872,-1006911326,282060643] -[-972627201,-1550392731,646512119,-1176093617,-1094550603,1998158230,-1491853180,-1004684263] -[-1087003262,1246511948,-287482375,1245659620,-447199980] -[75852338,-10461331,924798233,-707845059] -[-694178953,-1402336437,497728751,1937926992,-129643034,982571178,2100766207,-1068740018] -[473070167,-1859986345,611197598,-1197393460,640993526,1545236681,654453082,1474541196,293114258] -[] -[-894672648,-272503522,-1437033090,-1467734354,-1327634003,176306576,1752494957,-228452133,1262726958] -[] -- -Tuple(Int32, Array(Int64)) -(1412771199,[6067806098226807350,533919876299229763,4640348442306208352,9035287264038165814,3335561882147042384,1967107582972097042,-6439834755872866142,1211441240496071423,-6658886074954613257]) -(1791099446,[-5051283618848932939,8582024252886360196,-4315086049182898814,5353728054740737529,5350067333695554836,325783315319644013]) -(124312908,[3971978169720710205,-2981475897813890229,2137728709761854288,-556812590201644886,9022722158833193550,2031820898413239383,2625073697901328844,2753046232662962377]) -(1968572995,[2810854585430947468,1258916155501601016,-1170393712176882306,-6303871046678353491,757230979742233453]) -(1080415314,[-981194438673715410,-5187418663246381396,-4552736212124933548,-595622618346691759]) -(-1716329888,[-5756535245380317560,-3316827179903536443,1131631900550093840,-976331946980643879,-5646085236330506185,2420896254251217582,826917553648174074,-3966953861420592496]) -(2103691749,[-5286631142891306752,-7301789732104984637,1910103380304709263,-5245849785367812780,-1186131377522014764,6186892281648022452,-4757957517150938497,681345985121370407,8244427342487150660]) -(1218125110,[]) -(776621019,[-7434954659106758677,3335701458961542184,-5391405201124517858,-1030158175555181024,-4227500256565221046,-2681544507147310992,-5063942269050242472,-4220143753454148778,-4074029704161347282]) -(-139119536,[]) -- -Nullable(String) -G}8MF We -\0RD7LF -\0q_k7J2t -\0TPO- -\0xD: -\0:77y{h< -\0idoXZ4#[ - -\0>i, mD s - -- -Array(String) -['oXZ4#[)w','\0i, mD','\0){A\\H$%','\0e3}K','\0"f3','\0}QNhc1\'','\0$Zk>cmnX','','\0JZ+O|fh\\'] -['','\0au#','\0P?>\\P5o','\0>T:','','\07d','\0','','\0Fl0FG'] -['\0=CKI?m0','\0wk\\:','\0f6','\0XSz~LH'] -['\0;<','\0Mj7D(lyv','\0','\0[','\0p','\0UZisIY(','\0{&^jL3','\0*8#pXRA'] -['\0Hdz-II','\0','\0SHd6k\'W','\0qco~]','\0Uc5=H','\0','\0Q','\0O91 3','\0>OeC./z'] -[] -['\0,xV{H.R','\0~~m','\0WKKk4','\06','\0bt','\04i, mD s - -- -[127] 141277.1199 ('2026-10-04 10:37:26.199','54352d7f-6ac2-0236-0768-dd4c75560a43') -[] 179109.9446 ('2032-05-19 12:49:55.908','4065d452-99b2-e260-7d63-c9e5489b1d36') -[] 12431.2908 ('2051-09-18 11:10:08.314','2e4a4bdb-f7b5-3450-1b4c-91ecae077212') -[54] 196857.2995 ('2008-08-07 20:05:10.749','a6a11c68-c3fb-c0a2-10cf-e763c606e2ff') -[] 108041.5314 ('2101-09-11 05:09:20.019','a396e265-2688-fdf7-b9e6-3c4fbec27bb5') -[] -171632.9888 ('2062-07-10 05:18:58.924','77197996-a714-2084-c41d-bc19bf35a582') -[76] 210369.1749 ('2074-03-12 07:52:50.424','4a4c434c-eedd-5df9-4a3f-41e4e5584514') -[] 121812.5110 ('2075-04-13 03:14:55.643','04856a32-ff60-5f6d-371f-4d19d5cf243d') -[67] 77662.1019 ('1990-06-27 22:41:59.565','d69fab77-ac6a-0b4b-1daa-bcef73826b50') -[] -13911.9536 ('2071-06-01 23:38:13.679','f845cde6-3a90-d8aa-7d37-25ffc04c524e') -- -[-59] 1234817989 )/V 123481.7989 o 5.168430093085938e307 ('2106-02-07','2009-02-16 23:59:49','2007-02-20 10:43:46.989','4999d3c5-45da-a6b2-1065-b3e73d9ccab8') Ų -[-78] 1171957426 \0 117195.7426 w 4.905322146512668e307 ('2086-11-02','2007-02-20 10:43:46','2002-10-04 02:54:48.647','0ac83dd8-0814-70ac-2abb-3e5f3c551e16') ç¸ -[-25,-72] 275100647 \09 27510.0647 w 1.151455903014231e307 ('2096-02-04','1978-09-20 03:50:47','1974-04-19 01:48:12.192','82477b26-9dc9-7152-130b-59411e993423') ج -[] 1033685688 \0ih 103368.5688 w 4.326574656543525e307 ('2106-02-07','2002-10-04 02:54:48','2002-01-28 12:47:02.271','8ac94f92-d11e-acc7-100b-19bb11077748') _ -[-40] 180895192 \0B 18089.5192 h 7.571513877802428e306 ('2013-05-07','1975-09-25 19:39:52','2053-11-20 07:10:58.662','73ddaf77-aff2-ffb2-57de-3fc6327b320d') &R -[] 135557292 \0J 13555.7292 w 5.673859577292225e306 ('2048-12-21','1974-04-19 01:48:12','1986-04-08 19:07:15.849','3c121527-9cce-c3b9-0ba0-3c51161d4a6b') A# -[-84,95] 716914271 \0 71691.4271 h 3.000702391289156e307 ('2013-09-19','1992-09-19 18:51:11','2081-03-06 04:00:55.914','2bc298f5-774d-dbc1-93fa-89c545e60e45') ’Ç -[22,38] 1012211222 \0d 101221.1222 h 4.236691550453344e307 ('1991-02-02','2002-01-28 12:47:02','1979-01-20 20:39:20.939','d48d80b0-2e2f-7e86-e46d-8a57a55cf8b4') »H -[82,65] 2185722662 \0m -210924.4634 w 9.148518147657713e307 ('2056-04-25','2039-04-06 20:11:02','2063-07-18 01:46:10.215','d9eb0e16-766c-a7ac-1693-a3d3ac9aa0d8') w² -[35] 2647224658 \0]$ -164774.2638 o 1.108017190180919e308 ('2049-06-05','2053-11-20 07:10:58','1996-11-02 14:35:41.110','c7253454-2bbb-be98-fe97-15aa162839dc') Æ\r -- diff --git a/dbms/tests/queries/0_stateless/01087_storage_generate.reference b/dbms/tests/queries/0_stateless/01087_storage_generate.reference new file mode 100644 index 00000000000..1038fb2baec --- /dev/null +++ b/dbms/tests/queries/0_stateless/01087_storage_generate.reference @@ -0,0 +1,103 @@ +65536 +- +[-59] 123481.7989 ('2007-02-20 10:43:46.989','4024497c-b1f5-5b35-44e7-4cf478103f02') +[-78] 117195.7426 ('2002-10-04 02:54:48.647','a4739e76-3fbd-b537-34b8-c2b4c272296f') +[-25,-72] 27510.0647 ('1974-04-19 01:48:12.192','1e8f333f-d6c7-cd48-7a23-dd0a93d8418f') +[] 103368.5688 ('2002-01-28 12:47:02.271','f8cf0cb7-8a30-acab-b618-22f5db288237') +[-40] 18089.5192 ('2053-11-20 07:10:58.662','fe7c4fab-b30e-0db2-fb21-64a726f71730') +[] 13555.7292 ('1986-04-08 19:07:15.849','dd091972-50eb-59db-242f-0c7311995279') +[-84,95] 71691.4271 ('2081-03-06 04:00:55.914','c87feb6e-decf-2422-14d3-3312e8eef7b3') +[22,38] 101221.1222 ('1979-01-20 20:39:20.939','da4f0e49-9267-2228-10d9-dcd46ccff515') +[82,65] -210924.4634 ('2063-07-18 01:46:10.215','400d5020-f53c-224d-0e25-215f73801b7e') +[35] -164774.2638 ('1996-11-02 14:35:41.110','8a9107d8-e5ce-78a0-fa35-9dc406168d47') +[-110] 31951.0849 ('2053-05-14 03:43:37.023','2555c8e2-d792-ae98-10bd-fe81c5e641cc') +[] 51335.6835 ('1981-10-04 07:39:07.577','8f493375-6f27-a1fd-b842-4acd2a947bd2') +[] -196651.8382 ('2033-06-05 16:33:53.429','88b7da3c-3764-d8e1-899d-309d5ad39592') +[-57] -78651.8841 ('2007-03-01 02:20:37.021','86d48a21-34e6-a5e1-90d4-82d31ac7241c') +[-69,72] 26916.2939 ('1994-07-22 12:08:38.312','fd121990-fe32-068d-8db5-54d21f0a57de') +[119,-78] 28570.1960 ('2057-11-30 11:13:40.087','613f329c-8a56-3c7e-1204-896646a3e2dd') +[] 194390.8215 ('2032-12-16 20:51:40.438','0ddc325a-2efd-2077-c088-2022848fb2d1') +[-58] -134302.9326 ('2061-10-06 12:01:12.483','8562e417-91f0-0001-9b06-ad439901f8b3') +[] 147418.3110 ('1993-04-02 08:18:32.212','3cbe5bb9-b32b-4bbe-8d62-134814725e48') +[13,39] 84693.4541 ('1981-10-12 14:43:24.346','dbfd2279-6cb4-c759-12d9-087f286a9c4d') +[] 100781.8023 ('1974-09-17 01:22:36.779','df51bec4-2bce-6677-dea6-5b6475de0ba5') +[-71] -166417.1079 ('2073-02-07 14:31:17.292','6a41ce1b-e8dd-72cb-fba0-181c08589288') +[] 19505.0577 ('1986-07-21 04:27:39.201','9b96ad62-efcf-9072-f13b-d52a37f1a3ab') +[81] 37101.8347 ('1977-10-29 19:01:33.177','a0233bd5-395e-83b3-5110-09f07aa65dbe') +[107] 73417.3429 ('2020-01-24 07:07:28.482','1b2c847d-9d2a-9f27-bc34-83cb7f72865b') +[-11,-63] 200159.1233 ('2020-01-30 04:35:18.644','ef21c730-5836-e387-f7f1-40f10d68ca57') +[-59,69] -181229.7275 ('2064-06-03 23:24:18.831','9ddbdfb5-ee6f-de37-dfd5-2eb2abc28aa3') +[-80] 117270.4837 ('2025-07-05 23:52:10.553','14ad622b-6ac9-d754-dbbb-4175b36e7c89') +[] -72892.3984 ('2004-12-18 09:50:49.468','05e59bb3-0e6d-d0ef-9ab7-b9317d2f2766') +[-122,87] 77486.4518 ('2028-11-09 07:52:54.371','7e8dd973-c940-2376-73aa-e49d91515247') +[-76] -46258.3209 ('2004-11-06 16:14:05.356','37535aa6-da8a-4061-0a54-841921e5c738') +[22] -152063.3676 ('2056-01-04 23:10:33.111','aa562a59-a034-09a8-6e5a-645bae68fc48') +[-84,-45] -63890.6858 ('2105-08-23 19:09:37.313','5bd71372-4206-ec00-3437-e4fb80e102fc') +[-40] 198683.2300 ('2103-03-12 03:53:10.401','e5022161-1839-1090-2ab1-b838c6ffab4f') +[] 37877.4483 ('2082-06-07 23:24:18.812','c85042c0-39f7-11f1-818c-1e23b5e00c2e') +[] -139915.2424 ('2024-02-04 00:07:50.053','f9cb5e7b-e089-fdd2-657e-086d358724be') +[] -95386.3084 ('1981-01-11 00:05:50.229','54ec5688-abd1-90e1-858f-a8a438f0d849') +[84,-104] 73372.4312 ('2076-08-06 12:43:39.780','20b4adfb-1be0-fd03-72ae-b99f240a8966') +[-86,-36] -2365.2950 ('2001-09-19 08:39:23.076','573ee213-d5c4-a84a-dfe3-ada8f7da77a2') +[] 37173.5004 ('2078-03-06 07:00:01.036','c0ef8e39-8c05-7d05-57a1-8619d16ed0a5') +[] 46211.8779 ('1976-07-28 03:24:19.781','4f7a49fa-f019-1cd4-2d52-21498c4b045b') +[] 14860.2156 ('1991-04-27 19:46:05.572','84f42bdf-87a2-0d6d-a9f3-b7b4c1b580e2') +[123] -105538.4004 ('1997-11-23 06:16:09.365','fa7cfe86-97d2-fe17-7f15-92bc9e23152a') +[44,60] -104127.4619 ('2079-08-19 02:49:25.286','942117e0-eb15-8f8b-f99a-bca4a0287384') +[5] 24776.2201 ('2075-06-16 22:44:08.959','f521453f-bf21-e08a-6342-24b51fb90c57') +[] 52228.9659 ('2103-08-12 09:20:19.320','278ec6db-d590-8174-c652-55a3095d6944') +[] 82221.0177 ('2040-04-25 21:25:27.868','f5cd7060-2008-b90d-091b-541c0c78222b') +[] 24698.8893 ('1982-08-27 15:16:17.588','ee758de3-6f8b-8292-4749-7b94ae95e935') +[] -149720.1814 ('2068-04-30 18:40:02.978','980caaa3-0c07-4ba5-6e59-d8d9bf743a00') +[25] 157983.8848 ('2044-07-03 11:35:24.630','0635f169-ad37-2554-cfd5-55bc16422776') +[] 15685.6644 ('1989-02-11 00:41:34.105','5bbcbd57-dcc0-bb3c-6e57-510a128a6ef1') +[] 158034.8118 ('1999-12-16 05:44:17.565','e8cdefb3-d4e5-359f-196c-b936eecbdd5a') +[] 25575.9831 ('2000-11-22 21:53:04.462','0b0679fa-c5a7-1e42-9314-201bde1d4887') +[] -131521.7038 ('2068-07-22 12:38:12.718','90503482-35b5-ceb1-8b8c-1f39ed0c0794') +[-5,-127] -129970.8743 ('2019-01-12 22:34:10.162','7638ba6e-5cb2-226b-e2d8-1ad44db1a63b') +[93] 175174.8730 ('2067-02-19 09:03:20.655','279568d0-0e13-38b7-d730-da3366ebaf72') +[] 42444.6468 ('2092-09-30 17:53:17.987','49576daf-0b31-fb3c-6199-628ed5d84004') +[106] 110335.2649 ('2069-01-25 06:39:42.982','d8e68488-f870-fa61-b52c-c0fa8be53385') +[-128] -87556.7925 ('2087-08-05 12:06:19.275','d562d3f5-1a2c-4453-f62a-8a17e841aa1c') +[] 185735.8374 ('2011-11-15 14:26:49.202','0dd6dcb7-3157-b1db-3703-17cd7af3fca3') +[68,-42] 170844.0356 ('2054-08-20 04:32:45.269','9bbe3850-5d18-26b7-b063-3bdba428e87b') +[-41,114] 109974.6845 ('2025-09-13 00:57:59.049','5a496c7e-4354-a8b2-bfd7-e3dd39ba7c75') +[-71,122] 136722.5111 ('2080-04-23 02:18:55.233','8e6a19d8-5088-89d8-4d47-98dced3729f7') +[] -158072.5063 ('2009-07-20 22:51:59.310','0b4699b4-3152-6de8-bc97-856990eba662') +[4,73] 119730.4313 ('2069-03-26 07:01:04.910','6fa07110-c24b-2205-ca3e-e95cbc6ab99a') +[-53] -1448.0319 ('2048-05-08 01:42:42.513','aed73313-3fe7-20ab-74fc-1974deb5feea') +[38,36] -81638.8895 ('1977-11-05 20:56:01.160','3cfa66a6-e302-5857-f14e-d1c95f79304e') +[29] -9186.3306 ('2050-10-28 21:34:49.604','00446ede-1f63-f29b-861b-907ef784c10d') +[] 51541.3812 ('2007-04-05 14:53:34.957','bc06c623-b8b4-c509-822d-c4ffabfb3bb1') +[] -74687.7838 ('2022-03-01 23:37:40.261','39d28440-5447-2e11-58d8-3e996d180710') +[23,-71] -128826.5243 ('2043-12-19 01:47:45.951','bc0d838d-111b-1094-87fa-390ae50f798b') +[-7,65] 170699.4470 ('2036-08-08 20:44:43.440','083e90ba-4432-8f42-a768-28c2a5193705') +[-31] 25454.4229 ('2009-01-09 14:19:10.304','1d853ca8-8103-e9e0-0156-6a0c2cf1bebf') +[-10,52] 34800.8750 ('2029-12-27 00:48:20.183','c9b0b807-0a93-9051-eadd-e6c0f8f1870a') +[114,-27] 55543.7780 ('2055-02-27 10:34:17.324','03f59f39-7653-5537-8075-8af52335f89e') +[] -93103.4677 ('1998-12-07 09:19:18.592','5a7dc701-41c4-1d1c-d606-eec028da641a') +[] 154376.9076 ('2095-09-09 15:30:44.873','7825f0a7-3941-ded3-15ff-30614e66b184') +[38,101] 100087.4363 ('2018-08-10 11:21:25.476','f7188a9c-6256-0e15-b523-05f7381aa04f') +[46] -206787.1260 ('2083-05-07 15:59:28.021','f234dc7e-b529-2fa2-395a-4500cffb908b') +[-44] -88120.2495 ('2016-01-21 05:26:08.114','54bacc39-3b31-1a61-6001-d68df0b86006') +[-53] 142694.1781 ('2101-02-19 06:19:46.823','c1768c3a-2b5d-98ad-4389-21bb557ffdef') +[-12] 20736.1459 ('1970-07-26 11:10:41.972','aa68eaa8-26ed-bdfc-9ebf-a3e838688f16') +[123] 126601.4572 ('2081-05-25 01:26:41.416','af4c25a2-5dde-fc3d-07ee-56a89deca2ca') +[-28,-63] 67277.0765 ('1996-09-26 12:48:08.251','69fb36c6-bffa-3499-1da9-d1488fe076cc') +[85,-77] 85443.0365 ('2018-10-16 22:39:35.338','b9bed16e-b0b3-1718-efab-83350513300c') +[] 88025.4969 ('2014-11-03 20:06:23.407','f66ceccc-b716-0ea6-cc08-0bcabbc32f82') +[] 41636.0286 ('2094-10-08 03:09:52.518','a97f04ea-d317-c160-979d-75077f536c92') +[108] -83533.9131 ('2080-09-15 20:01:54.317','15f62089-2425-dea7-359f-5d0c5fc76a3c') +[] 80004.7959 ('2003-05-06 13:18:36.664','c62de05e-ff2e-776d-358b-1afa4a914d8a') +[-51,-99] -96702.7448 ('2103-01-05 12:14:12.415','927c495e-b2b2-0db2-c514-0cc92ad57275') +[-7,94] 141107.4320 ('2086-04-08 19:12:41.784','f2f7aa7b-625e-e5a4-df9c-a3299732b43b') +[-123] -7862.4477 ('2037-11-17 09:32:32.517','b4d10717-04b8-89b5-ecb0-1886ad3eab71') +[] 117563.9868 ('2009-07-13 18:40:42.823','e5fbd00e-f8e5-fc29-fb38-3cfccae29cca') +[] -207597.6169 ('2054-05-27 09:25:02.389','c94806f0-079b-1b4f-08cb-5665cfd7f0ba') +[87] 37163.8588 ('2061-02-02 04:33:21.217','6a47246b-0b6d-2621-6ff4-e141c473558b') +[8,16] 39929.4977 ('2084-02-16 03:32:41.835','9fefe1e3-5cfe-9b6e-79f8-1bee729f57d9') +[] 57278.1978 ('2060-07-18 15:52:12.277','1b8aa41f-d775-655a-5ef0-0e2516ab73e0') +[35,60] -119194.1294 ('2027-11-17 12:54:40.246','8e0e1ff5-c982-27df-241b-ccb1f88b0965') +[] -24783.7666 ('2072-11-04 04:24:25.367','bcbe9529-7213-9aa2-9648-74a913f0a940') +[] -194381.9572 ('2094-02-21 01:42:11.385','2a51b55d-6f25-ad4b-398d-f27fb0241859') +- diff --git a/dbms/tests/queries/0_stateless/01087_storage_generate.sql b/dbms/tests/queries/0_stateless/01087_storage_generate.sql new file mode 100644 index 00000000000..02a0dc732f4 --- /dev/null +++ b/dbms/tests/queries/0_stateless/01087_storage_generate.sql @@ -0,0 +1,17 @@ +DROP TABLE IF EXISTS test_table; +CREATE TABLE test_table(a Array(Int8), d Decimal32(4), c Tuple(DateTime64(3), UUID)) ENGINE=Generate(); +SELECT COUNT(*) FROM test_table LIMIT 100; + +DROP TABLE IF EXISTS test_table; + +SELECT '-'; + +DROP TABLE IF EXISTS test_table_2; +CREATE TABLE test_table_2(a Array(Int8), d Decimal32(4), c Tuple(DateTime64(3), UUID)) ENGINE=Generate(3, 5, 10); + +SELECT * FROM test_table_2 LIMIT 100; + +SELECT '-'; + +DROP TABLE IF EXISTS test_table_2; + diff --git a/dbms/tests/queries/0_stateless/01087_table_function_generate.reference b/dbms/tests/queries/0_stateless/01087_table_function_generate.reference new file mode 100644 index 00000000000..4d9fe812c05 --- /dev/null +++ b/dbms/tests/queries/0_stateless/01087_table_function_generate.reference @@ -0,0 +1,238 @@ +UInt64 Int64 UInt32 Int32 UInt16 Int16 UInt8 Int8 +972365100324636832 972365100324636832 1412771199 1412771199 11647 11647 127 127 +3152476261539479119 3152476261539479119 1791099446 1791099446 566 566 54 54 +4963323010661987954 4963323010661987954 124312908 124312908 56652 -8884 76 76 +5960170508884574548 5960170508884574548 1968572995 1968572995 2627 2627 67 67 +1945837313970117551 1945837313970117551 1080415314 1080415314 54354 -11182 82 82 +5416802321970971533 5416802321970971533 2578637408 -1716329888 57952 -7584 96 96 +14123053850434978662 -4323690223274572954 2103691749 2103691749 51685 -13851 229 -27 +5897270072098692621 5897270072098692621 1218125110 1218125110 7478 7478 54 54 +14395125118590964207 -4051618955118587409 776621019 776621019 19419 19419 219 -37 +6099213765121594905 6099213765121594905 4155847760 -139119536 13392 13392 80 80 +- +Enum8(\'hello\' = 1, \'world\' = 5) +world +hello +hello +world +hello +hello +world +hello +world +hello +- +Array(Nullable(Enum8(\'hello\' = 1, \'world\' = 5))) +['world','hello','hello','world','hello','hello','world','hello','world'] +['hello','hello','hello','hello','hello','world'] +['world','world','world','world','world','hello','hello','world'] +['hello','hello','world','hello','hello'] +['hello','world','world','world'] +['world','world','world','hello','hello','hello','world','hello'] +['world','world','hello','hello','hello','world','hello','hello','hello'] +[] +['hello','hello','hello','hello','world','hello','world','world','hello'] +[] +- +Nullable(Enum16(\'o\' = -200, \'h\' = 1, \'w\' = 5)) +h +w +o +w +o +h +h +w +o +o +- +Date DateTime DateTime(\'Europe/Moscow\') +2001-11-21 2014-10-08 16:26:39 2014-10-08 16:26:39 +1971-07-21 2026-10-04 10:37:26 2026-10-04 10:37:26 +2106-02-07 1973-12-09 22:21:48 1973-12-09 22:21:48 +1977-03-12 2032-05-19 12:49:55 2032-05-19 12:49:55 +2106-02-07 2004-03-27 22:21:54 2004-03-27 22:21:54 +2106-02-07 2051-09-18 11:10:08 2051-09-18 11:10:08 +2106-02-07 2036-08-30 09:49:09 2036-08-30 09:49:09 +1990-06-23 2008-08-07 20:05:10 2008-08-07 20:05:10 +2023-03-03 1994-08-11 20:03:39 1994-08-11 20:03:39 +2006-09-01 2101-09-11 05:09:20 2101-09-11 05:09:20 +- +DateTime64(3) DateTime64(6) DateTime64(6, \'Europe/Moscow\') +2026-10-04 10:37:26.199 2026-10-04 10:37:26.771199 2026-10-04 10:37:26.771199 +2032-05-19 12:49:55.908 2032-05-19 12:49:55.312908 2032-05-19 12:49:55.312908 +2051-09-18 11:10:08.314 2051-09-18 11:10:08.415314 2051-09-18 11:10:08.415314 +2008-08-07 20:05:10.749 2008-08-07 20:05:10.691749 2008-08-07 20:05:10.691749 +2101-09-11 05:09:20.019 2101-09-11 05:09:20.621019 2101-09-11 05:09:20.621019 +2062-07-10 05:18:58.924 2062-07-10 05:18:58.002924 2062-07-10 05:18:58.002924 +2074-03-12 07:52:50.424 2074-03-12 07:52:50.576424 2074-03-12 07:52:50.576424 +2075-04-13 03:14:55.643 2075-04-13 03:14:55.060643 2075-04-13 03:14:55.060643 +1990-06-27 22:41:59.565 1990-06-27 22:41:59.574565 1990-06-27 22:41:59.574565 +2071-06-01 23:38:13.679 2071-06-01 23:38:13.873679 2071-06-01 23:38:13.873679 +- +Float32 Float64 +1.1193126e38 9.476003236390048e306 +1.4190551e38 3.072187108218657e307 +9.849083e36 4.836914127890829e307 +1.5596642e38 5.808373317056589e307 +8.559931e37 1.8962795639737924e307 +2.043007e38 5.278843956528775e307 +1.6667162e38 1.3763359457240068e308 +9.650981e37 5.747074866263327e307 +6.1530254e37 1.4028501451406057e308 +3.2926016e38 5.943875336376322e307 +- +Decimal32(4) Decimal64(8) Decimal64(8) +141277.1199 34587215859.56486735 1793697015189548808800.3321186298199631 +179109.9446 91310388980.88247636 9155714933283527596575.2265933417808212 +12431.2908 54718336176.75535245 3589436293988117804903.9923828992983949 +196857.2995 66269939664.00937485 -7975800700274615666991.6205621121901043 +108041.5314 -29591948098.91367399 -7473917794926308807002.4588259571608039 +-171632.9888 -3616165358.65719375 16693382269433918843239.6450094159824305 +210369.1749 80507399843.63587111 4905995755279397551053.6888361872164391 +121812.5110 -34656882097.63586027 12093397887518858443128.8806284162773013 +77662.1019 -5854815277.05485807 14924696978427516066647.5550554696171025 +-13911.9536 -18527474.08621639 2233902906033696342890.3204716019302329 +- +Tuple(Int32, Int64) +(1412771199,972365100324636832) +(1791099446,3152476261539479119) +(124312908,4963323010661987954) +(1968572995,5960170508884574548) +(1080415314,1945837313970117551) +(-1716329888,5416802321970971533) +(2103691749,-4323690223274572954) +(1218125110,5897270072098692621) +(776621019,-4051618955118587409) +(-139119536,6099213765121594905) +- +Array(Int8) +[127,54,76,67,82,96,-27,54,-37] +[80,-20,18,104,-94,99] +[-1,101,-9,79,-75,-106,-124,25] +[-126,76,-7,-28,20] +[50,109,25,61] +[119,75,-17,80,-26,-86,-1,78] +[87,87,-98,-52,-10,-55,90,-116,-110] +[] +[-8,30,126,-82,-83,-112,109,-37,46] +[] +- +Array(Nullable(Int32)) +[1412771199,1791099446,124312908,1968572995,1080415314,-1716329888,2103691749,1218125110,776621019] +[-139119536,458002924,-1375243758,-1499390872,-1006911326,282060643] +[-972627201,-1550392731,646512119,-1176093617,-1094550603,1998158230,-1491853180,-1004684263] +[-1087003262,1246511948,-287482375,1245659620,-447199980] +[75852338,-10461331,924798233,-707845059] +[-694178953,-1402336437,497728751,1937926992,-129643034,982571178,2100766207,-1068740018] +[473070167,-1859986345,611197598,-1197393460,640993526,1545236681,654453082,1474541196,293114258] +[] +[-894672648,-272503522,-1437033090,-1467734354,-1327634003,176306576,1752494957,-228452133,1262726958] +[] +- +Tuple(Int32, Array(Int64)) +(1412771199,[972365100324636832,3152476261539479119,4963323010661987954,5960170508884574548,1945837313970117551,5416802321970971533,-4323690223274572954,5897270072098692621,-4051618955118587409]) +(1791099446,[6099213765121594905,9049500661325627565,6490610108199929265,2659545628039292992,1049436691901089319,6555844131189778155]) +(124312908,[-3618886197108527083,8090694443849478311,-6748112818340381167,1211001191921707623,1583062447640133561,3619956371411508974,6210395553935478118,7999260120568553136]) +(1968572995,[-8213617876379062675,2929679139336823999,-6898532963881595768,2859043124745757119,181602243649873688]) +(1080415314,[7459507076057491211,2235978668844106654,7747732820502187351,-7347147272488840513]) +(-1716329888,[-3574726218986141421,3981338983611724340,8771848629812837701,-6576737000659768488,6769293131084427761,-8327622552204843394,1747121705533891044,4459867665041030928]) +(2103691749,[7974359543614958207,-973852668603249740,8242686802579364489,-1858485842996203811,-7644694849238348395,121039232775176155,2267202361603555760,-7133497827826495528,-4966062503744808160]) +(1218125110,[]) +(776621019,[-4132303197660648388,-402394423460281791,3022356521898683902,48062283965211565,36155406469293327,-2534696891053843107,-6385296537632895626,5203636353956926927,5117509146781816226]) +(-139119536,[]) +- +Nullable(String) +-C 2% +\0)X +\0 $n +\0e +\0 +\0 o9 +\08 64 + +\0 99 + +- +Array(String) +['UL L> ','\0)} ','\0 #x ','\0f ','\0 ','\0 `& ','\0& WZ ','','\0 d^ '] +['','\0 %','\0 WP ','\0 ','','\0 '] +['\0 ;','\0 <8','\0 0E =Y','\0 " -I','\0 c','','\0 (9 ','\0- '] +['\0*? ','\0tj k\'','\0','','\0 `#'] +['\0 T\' x','\0 @T','\0 0','\0 G" '] +['\0M ','\0d` A9 ','\0','\0 ','\0m','\0 Hx ','\0 >P ','\08i @l'] +['\0 +m ','\0','\0 ;; 1','\0 v& ','\0x5 ','\0','\0 ','\0 1g','\0 N3 @'] +[] +['\0 ;\' ','\0 ','\0 %4','\0 ','\0 ','\0/ J','\0 43 ','\0T ','\0/) u#'] +[] +- +UUID +0d7e88e8-2cd6-48a0-2bbf-d87513e97e4f +44e143fb-3c07-b672-52b6-c77fded30154 +1b0100ba-41e3-9baf-4b2c-59032b97438d +c3ff2aa6-5ae3-c366-51d7-4fe2affc1e0d +c7c5c206-d6ea-d1ef-54a4-c29ab73ed619 +7d9648e7-b8fa-00ad-5a13-478132d105b1 +24e89aa8-6739-a840-0e90-591c73068627 +5afb0980-c265-66eb-cdc7-222d6ac83015 +7047ebba-f7df-f0a7-a259-e3250e8fbe11 +10ce572a-fb11-6a67-15f8-2ae8a0d9bfb9 +- +Array(Nullable(UUID)) +['0d7e88e8-2cd6-48a0-2bbf-d87513e97e4f','44e143fb-3c07-b672-52b6-c77fded30154','1b0100ba-41e3-9baf-4b2c-59032b97438d','c3ff2aa6-5ae3-c366-51d7-4fe2affc1e0d','c7c5c206-d6ea-d1ef-54a4-c29ab73ed619','7d9648e7-b8fa-00ad-5a13-478132d105b1','24e89aa8-6739-a840-0e90-591c73068627','5afb0980-c265-66eb-cdc7-222d6ac83015','7047ebba-f7df-f0a7-a259-e3250e8fbe11'] +['10ce572a-fb11-6a67-15f8-2ae8a0d9bfb9','323cab23-f465-1eee-562f-c1da2afd4d66','6f0314b2-a06f-deb0-8e03-5e0f1da0ae6d','28a84fa7-b60b-24bf-a043-7cd1c083cc88','27ad5c92-f7fe-61bf-0285-2e47472a2718','67857e29-dbeb-670b-1f07-cac0a9cdc39e'] +['6b8579f3-74ab-0d57-9a09-b07b86d292bf','ce640571-8c0e-4913-3740-8eb628977234','79bbddda-837d-bd45-a4ba-bc8afe81ab58','5df15c3c-cac7-71f1-8c6e-5769104c667e','183f05ef-3db8-e1e4-3de4-a20310057f10','6eaa9dc1-446a-6a7f-f27c-2e2858564bb4','7263e7f9-ae8b-1a89-e635-54f8f41e6edd','95e89689-b6e3-cd95-01ae-048a79733fdb'] +['1f76b889-254e-81b0-9d00-b9853e618fd8','bb150076-d3e7-5b20-c6a7-1c22b739ec3c','fa6a6867-620d-4241-29f1-913e585b2dfe','00aac064-82d7-23ad-0080-73268f4fe50f','dcd2f29b-6372-dd5d-a762-dea138dc0d76'] +['483707b1-a1e9-55cf-4705-0b748cbe15a2','95696803-f67d-78a2-368a-fa0468a6508a','05c19621-f1a0-0e84-6f41-0b3770eca9ab','859e6ea8-1d2c-a3e7-7f0c-47b4f3dcb8a8'] +['eae86216-0177-15bb-b3e7-11879fc325bc','9c92bccb-abf1-9455-bb7b-e6bdc168dd7c','8ce11561-8eb4-77f3-4a8a-94932decef27','d7c09609-7dca-1d83-0a0c-47a3e6fada0c','8d2ec2d8-21a0-c236-a7d8-ce7dba4efacf','b6e36c2a-9b64-c780-b8c2-3ad72f8c2100','311d94bb-98bd-2b9f-08f6-968caf310aa1','30b0db78-8f4e-d9ac-74a6-5569e114ec51'] +['085ad107-02f1-7923-bc64-7e42b4637d62','76ca80a3-4493-0e5d-d3ba-c269e6dcff7a','78b1fc1a-9617-6469-d4c1-e7400e855264','7c6ba877-1533-0897-43cb-dfa9f01faab2','5a93fb7a-59a4-0669-1bc0-3c084d8d91b5','3ed7d592-5110-ddc4-5b09-62d6e599ec08','30dabf5e-4bb4-4f6f-08a3-2da66221aa26','33ad19f4-5c15-0885-5ea7-468d774b73f2','26388262-e01d-1c58-df21-aec00d17a7d8'] +[] +['0a1ce45d-7e7c-1295-6005-6cc519af1ef0','a8285719-a806-6ef2-9d05-27c5668dcf6b','c67242ca-cc6d-ae56-1702-8c45b5d6e2a3','751e5172-2cdd-d4de-0694-a5753a1f80ad','b6e0792c-3f87-80fa-dd3d-5e3bcf883eb7','2f10e4d6-feb0-c82a-8051-44ff033734dc','fdc53bbe-4279-2bc7-cf4d-11340b2d2ab4','4b44f8cf-353f-fee0-69d9-5785e7d7c760','61e7590b-e7d8-62fd-16b2-7e0636d3cbe3'] +[] +- +FixedString(4) +6LC +R`å6 +ÛPì +h¢cÿ +e÷Oµ +–„‚ +Lùä +2m= +wKïP +æªÿN +- +String +-C 2% +\0)X +\0 $n +\0e +\0 +\0 o9 +\08 64 + +\0 99 + +- +[127] 141277.1199 ('2026-10-04 10:37:26.199','0d7e88e8-2cd6-48a0-2bbf-d87513e97e4f') +[] 179109.9446 ('2032-05-19 12:49:55.908','44e143fb-3c07-b672-52b6-c77fded30154') +[] 12431.2908 ('2051-09-18 11:10:08.314','1b0100ba-41e3-9baf-4b2c-59032b97438d') +[54] 196857.2995 ('2008-08-07 20:05:10.749','c3ff2aa6-5ae3-c366-51d7-4fe2affc1e0d') +[] 108041.5314 ('2101-09-11 05:09:20.019','c7c5c206-d6ea-d1ef-54a4-c29ab73ed619') +[] -171632.9888 ('2062-07-10 05:18:58.924','7d9648e7-b8fa-00ad-5a13-478132d105b1') +[76] 210369.1749 ('2074-03-12 07:52:50.424','24e89aa8-6739-a840-0e90-591c73068627') +[] 121812.5110 ('2075-04-13 03:14:55.643','5afb0980-c265-66eb-cdc7-222d6ac83015') +[67] 77662.1019 ('1990-06-27 22:41:59.565','7047ebba-f7df-f0a7-a259-e3250e8fbe11') +[] -13911.9536 ('2071-06-01 23:38:13.679','10ce572a-fb11-6a67-15f8-2ae8a0d9bfb9') +- +[-59] 1234817989 aR 123481.7989 o 4.50418660252953e307 ('2106-02-07','2009-02-16 23:59:49','2007-02-20 10:43:46.989','4024497c-b1f5-5b35-44e7-4cf478103f02') Ų +[-78] 1171957426 \0 117195.7426 w 4.838569580371409e307 ('2086-11-02','2007-02-20 10:43:46','2002-10-04 02:54:48.647','a4739e76-3fbd-b537-34b8-c2b4c272296f') ç¸ +[-25,-72] 275100647 \0 27510.0647 w 1.1548186651907869e308 ('2096-02-04','1978-09-20 03:50:47','1974-04-19 01:48:12.192','1e8f333f-d6c7-cd48-7a23-dd0a93d8418f') ج +[] 1033685688 \02? 103368.5688 w 3.7022451508754407e307 ('2106-02-07','2002-10-04 02:54:48','2002-01-28 12:47:02.271','f8cf0cb7-8a30-acab-b618-22f5db288237') _ +[-40] 180895192 \0 18089.5192 h 2.1459523436508332e307 ('2013-05-07','1975-09-25 19:39:52','2053-11-20 07:10:58.662','fe7c4fab-b30e-0db2-fb21-64a726f71730') &R +[] 135557292 \0 13555.7292 w 8.576968910623855e307 ('2048-12-21','1974-04-19 01:48:12','1986-04-08 19:07:15.849','dd091972-50eb-59db-242f-0c7311995279') A# +[-84,95] 716914271 \0 71691.4271 h 1.7471947254414614e308 ('2013-09-19','1992-09-19 18:51:11','2081-03-06 04:00:55.914','c87feb6e-decf-2422-14d3-3312e8eef7b3') ’Ç +[22,38] 1012211222 \0 101221.1222 h 1.2787095439887414e308 ('1991-02-02','2002-01-28 12:47:02','1979-01-20 20:39:20.939','da4f0e49-9267-2228-10d9-dcd46ccff515') »H +[82,65] 2185722662 \0h -210924.4634 w 1.7870585909530327e308 ('2056-04-25','2039-04-06 20:11:02','2063-07-18 01:46:10.215','400d5020-f53c-224d-0e25-215f73801b7e') w² +[35] 2647224658 \0 -164774.2638 o 1.763497936342361e308 ('2049-06-05','2053-11-20 07:10:58','1996-11-02 14:35:41.110','8a9107d8-e5ce-78a0-fa35-9dc406168d47') Æ\r +- diff --git a/dbms/tests/queries/0_stateless/01072_random_table_function.sql b/dbms/tests/queries/0_stateless/01087_table_function_generate.sql similarity index 100% rename from dbms/tests/queries/0_stateless/01072_random_table_function.sql rename to dbms/tests/queries/0_stateless/01087_table_function_generate.sql