mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-23 08:02:02 +00:00
Add tests for compatibility of LogFamily.
This commit is contained in:
parent
613a2fc46c
commit
bc9ee5e33f
@ -0,0 +1,322 @@
|
||||
Log:
|
||||
empty:
|
||||
1 element:
|
||||
[[3,5,7]] ['a1','a2'] [4.1,4.2]
|
||||
__marks.mrk size=96
|
||||
00000000 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
|
||||
*
|
||||
00000060
|
||||
sizes.json size=226
|
||||
00000000 7b 22 63 6c 69 63 6b 68 6f 75 73 65 22 3a 7b 22 |{"clickhouse":{"|
|
||||
00000010 5f 5f 6d 61 72 6b 73 25 32 45 6d 72 6b 22 3a 7b |__marks%2Emrk":{|
|
||||
00000020 22 73 69 7a 65 22 3a 22 39 36 22 7d 2c 22 78 25 |"size":"96"},"x%|
|
||||
00000030 32 45 62 69 6e 22 3a 7b 22 73 69 7a 65 22 3a 22 |2Ebin":{"size":"|
|
||||
00000040 33 38 22 7d 2c 22 78 25 32 45 73 69 7a 65 30 25 |38"},"x%2Esize0%|
|
||||
00000050 32 45 62 69 6e 22 3a 7b 22 73 69 7a 65 22 3a 22 |2Ebin":{"size":"|
|
||||
00000060 33 34 22 7d 2c 22 78 25 32 45 73 69 7a 65 31 25 |34"},"x%2Esize1%|
|
||||
00000070 32 45 62 69 6e 22 3a 7b 22 73 69 7a 65 22 3a 22 |2Ebin":{"size":"|
|
||||
00000080 33 34 22 7d 2c 22 79 25 32 35 32 45 77 25 32 45 |34"},"y%252Ew%2E|
|
||||
00000090 62 69 6e 22 3a 7b 22 73 69 7a 65 22 3a 22 33 34 |bin":{"size":"34|
|
||||
000000a0 22 7d 2c 22 79 25 32 35 32 45 7a 25 32 45 62 69 |"},"y%252Ez%2Ebi|
|
||||
000000b0 6e 22 3a 7b 22 73 69 7a 65 22 3a 22 33 32 22 7d |n":{"size":"32"}|
|
||||
000000c0 2c 22 79 25 32 45 73 69 7a 65 30 25 32 45 62 69 |,"y%2Esize0%2Ebi|
|
||||
000000d0 6e 22 3a 7b 22 73 69 7a 65 22 3a 22 33 34 22 7d |n":{"size":"34"}|
|
||||
000000e0 7d 7d |}}|
|
||||
000000e2
|
||||
x.bin size=38
|
||||
00000000 91 54 4b 94 65 b3 4b ec 03 da 1a 40 e6 25 75 67 |.TK.e.K....@.%ug|
|
||||
00000010 82 16 00 00 00 0c 00 00 00 c0 03 00 00 00 05 00 |................|
|
||||
00000020 00 00 07 00 00 00 |......|
|
||||
00000026
|
||||
x.size0.bin size=34
|
||||
00000000 48 54 99 92 92 db 6a 74 c5 da 23 ed 7e b0 4b 3e |HT....jt..#.~.K>|
|
||||
00000010 82 12 00 00 00 08 00 00 00 80 01 00 00 00 00 00 |................|
|
||||
00000020 00 00 |..|
|
||||
00000022
|
||||
x.size1.bin size=34
|
||||
00000000 4f 48 a7 2c 99 02 fb 38 ec 48 b5 b1 ed 95 03 a5 |OH.,...8.H......|
|
||||
00000010 82 12 00 00 00 08 00 00 00 80 03 00 00 00 00 00 |................|
|
||||
00000020 00 00 |..|
|
||||
00000022
|
||||
y%2Ew.bin size=34
|
||||
00000000 a8 87 9a f0 64 ca 12 e6 ca ac 68 b9 81 be ec c8 |....d.....h.....|
|
||||
00000010 82 12 00 00 00 08 00 00 00 80 33 33 83 40 66 66 |..........33.@ff|
|
||||
00000020 86 40 |.@|
|
||||
00000022
|
||||
y%2Ez.bin size=32
|
||||
00000000 84 ac b0 60 39 d3 a5 77 24 cc 33 07 db 27 f1 b2 |...`9..w$.3..'..|
|
||||
00000010 82 10 00 00 00 06 00 00 00 60 02 61 31 02 61 32 |.........`.a1.a2|
|
||||
00000020
|
||||
y.size0.bin size=34
|
||||
00000000 5e 56 3c 70 ce d8 15 fe 0a 1d ef 3b 4a 1c 99 4f |^V<p.......;J..O|
|
||||
00000010 82 12 00 00 00 08 00 00 00 80 02 00 00 00 00 00 |................|
|
||||
00000020 00 00 |..|
|
||||
00000022
|
||||
3 elements:
|
||||
[] [] []
|
||||
[[3,5,7]] ['a1','a2'] [4.1,4.2]
|
||||
[[10]] ['a3'] [4.3]
|
||||
__marks.mrk size=192
|
||||
00000000 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
|
||||
*
|
||||
00000060 03 00 00 00 00 00 00 00 22 00 00 00 00 00 00 00 |........".......|
|
||||
*
|
||||
00000080 03 00 00 00 00 00 00 00 26 00 00 00 00 00 00 00 |........&.......|
|
||||
00000090 03 00 00 00 00 00 00 00 22 00 00 00 00 00 00 00 |........".......|
|
||||
000000a0 03 00 00 00 00 00 00 00 20 00 00 00 00 00 00 00 |........ .......|
|
||||
000000b0 03 00 00 00 00 00 00 00 22 00 00 00 00 00 00 00 |........".......|
|
||||
000000c0
|
||||
sizes.json size=227
|
||||
00000000 7b 22 63 6c 69 63 6b 68 6f 75 73 65 22 3a 7b 22 |{"clickhouse":{"|
|
||||
00000010 5f 5f 6d 61 72 6b 73 25 32 45 6d 72 6b 22 3a 7b |__marks%2Emrk":{|
|
||||
00000020 22 73 69 7a 65 22 3a 22 31 39 32 22 7d 2c 22 78 |"size":"192"},"x|
|
||||
00000030 25 32 45 62 69 6e 22 3a 7b 22 73 69 7a 65 22 3a |%2Ebin":{"size":|
|
||||
00000040 22 36 38 22 7d 2c 22 78 25 32 45 73 69 7a 65 30 |"68"},"x%2Esize0|
|
||||
00000050 25 32 45 62 69 6e 22 3a 7b 22 73 69 7a 65 22 3a |%2Ebin":{"size":|
|
||||
00000060 22 37 32 22 7d 2c 22 78 25 32 45 73 69 7a 65 31 |"72"},"x%2Esize1|
|
||||
00000070 25 32 45 62 69 6e 22 3a 7b 22 73 69 7a 65 22 3a |%2Ebin":{"size":|
|
||||
00000080 22 36 38 22 7d 2c 22 79 25 32 35 32 45 77 25 32 |"68"},"y%252Ew%2|
|
||||
00000090 45 62 69 6e 22 3a 7b 22 73 69 7a 65 22 3a 22 36 |Ebin":{"size":"6|
|
||||
000000a0 34 22 7d 2c 22 79 25 32 35 32 45 7a 25 32 45 62 |4"},"y%252Ez%2Eb|
|
||||
000000b0 69 6e 22 3a 7b 22 73 69 7a 65 22 3a 22 36 31 22 |in":{"size":"61"|
|
||||
000000c0 7d 2c 22 79 25 32 45 73 69 7a 65 30 25 32 45 62 |},"y%2Esize0%2Eb|
|
||||
000000d0 69 6e 22 3a 7b 22 73 69 7a 65 22 3a 22 37 32 22 |in":{"size":"72"|
|
||||
000000e0 7d 7d 7d |}}}|
|
||||
000000e3
|
||||
x.bin size=68
|
||||
00000000 91 54 4b 94 65 b3 4b ec 03 da 1a 40 e6 25 75 67 |.TK.e.K....@.%ug|
|
||||
00000010 82 16 00 00 00 0c 00 00 00 c0 03 00 00 00 05 00 |................|
|
||||
00000020 00 00 07 00 00 00 35 a3 52 ae de d7 11 1c 48 3d |......5.R.....H=|
|
||||
00000030 64 03 4b 5f f3 db 82 0e 00 00 00 04 00 00 00 40 |d.K_...........@|
|
||||
00000040 0a 00 00 00 |....|
|
||||
00000044
|
||||
x.size0.bin size=72
|
||||
00000000 48 54 99 92 92 db 6a 74 c5 da 23 ed 7e b0 4b 3e |HT....jt..#.~.K>|
|
||||
00000010 82 12 00 00 00 08 00 00 00 80 01 00 00 00 00 00 |................|
|
||||
00000020 00 00 1a 9d 14 3f 60 b2 ab 75 b2 00 12 3a 64 37 |.....?`..u...:d7|
|
||||
00000030 86 5b 82 16 00 00 00 10 00 00 00 13 00 01 00 80 |.[..............|
|
||||
00000040 01 00 00 00 00 00 00 00 |........|
|
||||
00000048
|
||||
x.size1.bin size=68
|
||||
00000000 4f 48 a7 2c 99 02 fb 38 ec 48 b5 b1 ed 95 03 a5 |OH.,...8.H......|
|
||||
00000010 82 12 00 00 00 08 00 00 00 80 03 00 00 00 00 00 |................|
|
||||
00000020 00 00 48 54 99 92 92 db 6a 74 c5 da 23 ed 7e b0 |..HT....jt..#.~.|
|
||||
00000030 4b 3e 82 12 00 00 00 08 00 00 00 80 01 00 00 00 |K>..............|
|
||||
00000040 00 00 00 00 |....|
|
||||
00000044
|
||||
y%2Ew.bin size=64
|
||||
00000000 a8 87 9a f0 64 ca 12 e6 ca ac 68 b9 81 be ec c8 |....d.....h.....|
|
||||
00000010 82 12 00 00 00 08 00 00 00 80 33 33 83 40 66 66 |..........33.@ff|
|
||||
00000020 86 40 4d 8f 35 86 dc 39 5f 7c 7e 38 f1 9b 5e d7 |.@M.5..9_|~8..^.|
|
||||
00000030 ba 6e 82 0e 00 00 00 04 00 00 00 40 9a 99 89 40 |.n.........@...@|
|
||||
00000040
|
||||
y%2Ez.bin size=61
|
||||
00000000 84 ac b0 60 39 d3 a5 77 24 cc 33 07 db 27 f1 b2 |...`9..w$.3..'..|
|
||||
00000010 82 10 00 00 00 06 00 00 00 60 02 61 31 02 61 32 |.........`.a1.a2|
|
||||
00000020 09 39 35 e0 9b 95 cb c9 15 41 27 69 d9 d4 cc 89 |.95......A'i....|
|
||||
00000030 82 0d 00 00 00 03 00 00 00 30 02 61 33 |.........0.a3|
|
||||
0000003d
|
||||
y.size0.bin size=72
|
||||
00000000 5e 56 3c 70 ce d8 15 fe 0a 1d ef 3b 4a 1c 99 4f |^V<p.......;J..O|
|
||||
00000010 82 12 00 00 00 08 00 00 00 80 02 00 00 00 00 00 |................|
|
||||
00000020 00 00 1a 9d 14 3f 60 b2 ab 75 b2 00 12 3a 64 37 |.....?`..u...:d7|
|
||||
00000030 86 5b 82 16 00 00 00 10 00 00 00 13 00 01 00 80 |.[..............|
|
||||
00000040 01 00 00 00 00 00 00 00 |........|
|
||||
00000048
|
||||
|
||||
TinyLog:
|
||||
empty:
|
||||
1 element:
|
||||
[[3,5,7]] ['a1','a2'] [4.1,4.2]
|
||||
sizes.json size=196
|
||||
00000000 7b 22 63 6c 69 63 6b 68 6f 75 73 65 22 3a 7b 22 |{"clickhouse":{"|
|
||||
00000010 78 25 32 45 62 69 6e 22 3a 7b 22 73 69 7a 65 22 |x%2Ebin":{"size"|
|
||||
00000020 3a 22 33 38 22 7d 2c 22 78 25 32 45 73 69 7a 65 |:"38"},"x%2Esize|
|
||||
00000030 30 25 32 45 62 69 6e 22 3a 7b 22 73 69 7a 65 22 |0%2Ebin":{"size"|
|
||||
00000040 3a 22 33 34 22 7d 2c 22 78 25 32 45 73 69 7a 65 |:"34"},"x%2Esize|
|
||||
00000050 31 25 32 45 62 69 6e 22 3a 7b 22 73 69 7a 65 22 |1%2Ebin":{"size"|
|
||||
00000060 3a 22 33 34 22 7d 2c 22 79 25 32 35 32 45 77 25 |:"34"},"y%252Ew%|
|
||||
00000070 32 45 62 69 6e 22 3a 7b 22 73 69 7a 65 22 3a 22 |2Ebin":{"size":"|
|
||||
00000080 33 34 22 7d 2c 22 79 25 32 35 32 45 7a 25 32 45 |34"},"y%252Ez%2E|
|
||||
00000090 62 69 6e 22 3a 7b 22 73 69 7a 65 22 3a 22 33 32 |bin":{"size":"32|
|
||||
000000a0 22 7d 2c 22 79 25 32 45 73 69 7a 65 30 25 32 45 |"},"y%2Esize0%2E|
|
||||
000000b0 62 69 6e 22 3a 7b 22 73 69 7a 65 22 3a 22 33 34 |bin":{"size":"34|
|
||||
000000c0 22 7d 7d 7d |"}}}|
|
||||
000000c4
|
||||
x.bin size=38
|
||||
00000000 91 54 4b 94 65 b3 4b ec 03 da 1a 40 e6 25 75 67 |.TK.e.K....@.%ug|
|
||||
00000010 82 16 00 00 00 0c 00 00 00 c0 03 00 00 00 05 00 |................|
|
||||
00000020 00 00 07 00 00 00 |......|
|
||||
00000026
|
||||
x.size0.bin size=34
|
||||
00000000 48 54 99 92 92 db 6a 74 c5 da 23 ed 7e b0 4b 3e |HT....jt..#.~.K>|
|
||||
00000010 82 12 00 00 00 08 00 00 00 80 01 00 00 00 00 00 |................|
|
||||
00000020 00 00 |..|
|
||||
00000022
|
||||
x.size1.bin size=34
|
||||
00000000 4f 48 a7 2c 99 02 fb 38 ec 48 b5 b1 ed 95 03 a5 |OH.,...8.H......|
|
||||
00000010 82 12 00 00 00 08 00 00 00 80 03 00 00 00 00 00 |................|
|
||||
00000020 00 00 |..|
|
||||
00000022
|
||||
y%2Ew.bin size=34
|
||||
00000000 a8 87 9a f0 64 ca 12 e6 ca ac 68 b9 81 be ec c8 |....d.....h.....|
|
||||
00000010 82 12 00 00 00 08 00 00 00 80 33 33 83 40 66 66 |..........33.@ff|
|
||||
00000020 86 40 |.@|
|
||||
00000022
|
||||
y%2Ez.bin size=32
|
||||
00000000 84 ac b0 60 39 d3 a5 77 24 cc 33 07 db 27 f1 b2 |...`9..w$.3..'..|
|
||||
00000010 82 10 00 00 00 06 00 00 00 60 02 61 31 02 61 32 |.........`.a1.a2|
|
||||
00000020
|
||||
y.size0.bin size=34
|
||||
00000000 5e 56 3c 70 ce d8 15 fe 0a 1d ef 3b 4a 1c 99 4f |^V<p.......;J..O|
|
||||
00000010 82 12 00 00 00 08 00 00 00 80 02 00 00 00 00 00 |................|
|
||||
00000020 00 00 |..|
|
||||
00000022
|
||||
3 elements:
|
||||
[] [] []
|
||||
[[3,5,7]] ['a1','a2'] [4.1,4.2]
|
||||
[[10]] ['a3'] [4.3]
|
||||
sizes.json size=196
|
||||
00000000 7b 22 63 6c 69 63 6b 68 6f 75 73 65 22 3a 7b 22 |{"clickhouse":{"|
|
||||
00000010 78 25 32 45 62 69 6e 22 3a 7b 22 73 69 7a 65 22 |x%2Ebin":{"size"|
|
||||
00000020 3a 22 36 38 22 7d 2c 22 78 25 32 45 73 69 7a 65 |:"68"},"x%2Esize|
|
||||
00000030 30 25 32 45 62 69 6e 22 3a 7b 22 73 69 7a 65 22 |0%2Ebin":{"size"|
|
||||
00000040 3a 22 37 32 22 7d 2c 22 78 25 32 45 73 69 7a 65 |:"72"},"x%2Esize|
|
||||
00000050 31 25 32 45 62 69 6e 22 3a 7b 22 73 69 7a 65 22 |1%2Ebin":{"size"|
|
||||
00000060 3a 22 36 38 22 7d 2c 22 79 25 32 35 32 45 77 25 |:"68"},"y%252Ew%|
|
||||
00000070 32 45 62 69 6e 22 3a 7b 22 73 69 7a 65 22 3a 22 |2Ebin":{"size":"|
|
||||
00000080 36 34 22 7d 2c 22 79 25 32 35 32 45 7a 25 32 45 |64"},"y%252Ez%2E|
|
||||
00000090 62 69 6e 22 3a 7b 22 73 69 7a 65 22 3a 22 36 31 |bin":{"size":"61|
|
||||
000000a0 22 7d 2c 22 79 25 32 45 73 69 7a 65 30 25 32 45 |"},"y%2Esize0%2E|
|
||||
000000b0 62 69 6e 22 3a 7b 22 73 69 7a 65 22 3a 22 37 32 |bin":{"size":"72|
|
||||
000000c0 22 7d 7d 7d |"}}}|
|
||||
000000c4
|
||||
x.bin size=68
|
||||
00000000 91 54 4b 94 65 b3 4b ec 03 da 1a 40 e6 25 75 67 |.TK.e.K....@.%ug|
|
||||
00000010 82 16 00 00 00 0c 00 00 00 c0 03 00 00 00 05 00 |................|
|
||||
00000020 00 00 07 00 00 00 35 a3 52 ae de d7 11 1c 48 3d |......5.R.....H=|
|
||||
00000030 64 03 4b 5f f3 db 82 0e 00 00 00 04 00 00 00 40 |d.K_...........@|
|
||||
00000040 0a 00 00 00 |....|
|
||||
00000044
|
||||
x.size0.bin size=72
|
||||
00000000 48 54 99 92 92 db 6a 74 c5 da 23 ed 7e b0 4b 3e |HT....jt..#.~.K>|
|
||||
00000010 82 12 00 00 00 08 00 00 00 80 01 00 00 00 00 00 |................|
|
||||
00000020 00 00 1a 9d 14 3f 60 b2 ab 75 b2 00 12 3a 64 37 |.....?`..u...:d7|
|
||||
00000030 86 5b 82 16 00 00 00 10 00 00 00 13 00 01 00 80 |.[..............|
|
||||
00000040 01 00 00 00 00 00 00 00 |........|
|
||||
00000048
|
||||
x.size1.bin size=68
|
||||
00000000 4f 48 a7 2c 99 02 fb 38 ec 48 b5 b1 ed 95 03 a5 |OH.,...8.H......|
|
||||
00000010 82 12 00 00 00 08 00 00 00 80 03 00 00 00 00 00 |................|
|
||||
00000020 00 00 48 54 99 92 92 db 6a 74 c5 da 23 ed 7e b0 |..HT....jt..#.~.|
|
||||
00000030 4b 3e 82 12 00 00 00 08 00 00 00 80 01 00 00 00 |K>..............|
|
||||
00000040 00 00 00 00 |....|
|
||||
00000044
|
||||
y%2Ew.bin size=64
|
||||
00000000 a8 87 9a f0 64 ca 12 e6 ca ac 68 b9 81 be ec c8 |....d.....h.....|
|
||||
00000010 82 12 00 00 00 08 00 00 00 80 33 33 83 40 66 66 |..........33.@ff|
|
||||
00000020 86 40 4d 8f 35 86 dc 39 5f 7c 7e 38 f1 9b 5e d7 |.@M.5..9_|~8..^.|
|
||||
00000030 ba 6e 82 0e 00 00 00 04 00 00 00 40 9a 99 89 40 |.n.........@...@|
|
||||
00000040
|
||||
y%2Ez.bin size=61
|
||||
00000000 84 ac b0 60 39 d3 a5 77 24 cc 33 07 db 27 f1 b2 |...`9..w$.3..'..|
|
||||
00000010 82 10 00 00 00 06 00 00 00 60 02 61 31 02 61 32 |.........`.a1.a2|
|
||||
00000020 09 39 35 e0 9b 95 cb c9 15 41 27 69 d9 d4 cc 89 |.95......A'i....|
|
||||
00000030 82 0d 00 00 00 03 00 00 00 30 02 61 33 |.........0.a3|
|
||||
0000003d
|
||||
y.size0.bin size=72
|
||||
00000000 5e 56 3c 70 ce d8 15 fe 0a 1d ef 3b 4a 1c 99 4f |^V<p.......;J..O|
|
||||
00000010 82 12 00 00 00 08 00 00 00 80 02 00 00 00 00 00 |................|
|
||||
00000020 00 00 1a 9d 14 3f 60 b2 ab 75 b2 00 12 3a 64 37 |.....?`..u...:d7|
|
||||
00000030 86 5b 82 16 00 00 00 10 00 00 00 13 00 01 00 80 |.[..............|
|
||||
00000040 01 00 00 00 00 00 00 00 |........|
|
||||
00000048
|
||||
|
||||
StripeLog:
|
||||
empty:
|
||||
1 element:
|
||||
[[3,5,7]] ['a1','a2'] [4.1,4.2]
|
||||
data.bin size=208
|
||||
00000000 e9 71 8f e5 06 82 a8 be 5b 58 f2 9b a5 f9 7a 5c |.q......[X....z\|
|
||||
00000010 82 0c 00 00 00 02 00 00 00 20 03 01 53 d7 6d 37 |......... ..S.m7|
|
||||
00000020 bf 7a fb 8b c6 f5 96 b2 63 a2 ef 26 82 31 00 00 |.z......c..&.1..|
|
||||
00000030 00 32 00 00 00 92 01 78 13 41 72 72 61 79 28 06 |.2.....x.Array(.|
|
||||
00000040 00 92 49 6e 74 33 32 29 29 01 00 01 00 12 03 07 |..Int32)).......|
|
||||
00000050 00 01 08 00 80 05 00 00 00 07 00 00 00 0d 77 ad |..............w.|
|
||||
00000060 98 63 11 30 fa 9a cb b6 7a eb ee 9a 14 82 28 00 |.c.0....z.....(.|
|
||||
00000070 00 00 20 00 00 00 f2 05 03 79 2e 7a 0d 41 72 72 |.. ......y.z.Arr|
|
||||
00000080 61 79 28 53 74 72 69 6e 67 29 02 00 01 00 60 02 |ay(String)....`.|
|
||||
00000090 61 31 02 61 32 43 59 b0 e8 66 5f 82 43 20 c5 2b |a1.a2CY..f_.C .+|
|
||||
000000a0 47 74 75 7e 59 82 2b 00 00 00 23 00 00 00 f2 06 |Gtu~Y.+...#.....|
|
||||
000000b0 03 79 2e 77 0e 41 72 72 61 79 28 46 6c 6f 61 74 |.y.w.Array(Float|
|
||||
000000c0 33 32 29 02 00 01 00 80 33 33 83 40 66 66 86 40 |32).....33.@ff.@|
|
||||
000000d0
|
||||
index.mrk size=96
|
||||
00000000 fb d3 41 e4 f9 03 e2 5c 61 58 96 37 a7 ab 3a 70 |..A....\aX.7..:p|
|
||||
00000010 82 50 00 00 00 6d 00 00 00 b2 03 01 01 78 13 41 |.P...m.......x.A|
|
||||
00000020 72 72 61 79 28 06 00 9a 49 6e 74 33 32 29 29 1c |rray(...Int32)).|
|
||||
00000030 00 01 00 52 03 79 2e 7a 0d 22 00 8a 53 74 72 69 |...R.y.z."..Stri|
|
||||
00000040 6e 67 29 5d 21 00 62 00 03 79 2e 77 0e 22 00 40 |ng)]!.b..y.w.".@|
|
||||
00000050 46 6c 6f 61 46 00 16 95 23 00 50 00 00 00 00 00 |FloaF...#.P.....|
|
||||
00000060
|
||||
sizes.json size=72
|
||||
00000000 7b 22 63 6c 69 63 6b 68 6f 75 73 65 22 3a 7b 22 |{"clickhouse":{"|
|
||||
00000010 64 61 74 61 25 32 45 62 69 6e 22 3a 7b 22 73 69 |data%2Ebin":{"si|
|
||||
00000020 7a 65 22 3a 22 32 30 38 22 7d 2c 22 69 6e 64 65 |ze":"208"},"inde|
|
||||
00000030 78 25 32 45 6d 72 6b 22 3a 7b 22 73 69 7a 65 22 |x%2Emrk":{"size"|
|
||||
00000040 3a 22 39 36 22 7d 7d 7d |:"96"}}}|
|
||||
00000048
|
||||
3 elements:
|
||||
[] [] []
|
||||
[[3,5,7]] ['a1','a2'] [4.1,4.2]
|
||||
[[10]] ['a3'] [4.3]
|
||||
data.bin size=416
|
||||
00000000 e9 71 8f e5 06 82 a8 be 5b 58 f2 9b a5 f9 7a 5c |.q......[X....z\|
|
||||
00000010 82 0c 00 00 00 02 00 00 00 20 03 01 53 d7 6d 37 |......... ..S.m7|
|
||||
00000020 bf 7a fb 8b c6 f5 96 b2 63 a2 ef 26 82 31 00 00 |.z......c..&.1..|
|
||||
00000030 00 32 00 00 00 92 01 78 13 41 72 72 61 79 28 06 |.2.....x.Array(.|
|
||||
00000040 00 92 49 6e 74 33 32 29 29 01 00 01 00 12 03 07 |..Int32)).......|
|
||||
00000050 00 01 08 00 80 05 00 00 00 07 00 00 00 0d 77 ad |..............w.|
|
||||
00000060 98 63 11 30 fa 9a cb b6 7a eb ee 9a 14 82 28 00 |.c.0....z.....(.|
|
||||
00000070 00 00 20 00 00 00 f2 05 03 79 2e 7a 0d 41 72 72 |.. ......y.z.Arr|
|
||||
00000080 61 79 28 53 74 72 69 6e 67 29 02 00 01 00 60 02 |ay(String)....`.|
|
||||
00000090 61 31 02 61 32 43 59 b0 e8 66 5f 82 43 20 c5 2b |a1.a2CY..f_.C .+|
|
||||
000000a0 47 74 75 7e 59 82 2b 00 00 00 23 00 00 00 f2 06 |Gtu~Y.+...#.....|
|
||||
000000b0 03 79 2e 77 0e 41 72 72 61 79 28 46 6c 6f 61 74 |.y.w.Array(Float|
|
||||
000000c0 33 32 29 02 00 01 00 80 33 33 83 40 66 66 86 40 |32).....33.@ff.@|
|
||||
000000d0 f8 ed 62 84 7b b1 cf 59 6e 10 a8 10 0a 0c 73 37 |..b.{..Yn.....s7|
|
||||
000000e0 82 0c 00 00 00 02 00 00 00 20 03 02 d5 4e 18 97 |......... ...N..|
|
||||
000000f0 1b d0 d8 03 85 c7 b5 d1 20 a3 16 09 82 2a 00 00 |........ ....*..|
|
||||
00000100 00 32 00 00 00 92 01 78 13 41 72 72 61 79 28 06 |.2.....x.Array(.|
|
||||
00000110 00 83 49 6e 74 33 32 29 29 00 01 00 1a 01 08 00 |..Int32)).......|
|
||||
00000120 50 00 0a 00 00 00 51 5b fd 47 31 2e ec ac ba 00 |P.....Q[.G1.....|
|
||||
00000130 d3 89 f3 55 b1 4c 82 2c 00 00 00 25 00 00 00 f3 |...U.L.,...%....|
|
||||
00000140 04 03 79 2e 7a 0d 41 72 72 61 79 28 53 74 72 69 |..y.z.Array(Stri|
|
||||
00000150 6e 67 29 00 01 00 b0 01 00 00 00 00 00 00 00 02 |ng).............|
|
||||
00000160 61 33 d9 ff b3 4c 97 40 40 37 88 bc 6b 6b cf 84 |a3...L.@@7..kk..|
|
||||
00000170 57 f0 82 2e 00 00 00 27 00 00 00 f3 05 03 79 2e |W......'......y.|
|
||||
00000180 77 0e 41 72 72 61 79 28 46 6c 6f 61 74 33 32 29 |w.Array(Float32)|
|
||||
00000190 00 01 00 c0 01 00 00 00 00 00 00 00 9a 99 89 40 |...............@|
|
||||
000001a0
|
||||
index.mrk size=189
|
||||
00000000 fb d3 41 e4 f9 03 e2 5c 61 58 96 37 a7 ab 3a 70 |..A....\aX.7..:p|
|
||||
00000010 82 50 00 00 00 6d 00 00 00 b2 03 01 01 78 13 41 |.P...m.......x.A|
|
||||
00000020 72 72 61 79 28 06 00 9a 49 6e 74 33 32 29 29 1c |rray(...Int32)).|
|
||||
00000030 00 01 00 52 03 79 2e 7a 0d 22 00 8a 53 74 72 69 |...R.y.z."..Stri|
|
||||
00000040 6e 67 29 5d 21 00 62 00 03 79 2e 77 0e 22 00 40 |ng)]!.b..y.w.".@|
|
||||
00000050 46 6c 6f 61 46 00 16 95 23 00 50 00 00 00 00 00 |FloaF...#.P.....|
|
||||
00000060 ec d4 1e 6d fc b7 7d d4 3d 8d 6d 74 a9 ba 10 35 |...m..}.=.mt...5|
|
||||
00000070 82 4d 00 00 00 6d 00 00 00 b2 03 02 01 78 13 41 |.M...m.......x.A|
|
||||
00000080 72 72 61 79 28 06 00 9a 49 6e 74 33 32 29 29 ec |rray(...Int32)).|
|
||||
00000090 00 01 00 52 03 79 2e 7a 0d 22 00 9d 53 74 72 69 |...R.y.z."..Stri|
|
||||
000000a0 6e 67 29 26 01 22 00 22 77 0e 22 00 40 46 6c 6f |ng)&."."w.".@Flo|
|
||||
000000b0 61 46 00 16 62 23 00 50 00 00 00 00 00 |aF..b#.P.....|
|
||||
000000bd
|
||||
sizes.json size=73
|
||||
00000000 7b 22 63 6c 69 63 6b 68 6f 75 73 65 22 3a 7b 22 |{"clickhouse":{"|
|
||||
00000010 64 61 74 61 25 32 45 62 69 6e 22 3a 7b 22 73 69 |data%2Ebin":{"si|
|
||||
00000020 7a 65 22 3a 22 34 31 36 22 7d 2c 22 69 6e 64 65 |ze":"416"},"inde|
|
||||
00000030 78 25 32 45 6d 72 6b 22 3a 7b 22 73 69 7a 65 22 |x%2Emrk":{"size"|
|
||||
00000040 3a 22 31 38 39 22 7d 7d 7d |:"189"}}}|
|
||||
00000049
|
||||
|
@ -0,0 +1,41 @@
|
||||
#!/usr/bin/env bash
|
||||
# Tags: no-fasttest
|
||||
|
||||
CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
|
||||
# shellcheck source=../shell_config.sh
|
||||
. "$CURDIR"/../shell_config.sh
|
||||
|
||||
declare -a engines=("Log" "TinyLog" "StripeLog")
|
||||
for engine in "${engines[@]}"
|
||||
do
|
||||
echo "$engine:"
|
||||
|
||||
$CLICKHOUSE_CLIENT --query="DROP TABLE IF EXISTS tbl"
|
||||
$CLICKHOUSE_CLIENT --query="CREATE TABLE tbl(x Array(Array(Int32)), y Array(Tuple(z String, w Float32))) ENGINE=$engine"
|
||||
data_dir=$($CLICKHOUSE_CLIENT --query="SELECT data_paths[1] FROM system.tables WHERE name='tbl' AND database=currentDatabase()")
|
||||
|
||||
echo "empty:"
|
||||
find "$data_dir"* 2>/dev/null
|
||||
|
||||
echo "1 element:"
|
||||
$CLICKHOUSE_CLIENT --query="INSERT INTO tbl VALUES ([[3,5,7]], ['a1', 'a2'], [4.1, 4.2])"
|
||||
$CLICKHOUSE_CLIENT --query="SELECT * FROM tbl ORDER BY x"
|
||||
for name in $(find "$data_dir"* -print0 | xargs -0 -n 1 basename | sort); do
|
||||
file_path=$data_dir$name
|
||||
file_size=$(stat -c%s "$file_path")
|
||||
echo "$name size=$file_size"
|
||||
hexdump -C $file_path
|
||||
done
|
||||
|
||||
echo "3 elements:"
|
||||
$CLICKHOUSE_CLIENT --query="INSERT INTO tbl VALUES ([], [], []), ([[10]], ['a3'], [4.3])"
|
||||
$CLICKHOUSE_CLIENT --query="SELECT * FROM tbl ORDER BY x"
|
||||
for name in $(find "$data_dir"* -print0 | xargs -0 -n 1 basename | sort); do
|
||||
file_path=$data_dir$name
|
||||
file_size=$(stat -c%s "$file_path")
|
||||
echo "$name size=$file_size"
|
||||
hexdump -C $file_path
|
||||
done
|
||||
|
||||
echo
|
||||
done
|
@ -0,0 +1,160 @@
|
||||
Log:
|
||||
empty:
|
||||
1 element:
|
||||
1 a
|
||||
__marks.mrk size=32
|
||||
00000000 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
|
||||
*
|
||||
00000020
|
||||
sizes.json size=94
|
||||
00000000 7b 22 63 6c 69 63 6b 68 6f 75 73 65 22 3a 7b 22 |{"clickhouse":{"|
|
||||
00000010 5f 5f 6d 61 72 6b 73 25 32 45 6d 72 6b 22 3a 7b |__marks%2Emrk":{|
|
||||
00000020 22 73 69 7a 65 22 3a 22 33 32 22 7d 2c 22 78 25 |"size":"32"},"x%|
|
||||
00000030 32 45 62 69 6e 22 3a 7b 22 73 69 7a 65 22 3a 22 |2Ebin":{"size":"|
|
||||
00000040 33 30 22 7d 2c 22 79 25 32 45 62 69 6e 22 3a 7b |30"},"y%2Ebin":{|
|
||||
00000050 22 73 69 7a 65 22 3a 22 32 38 22 7d 7d 7d |"size":"28"}}}|
|
||||
0000005e
|
||||
x.bin size=30
|
||||
00000000 39 9f 28 b3 25 cf c7 13 95 53 21 42 ef ac ef ec |9.(.%....S!B....|
|
||||
00000010 82 0e 00 00 00 04 00 00 00 40 01 00 00 00 |.........@....|
|
||||
0000001e
|
||||
y.bin size=28
|
||||
00000000 7d 24 2d b7 e2 da 37 8a db fd 99 47 48 4b 9e c1 |}$-...7....GHK..|
|
||||
00000010 82 0c 00 00 00 02 00 00 00 20 01 61 |......... .a|
|
||||
0000001c
|
||||
3 elements:
|
||||
1 a
|
||||
22 bc
|
||||
333 def
|
||||
__marks.mrk size=64
|
||||
00000000 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
|
||||
*
|
||||
00000020 03 00 00 00 00 00 00 00 1e 00 00 00 00 00 00 00 |................|
|
||||
00000030 03 00 00 00 00 00 00 00 1c 00 00 00 00 00 00 00 |................|
|
||||
00000040
|
||||
sizes.json size=94
|
||||
00000000 7b 22 63 6c 69 63 6b 68 6f 75 73 65 22 3a 7b 22 |{"clickhouse":{"|
|
||||
00000010 5f 5f 6d 61 72 6b 73 25 32 45 6d 72 6b 22 3a 7b |__marks%2Emrk":{|
|
||||
00000020 22 73 69 7a 65 22 3a 22 36 34 22 7d 2c 22 78 25 |"size":"64"},"x%|
|
||||
00000030 32 45 62 69 6e 22 3a 7b 22 73 69 7a 65 22 3a 22 |2Ebin":{"size":"|
|
||||
00000040 36 34 22 7d 2c 22 79 25 32 45 62 69 6e 22 3a 7b |64"},"y%2Ebin":{|
|
||||
00000050 22 73 69 7a 65 22 3a 22 36 31 22 7d 7d 7d |"size":"61"}}}|
|
||||
0000005e
|
||||
x.bin size=64
|
||||
00000000 39 9f 28 b3 25 cf c7 13 95 53 21 42 ef ac ef ec |9.(.%....S!B....|
|
||||
00000010 82 0e 00 00 00 04 00 00 00 40 01 00 00 00 f3 5b |.........@.....[|
|
||||
00000020 0d 60 9c a7 ec c2 76 d7 e7 c3 a5 1e d9 22 82 12 |.`....v......"..|
|
||||
00000030 00 00 00 08 00 00 00 80 16 00 00 00 4d 01 00 00 |............M...|
|
||||
00000040
|
||||
y.bin size=61
|
||||
00000000 7d 24 2d b7 e2 da 37 8a db fd 99 47 48 4b 9e c1 |}$-...7....GHK..|
|
||||
00000010 82 0c 00 00 00 02 00 00 00 20 01 61 4a 41 a1 bf |......... .aJA..|
|
||||
00000020 6e 15 00 05 d3 41 ed 9b 02 46 62 1b 82 11 00 00 |n....A...Fb.....|
|
||||
00000030 00 07 00 00 00 70 02 62 63 03 64 65 66 |.....p.bc.def|
|
||||
0000003d
|
||||
|
||||
TinyLog:
|
||||
empty:
|
||||
1 element:
|
||||
1 a
|
||||
sizes.json size=64
|
||||
00000000 7b 22 63 6c 69 63 6b 68 6f 75 73 65 22 3a 7b 22 |{"clickhouse":{"|
|
||||
00000010 78 25 32 45 62 69 6e 22 3a 7b 22 73 69 7a 65 22 |x%2Ebin":{"size"|
|
||||
00000020 3a 22 33 30 22 7d 2c 22 79 25 32 45 62 69 6e 22 |:"30"},"y%2Ebin"|
|
||||
00000030 3a 7b 22 73 69 7a 65 22 3a 22 32 38 22 7d 7d 7d |:{"size":"28"}}}|
|
||||
00000040
|
||||
x.bin size=30
|
||||
00000000 39 9f 28 b3 25 cf c7 13 95 53 21 42 ef ac ef ec |9.(.%....S!B....|
|
||||
00000010 82 0e 00 00 00 04 00 00 00 40 01 00 00 00 |.........@....|
|
||||
0000001e
|
||||
y.bin size=28
|
||||
00000000 7d 24 2d b7 e2 da 37 8a db fd 99 47 48 4b 9e c1 |}$-...7....GHK..|
|
||||
00000010 82 0c 00 00 00 02 00 00 00 20 01 61 |......... .a|
|
||||
0000001c
|
||||
3 elements:
|
||||
1 a
|
||||
22 bc
|
||||
333 def
|
||||
sizes.json size=64
|
||||
00000000 7b 22 63 6c 69 63 6b 68 6f 75 73 65 22 3a 7b 22 |{"clickhouse":{"|
|
||||
00000010 78 25 32 45 62 69 6e 22 3a 7b 22 73 69 7a 65 22 |x%2Ebin":{"size"|
|
||||
00000020 3a 22 36 34 22 7d 2c 22 79 25 32 45 62 69 6e 22 |:"64"},"y%2Ebin"|
|
||||
00000030 3a 7b 22 73 69 7a 65 22 3a 22 36 31 22 7d 7d 7d |:{"size":"61"}}}|
|
||||
00000040
|
||||
x.bin size=64
|
||||
00000000 39 9f 28 b3 25 cf c7 13 95 53 21 42 ef ac ef ec |9.(.%....S!B....|
|
||||
00000010 82 0e 00 00 00 04 00 00 00 40 01 00 00 00 f3 5b |.........@.....[|
|
||||
00000020 0d 60 9c a7 ec c2 76 d7 e7 c3 a5 1e d9 22 82 12 |.`....v......"..|
|
||||
00000030 00 00 00 08 00 00 00 80 16 00 00 00 4d 01 00 00 |............M...|
|
||||
00000040
|
||||
y.bin size=61
|
||||
00000000 7d 24 2d b7 e2 da 37 8a db fd 99 47 48 4b 9e c1 |}$-...7....GHK..|
|
||||
00000010 82 0c 00 00 00 02 00 00 00 20 01 61 4a 41 a1 bf |......... .aJA..|
|
||||
00000020 6e 15 00 05 d3 41 ed 9b 02 46 62 1b 82 11 00 00 |n....A...Fb.....|
|
||||
00000030 00 07 00 00 00 70 02 62 63 03 64 65 66 |.....p.bc.def|
|
||||
0000003d
|
||||
|
||||
StripeLog:
|
||||
empty:
|
||||
1 element:
|
||||
1 a
|
||||
data.bin size=104
|
||||
00000000 0c d3 31 cc 9f f3 94 97 56 a2 ee 76 f7 4c 35 0f |..1.....V..v.L5.|
|
||||
00000010 82 0c 00 00 00 02 00 00 00 20 02 01 d3 b5 6c 48 |......... ....lH|
|
||||
00000020 05 89 3b 01 ad 3a 99 3a 40 10 f0 fa 82 17 00 00 |..;..:.:@.......|
|
||||
00000030 00 0d 00 00 00 d0 01 78 06 55 49 6e 74 33 32 01 |.......x.UInt32.|
|
||||
00000040 00 00 00 07 12 7f b8 90 bb cb c1 5b 93 d1 61 7e |...........[..a~|
|
||||
00000050 27 86 3e 82 15 00 00 00 0b 00 00 00 b0 01 79 06 |'.>...........y.|
|
||||
00000060 53 74 72 69 6e 67 01 61 |String.a|
|
||||
00000068
|
||||
index.mrk size=60
|
||||
00000000 e0 18 ce 21 0a cc 9f ac d8 51 d4 27 00 4d 7e 75 |...!.....Q.'.M~u|
|
||||
00000010 82 2c 00 00 00 34 00 00 00 da 02 01 01 78 06 55 |.,...4.......x.U|
|
||||
00000020 49 6e 74 33 32 1c 00 01 00 a6 01 79 06 53 74 72 |Int32......y.Str|
|
||||
00000030 69 6e 67 43 18 00 50 00 00 00 00 00 |ingC..P.....|
|
||||
0000003c
|
||||
sizes.json size=72
|
||||
00000000 7b 22 63 6c 69 63 6b 68 6f 75 73 65 22 3a 7b 22 |{"clickhouse":{"|
|
||||
00000010 64 61 74 61 25 32 45 62 69 6e 22 3a 7b 22 73 69 |data%2Ebin":{"si|
|
||||
00000020 7a 65 22 3a 22 31 30 34 22 7d 2c 22 69 6e 64 65 |ze":"104"},"inde|
|
||||
00000030 78 25 32 45 6d 72 6b 22 3a 7b 22 73 69 7a 65 22 |x%2Emrk":{"size"|
|
||||
00000040 3a 22 36 30 22 7d 7d 7d |:"60"}}}|
|
||||
00000048
|
||||
3 elements:
|
||||
1 a
|
||||
22 bc
|
||||
333 def
|
||||
data.bin size=219
|
||||
00000000 0c d3 31 cc 9f f3 94 97 56 a2 ee 76 f7 4c 35 0f |..1.....V..v.L5.|
|
||||
00000010 82 0c 00 00 00 02 00 00 00 20 02 01 d3 b5 6c 48 |......... ....lH|
|
||||
00000020 05 89 3b 01 ad 3a 99 3a 40 10 f0 fa 82 17 00 00 |..;..:.:@.......|
|
||||
00000030 00 0d 00 00 00 d0 01 78 06 55 49 6e 74 33 32 01 |.......x.UInt32.|
|
||||
00000040 00 00 00 07 12 7f b8 90 bb cb c1 5b 93 d1 61 7e |...........[..a~|
|
||||
00000050 27 86 3e 82 15 00 00 00 0b 00 00 00 b0 01 79 06 |'.>...........y.|
|
||||
00000060 53 74 72 69 6e 67 01 61 55 84 52 9f 32 10 4d 9e |String.aU.R.2.M.|
|
||||
00000070 eb 58 e8 2a 3a 8c e8 df 82 0c 00 00 00 02 00 00 |.X.*:...........|
|
||||
00000080 00 20 02 02 5f c2 08 eb 23 e5 a3 7a e2 22 e7 fc |. .._...#..z."..|
|
||||
00000090 23 57 79 fd 82 1c 00 00 00 11 00 00 00 f0 02 01 |#Wy.............|
|
||||
000000a0 78 06 55 49 6e 74 33 32 16 00 00 00 4d 01 00 00 |x.UInt32....M...|
|
||||
000000b0 87 a2 af 21 6c 93 79 77 88 8c 5f ae e9 41 df 5a |...!l.yw.._..A.Z|
|
||||
000000c0 82 1b 00 00 00 10 00 00 00 f0 01 01 79 06 53 74 |............y.St|
|
||||
000000d0 72 69 6e 67 02 62 63 03 64 65 66 |ring.bc.def|
|
||||
000000db
|
||||
index.mrk size=120
|
||||
00000000 e0 18 ce 21 0a cc 9f ac d8 51 d4 27 00 4d 7e 75 |...!.....Q.'.M~u|
|
||||
00000010 82 2c 00 00 00 34 00 00 00 da 02 01 01 78 06 55 |.,...4.......x.U|
|
||||
00000020 49 6e 74 33 32 1c 00 01 00 a6 01 79 06 53 74 72 |Int32......y.Str|
|
||||
00000030 69 6e 67 43 18 00 50 00 00 00 00 00 82 27 58 46 |ingC..P......'XF|
|
||||
00000040 ad 45 bc 2f 66 02 78 84 e1 42 dd 03 82 2c 00 00 |.E./f.x..B...,..|
|
||||
00000050 00 34 00 00 00 da 02 02 01 78 06 55 49 6e 74 33 |.4.......x.UInt3|
|
||||
00000060 32 84 00 01 00 a6 01 79 06 53 74 72 69 6e 67 b0 |2......y.String.|
|
||||
00000070 18 00 50 00 00 00 00 00 |..P.....|
|
||||
00000078
|
||||
sizes.json size=73
|
||||
00000000 7b 22 63 6c 69 63 6b 68 6f 75 73 65 22 3a 7b 22 |{"clickhouse":{"|
|
||||
00000010 64 61 74 61 25 32 45 62 69 6e 22 3a 7b 22 73 69 |data%2Ebin":{"si|
|
||||
00000020 7a 65 22 3a 22 32 31 39 22 7d 2c 22 69 6e 64 65 |ze":"219"},"inde|
|
||||
00000030 78 25 32 45 6d 72 6b 22 3a 7b 22 73 69 7a 65 22 |x%2Emrk":{"size"|
|
||||
00000040 3a 22 31 32 30 22 7d 7d 7d |:"120"}}}|
|
||||
00000049
|
||||
|
41
tests/queries/0_stateless/02047_log_family_data_file_dumps.sh
Executable file
41
tests/queries/0_stateless/02047_log_family_data_file_dumps.sh
Executable file
@ -0,0 +1,41 @@
|
||||
#!/usr/bin/env bash
|
||||
# Tags: no-fasttest
|
||||
|
||||
CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
|
||||
# shellcheck source=../shell_config.sh
|
||||
. "$CURDIR"/../shell_config.sh
|
||||
|
||||
declare -a engines=("Log" "TinyLog" "StripeLog")
|
||||
for engine in "${engines[@]}"
|
||||
do
|
||||
echo "$engine:"
|
||||
|
||||
$CLICKHOUSE_CLIENT --query="DROP TABLE IF EXISTS tbl"
|
||||
$CLICKHOUSE_CLIENT --query="CREATE TABLE tbl(x UInt32, y String) ENGINE=$engine"
|
||||
data_dir=$($CLICKHOUSE_CLIENT --query="SELECT data_paths[1] FROM system.tables WHERE name='tbl' AND database=currentDatabase()")
|
||||
|
||||
echo "empty:"
|
||||
find "$data_dir"* 2>/dev/null
|
||||
|
||||
echo "1 element:"
|
||||
$CLICKHOUSE_CLIENT --query="INSERT INTO tbl VALUES (1, 'a')"
|
||||
$CLICKHOUSE_CLIENT --query="SELECT * FROM tbl ORDER BY x"
|
||||
for name in $(find "$data_dir"* -print0 | xargs -0 -n 1 basename | sort); do
|
||||
file_path=$data_dir$name
|
||||
file_size=$(stat -c%s "$file_path")
|
||||
echo "$name size=$file_size"
|
||||
hexdump -C $file_path
|
||||
done
|
||||
|
||||
echo "3 elements:"
|
||||
$CLICKHOUSE_CLIENT --query="INSERT INTO tbl VALUES (22, 'bc'), (333, 'def')"
|
||||
$CLICKHOUSE_CLIENT --query="SELECT * FROM tbl ORDER BY x"
|
||||
for name in $(find "$data_dir"* -print0 | xargs -0 -n 1 basename | sort); do
|
||||
file_path=$data_dir$name
|
||||
file_size=$(stat -c%s "$file_path")
|
||||
echo "$name size=$file_size"
|
||||
hexdump -C $file_path
|
||||
done
|
||||
|
||||
echo
|
||||
done
|
Loading…
Reference in New Issue
Block a user