From caefc23b1ec961975d73a0f01c4281876950447b Mon Sep 17 00:00:00 2001 From: Colin Dellow Date: Wed, 7 Mar 2018 19:40:38 -0500 Subject: [PATCH] Add a pg oracle - define `datetime`, `printf` fns in pg so it produces similar output as sqlite - tidy up input data to be less wide To do: some fns to make it easy to generate a new test case. Probably want to mount all the 3 parquets simultaneously and refer to the sqlite table by the same name as the pg table. --- parquet-generator/100-rows-1.parquet | Bin 8124 -> 7724 bytes parquet-generator/100-rows-10.parquet | Bin 30522 -> 27230 bytes parquet-generator/100-rows-nulls.parquet | Bin 26918 -> 23692 bytes parquet-generator/create-pg-db | 55 +++++ parquet-generator/no-nulls.csv | 100 +++++++++ parquet-generator/nulls.csv | 100 +++++++++ parquet-generator/parquets.py | 43 +++- tests/queries/001-table-scan-1-rowgroup.sql | 203 +++++++++--------- tests/queries/002-table-scan-10-rowgroups.sql | 203 +++++++++--------- 9 files changed, 496 insertions(+), 208 deletions(-) create mode 100755 parquet-generator/create-pg-db create mode 100644 parquet-generator/no-nulls.csv create mode 100644 parquet-generator/nulls.csv diff --git a/parquet-generator/100-rows-1.parquet b/parquet-generator/100-rows-1.parquet index fe4fa702307c996981bfc63af18b67b492b0d786..152ae7f251575f8819ab2a53e2ef013adffff3b6 100644 GIT binary patch delta 748 zcmZ|N!BY}Z9KiAS7FIUE5@R=EP1aUO$V8J2N--ss3QDNN5=)|Kx_0ZvAJCEiphMHa zLo?1a9hm9bbnV_B(RAq8m!Dqy&g|@)_u1cjmmRDft$dC4xm*ssLg1X>Rd9YD%jfgh0%40{*RZ7}tWYRm*9lt|yMYypSgBOPZW4A& zYz13g#meO}wnp0TsoR3<;Kl}6sZ_u_#Nejb7Ph^ORjXC(E@Ah??qjtYRX5e(v`|l(ds?5otb2>OYSaax*oZkoi_o=M)GoaMYdUNp~O1^F% delta 866 zcmaKrJ4{;#7=_O@$6y-_80?F$!Mrh;hrtF67%*V40b`6GU>gGl+r&~+l_5ih46&3U zLsVtJQirO_kfB3VMO9OEsGD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{&*Lriy5RR%#^C3t@J?e%Z}ZN4L*`qfXROVpHG-a(oTd90!XJk|4V-j-%zohDng zv<=Usas(bLFi%O2YO!)mELILIR*ulN6dyzuLW_loN{;@SXHiz7Hkd^Vrm-}!SUHVb ztQ^f^nJ|q=MszHMT$jCP!c}jvwjSbKH@~ZL^@r2g?rd#8@3&Z=w5Xghjkj-D9!Z(_ zm8ti5W{`z52%R?FlTV(=C-k0sJu}HuGYOqO!!wIKGmFrB^F6c4lG%jLnCY2AmdznF zf0k!1SuvN;nX^6f$f|jS&YI)7kF36rklBV)bx!k^c;h5N!g=4l=7LF-US#wM|%EB_uCu^4ZHCYJLUa}D9pk$#>1Ia>} zztM55ts|b`l>XLJG_o+vo5;d3nIQ|u41=sW=JR7=nM02?%XD=tq#5K`h|{^T@J^P- zLYd{vQPNI3)xY&bW-JV|i?MJ_`NhI94;O2Wd9PSl=9*&7GNTg`7ZN5h(9{udUOIagS-%xuC!nrwuHIP(YlznLC` zg)*;&W1sgY@vWz>VBwfgf`w_42NtH87g#e*bil$jxd3af;rlGq5%nze;qB~SYLqt% zad@_4iCt5b5Jq6L@C=J)VH&HJ123dGU@v$%stz%&t@5Y*Gd>ISZm@d{_Bd1uXgPB<9Ba7I-<)|1I;&2wn zDuv>SaWsUXQB3`XQB6NXa6yMtyzejq#ftH zKfw_CL9_65PG({1G0ei$jh8i3uUQtZo~o?5`hv1hduOuHyGpYE=-zoO#BOztqV}3H zhR}14g{M0k3sWC67N(A0teHAmv2b;6V$Ickh=tmthlSp~hW)?mv%x~_Y~eV^f2z)| zkIq{7*yHmS_nq_Tqe)N9Te#?fM;0Wd^h@iP+IP~p!MT%0j?W|OZXqNW|JU6A287m| AdH?_b diff --git a/parquet-generator/100-rows-nulls.parquet b/parquet-generator/100-rows-nulls.parquet index 08c5b78e2cd1ee2d27a8bf4ad32d571a2a891e71..3c6b6e6c7e6d66633812516138b05e456fcf2fda 100644 GIT binary patch delta 5700 zcmaKv4_uV>9mo0o4(|^-MZ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xbI+fG6iJed_BAmk*u)O0&mNXLENAG{ VNn=W= 10 and i <= 19) or (i >= 20 and (i + j) % 2 == 0): rows[i][j] = None write_parquet('100-rows-nulls.parquet', rows, types,row_group_size=10) + write_csv('nulls.csv', rows) write_unsupported_parquets() diff --git a/tests/queries/001-table-scan-1-rowgroup.sql b/tests/queries/001-table-scan-1-rowgroup.sql index a150a5b..e4ecc08 100644 --- a/tests/queries/001-table-scan-1-rowgroup.sql +++ b/tests/queries/001-table-scan-1-rowgroup.sql @@ -1,103 +1,102 @@ 100-rows-1.parquet -select * from test; -1|50|5000|50000000|50000000000|490665600000|100.0|0|000|| -0|49|4900|49000000|49000000000|490752000000|50.0|1|001|| -1|48|4800|48000000|48000000000|490838400000|33.3333333333333|2|002|| -0|47|4700|47000000|47000000000|490924800000|25.0|3|003|| -1|46|4600|46000000|46000000000|491011200000|20.0|4|004|| -0|45|4500|45000000|45000000000|491097600000|16.6666666666667|5|005|| -1|44|4400|44000000|44000000000|491184000000|14.2857142857143|6|006|| -0|43|4300|43000000|43000000000|491270400000|12.5|7|007|| -1|42|4200|42000000|42000000000|491356800000|11.1111111111111|8|008|| -0|41|4100|41000000|41000000000|491443200000|10.0|9|009|| -1|40|4000|40000000|40000000000|491529600000|9.09090909090909|10|010|| - -0|39|3900|39000000|39000000000|491616000000|8.33333333333333|11|011|| -1|38|3800|38000000|38000000000|491702400000|7.69230769230769|12|012|| -0|37|3700|37000000|37000000000|491788800000|7.14285714285714|13|013|| -1|36|3600|36000000|36000000000|491875200000|6.66666666666667|14|014|| -0|35|3500|35000000|35000000000|491961600000|6.25|15|015|| -1|34|3400|34000000|34000000000|492048000000|5.88235294117647|16|016|| -0|33|3300|33000000|33000000000|492134400000|5.55555555555556|17|017|| -1|32|3200|32000000|32000000000|492220800000|5.26315789473684|18|018|| -0|31|3100|31000000|31000000000|492307200000|5.0|19|019|| -1|30|3000|30000000|30000000000|492393600000|4.76190476190476|20|020|| -0|29|2900|29000000|29000000000|492480000000|4.54545454545455|21|021|| -1|28|2800|28000000|28000000000|492566400000|4.34782608695652|22|022|| -0|27|2700|27000000|27000000000|492652800000|4.16666666666667|23|023|| -1|26|2600|26000000|26000000000|492739200000|4.0|24|024|| -0|25|2500|25000000|25000000000|492825600000|3.84615384615385|25|025|| -1|24|2400|24000000|24000000000|492912000000|3.7037037037037|26|026|| -0|23|2300|23000000|23000000000|492998400000|3.57142857142857|27|027|| -1|22|2200|22000000|22000000000|493084800000|3.44827586206897|28|028|| -0|21|2100|21000000|21000000000|493171200000|3.33333333333333|29|029|| -1|20|2000|20000000|20000000000|493257600000|3.2258064516129|30|030|| -0|19|1900|19000000|19000000000|493344000000|3.125|31|031|| -1|18|1800|18000000|18000000000|493430400000|3.03030303030303|32|032|| -0|17|1700|17000000|17000000000|493516800000|2.94117647058824|33|033||! -1|16|1600|16000000|16000000000|493603200000|2.85714285714286|34|034||" -0|15|1500|15000000|15000000000|493689600000|2.77777777777778|35|035||# -1|14|1400|14000000|14000000000|493776000000|2.7027027027027|36|036||$ -0|13|1300|13000000|13000000000|493862400000|2.63157894736842|37|037||% -1|12|1200|12000000|12000000000|493948800000|2.56410256410256|38|038||& -0|11|1100|11000000|11000000000|494035200000|2.5|39|039||' -1|10|1000|10000000|10000000000|494121600000|2.4390243902439|40|040||( -0|9|900|9000000|9000000000|494208000000|2.38095238095238|41|041||) -1|8|800|8000000|8000000000|494294400000|2.32558139534884|42|042||* -0|7|700|7000000|7000000000|494380800000|2.27272727272727|43|043||+ -1|6|600|6000000|6000000000|494467200000|2.22222222222222|44|044||, -0|5|500|5000000|5000000000|494553600000|2.17391304347826|45|045||- -1|4|400|4000000|4000000000|494640000000|2.12765957446809|46|046||. -0|3|300|3000000|3000000000|494726400000|2.08333333333333|47|047||/ -1|2|200|2000000|2000000000|494812800000|2.04081632653061|48|048||0 -0|1|100|1000000|1000000000|494899200000|2.0|49|049||1 -1|0|0|0|0|494985600000|1.96078431372549|50|050||2 -0|-1|-100|-1000000|-1000000000|495072000000|1.92307692307692|51|051||3 -1|-2|-200|-2000000|-2000000000|495158400000|1.88679245283019|52|052||4 -0|-3|-300|-3000000|-3000000000|495244800000|1.85185185185185|53|053||5 -1|-4|-400|-4000000|-4000000000|495331200000|1.81818181818182|54|054||6 -0|-5|-500|-5000000|-5000000000|495417600000|1.78571428571429|55|055||7 -1|-6|-600|-6000000|-6000000000|495504000000|1.75438596491228|56|056||8 -0|-7|-700|-7000000|-7000000000|495590400000|1.72413793103448|57|057||9 -1|-8|-800|-8000000|-8000000000|495676800000|1.69491525423729|58|058||: -0|-9|-900|-9000000|-9000000000|495763200000|1.66666666666667|59|059||; -1|-10|-1000|-10000000|-10000000000|495849600000|1.63934426229508|60|060||< -0|-11|-1100|-11000000|-11000000000|495936000000|1.61290322580645|61|061||= -1|-12|-1200|-12000000|-12000000000|496022400000|1.58730158730159|62|062||> -0|-13|-1300|-13000000|-13000000000|496108800000|1.5625|63|063||? -1|-14|-1400|-14000000|-14000000000|496195200000|1.53846153846154|64|064||@ -0|-15|-1500|-15000000|-15000000000|496281600000|1.51515151515152|65|065||A -1|-16|-1600|-16000000|-16000000000|496368000000|1.49253731343284|66|066||B -0|-17|-1700|-17000000|-17000000000|496454400000|1.47058823529412|67|067||C -1|-18|-1800|-18000000|-18000000000|496540800000|1.44927536231884|68|068||D -0|-19|-1900|-19000000|-19000000000|496627200000|1.42857142857143|69|069||E -1|-20|-2000|-20000000|-20000000000|496713600000|1.40845070422535|70|070||F -0|-21|-2100|-21000000|-21000000000|496800000000|1.38888888888889|71|071||G -1|-22|-2200|-22000000|-22000000000|496886400000|1.36986301369863|72|072||H -0|-23|-2300|-23000000|-23000000000|496972800000|1.35135135135135|73|073||I -1|-24|-2400|-24000000|-24000000000|497059200000|1.33333333333333|74|074||J -0|-25|-2500|-25000000|-25000000000|497145600000|1.31578947368421|75|075||K -1|-26|-2600|-26000000|-26000000000|497232000000|1.2987012987013|76|076||L -0|-27|-2700|-27000000|-27000000000|497318400000|1.28205128205128|77|077||M -1|-28|-2800|-28000000|-28000000000|497404800000|1.26582278481013|78|078||N -0|-29|-2900|-29000000|-29000000000|497491200000|1.25|79|079||O -1|-30|-3000|-30000000|-30000000000|497577600000|1.23456790123457|80|080||P -0|-31|-3100|-31000000|-31000000000|497664000000|1.21951219512195|81|081||Q -1|-32|-3200|-32000000|-32000000000|497750400000|1.20481927710843|82|082||R -0|-33|-3300|-33000000|-33000000000|497836800000|1.19047619047619|83|083||S -1|-34|-3400|-34000000|-34000000000|497923200000|1.17647058823529|84|084||T -0|-35|-3500|-35000000|-35000000000|498009600000|1.16279069767442|85|085||U -1|-36|-3600|-36000000|-36000000000|498096000000|1.14942528735632|86|086||V -0|-37|-3700|-37000000|-37000000000|498182400000|1.13636363636364|87|087||W -1|-38|-3800|-38000000|-38000000000|498268800000|1.12359550561798|88|088||X -0|-39|-3900|-39000000|-39000000000|498355200000|1.11111111111111|89|089||Y -1|-40|-4000|-40000000|-40000000000|498441600000|1.0989010989011|90|090||Z -0|-41|-4100|-41000000|-41000000000|498528000000|1.08695652173913|91|091||[ -1|-42|-4200|-42000000|-42000000000|498614400000|1.0752688172043|92|092||\ -0|-43|-4300|-43000000|-43000000000|498700800000|1.06382978723404|93|093||] -1|-44|-4400|-44000000|-44000000000|498787200000|1.05263157894737|94|094||^ -0|-45|-4500|-45000000|-45000000000|498873600000|1.04166666666667|95|095||_ -1|-46|-4600|-46000000|-46000000000|498960000000|1.03092783505155|96|096||` -0|-47|-4700|-47000000|-47000000000|499046400000|1.02040816326531|97|097||a -1|-48|-4800|-48000000|-48000000000|499132800000|1.01010101010101|98|098||b -0|-49|-4900|-49000000|-49000000000|499219200000|1.0|99|099||c +SELECT rowid, bool_0, int8_1, int16_2, int32_3, int64_4, datetime(ts_5 / 1000, 'unixepoch'), printf("%.4f", double_6) AS double_6, string_7, string_8, quote(binary_9), quote(binary_10) FROM test; +0|1|50|5000|50000000|50000000000|1985-07-20 00:00:00|100.0000|0|000|X'00'|X'00' +1|0|49|4900|49000000|49000000000|1985-07-21 00:00:00|50.0000|1|001|X'0101'|X'01' +2|1|48|4800|48000000|48000000000|1985-07-22 00:00:00|33.3333|2|002|X'020202'|X'02' +3|0|47|4700|47000000|47000000000|1985-07-23 00:00:00|25.0000|3|003|X'03030303'|X'03' +4|1|46|4600|46000000|46000000000|1985-07-24 00:00:00|20.0000|4|004|X'0404040404'|X'04' +5|0|45|4500|45000000|45000000000|1985-07-25 00:00:00|16.6667|5|005|X'05'|X'05' +6|1|44|4400|44000000|44000000000|1985-07-26 00:00:00|14.2857|6|006|X'0606'|X'06' +7|0|43|4300|43000000|43000000000|1985-07-27 00:00:00|12.5000|7|007|X'070707'|X'07' +8|1|42|4200|42000000|42000000000|1985-07-28 00:00:00|11.1111|8|008|X'08080808'|X'08' +9|0|41|4100|41000000|41000000000|1985-07-29 00:00:00|10.0000|9|009|X'0909090909'|X'09' +10|1|40|4000|40000000|40000000000|1985-07-30 00:00:00|9.0909|10|010|X'0A'|X'0A' +11|0|39|3900|39000000|39000000000|1985-07-31 00:00:00|8.3333|11|011|X'0B0B'|X'0B' +12|1|38|3800|38000000|38000000000|1985-08-01 00:00:00|7.6923|12|012|X'0C0C0C'|X'0C' +13|0|37|3700|37000000|37000000000|1985-08-02 00:00:00|7.1429|13|013|X'0D0D0D0D'|X'0D' +14|1|36|3600|36000000|36000000000|1985-08-03 00:00:00|6.6667|14|014|X'0E0E0E0E0E'|X'0E' +15|0|35|3500|35000000|35000000000|1985-08-04 00:00:00|6.2500|15|015|X'0F'|X'0F' +16|1|34|3400|34000000|34000000000|1985-08-05 00:00:00|5.8824|16|016|X'1010'|X'10' +17|0|33|3300|33000000|33000000000|1985-08-06 00:00:00|5.5556|17|017|X'111111'|X'11' +18|1|32|3200|32000000|32000000000|1985-08-07 00:00:00|5.2632|18|018|X'12121212'|X'12' +19|0|31|3100|31000000|31000000000|1985-08-08 00:00:00|5.0000|19|019|X'1313131313'|X'13' +20|1|30|3000|30000000|30000000000|1985-08-09 00:00:00|4.7619|20|020|X'14'|X'14' +21|0|29|2900|29000000|29000000000|1985-08-10 00:00:00|4.5455|21|021|X'1515'|X'15' +22|1|28|2800|28000000|28000000000|1985-08-11 00:00:00|4.3478|22|022|X'161616'|X'16' +23|0|27|2700|27000000|27000000000|1985-08-12 00:00:00|4.1667|23|023|X'17171717'|X'17' +24|1|26|2600|26000000|26000000000|1985-08-13 00:00:00|4.0000|24|024|X'1818181818'|X'18' +25|0|25|2500|25000000|25000000000|1985-08-14 00:00:00|3.8462|25|025|X'19'|X'19' +26|1|24|2400|24000000|24000000000|1985-08-15 00:00:00|3.7037|26|026|X'1A1A'|X'1A' +27|0|23|2300|23000000|23000000000|1985-08-16 00:00:00|3.5714|27|027|X'1B1B1B'|X'1B' +28|1|22|2200|22000000|22000000000|1985-08-17 00:00:00|3.4483|28|028|X'1C1C1C1C'|X'1C' +29|0|21|2100|21000000|21000000000|1985-08-18 00:00:00|3.3333|29|029|X'1D1D1D1D1D'|X'1D' +30|1|20|2000|20000000|20000000000|1985-08-19 00:00:00|3.2258|30|030|X'1E'|X'1E' +31|0|19|1900|19000000|19000000000|1985-08-20 00:00:00|3.1250|31|031|X'1F1F'|X'1F' +32|1|18|1800|18000000|18000000000|1985-08-21 00:00:00|3.0303|32|032|X'202020'|X'20' +33|0|17|1700|17000000|17000000000|1985-08-22 00:00:00|2.9412|33|033|X'21212121'|X'21' +34|1|16|1600|16000000|16000000000|1985-08-23 00:00:00|2.8571|34|034|X'2222222222'|X'22' +35|0|15|1500|15000000|15000000000|1985-08-24 00:00:00|2.7778|35|035|X'23'|X'23' +36|1|14|1400|14000000|14000000000|1985-08-25 00:00:00|2.7027|36|036|X'2424'|X'24' +37|0|13|1300|13000000|13000000000|1985-08-26 00:00:00|2.6316|37|037|X'252525'|X'25' +38|1|12|1200|12000000|12000000000|1985-08-27 00:00:00|2.5641|38|038|X'26262626'|X'26' +39|0|11|1100|11000000|11000000000|1985-08-28 00:00:00|2.5000|39|039|X'2727272727'|X'27' +40|1|10|1000|10000000|10000000000|1985-08-29 00:00:00|2.4390|40|040|X'28'|X'28' +41|0|9|900|9000000|9000000000|1985-08-30 00:00:00|2.3810|41|041|X'2929'|X'29' +42|1|8|800|8000000|8000000000|1985-08-31 00:00:00|2.3256|42|042|X'2A2A2A'|X'2A' +43|0|7|700|7000000|7000000000|1985-09-01 00:00:00|2.2727|43|043|X'2B2B2B2B'|X'2B' +44|1|6|600|6000000|6000000000|1985-09-02 00:00:00|2.2222|44|044|X'2C2C2C2C2C'|X'2C' +45|0|5|500|5000000|5000000000|1985-09-03 00:00:00|2.1739|45|045|X'2D'|X'2D' +46|1|4|400|4000000|4000000000|1985-09-04 00:00:00|2.1277|46|046|X'2E2E'|X'2E' +47|0|3|300|3000000|3000000000|1985-09-05 00:00:00|2.0833|47|047|X'2F2F2F'|X'2F' +48|1|2|200|2000000|2000000000|1985-09-06 00:00:00|2.0408|48|048|X'30303030'|X'30' +49|0|1|100|1000000|1000000000|1985-09-07 00:00:00|2.0000|49|049|X'3131313131'|X'31' +50|1|0|0|0|0|1985-09-08 00:00:00|1.9608|50|050|X'32'|X'32' +51|0|-1|-100|-1000000|-1000000000|1985-09-09 00:00:00|1.9231|51|051|X'3333'|X'33' +52|1|-2|-200|-2000000|-2000000000|1985-09-10 00:00:00|1.8868|52|052|X'343434'|X'34' +53|0|-3|-300|-3000000|-3000000000|1985-09-11 00:00:00|1.8519|53|053|X'35353535'|X'35' +54|1|-4|-400|-4000000|-4000000000|1985-09-12 00:00:00|1.8182|54|054|X'3636363636'|X'36' +55|0|-5|-500|-5000000|-5000000000|1985-09-13 00:00:00|1.7857|55|055|X'37'|X'37' +56|1|-6|-600|-6000000|-6000000000|1985-09-14 00:00:00|1.7544|56|056|X'3838'|X'38' +57|0|-7|-700|-7000000|-7000000000|1985-09-15 00:00:00|1.7241|57|057|X'393939'|X'39' +58|1|-8|-800|-8000000|-8000000000|1985-09-16 00:00:00|1.6949|58|058|X'3A3A3A3A'|X'3A' +59|0|-9|-900|-9000000|-9000000000|1985-09-17 00:00:00|1.6667|59|059|X'3B3B3B3B3B'|X'3B' +60|1|-10|-1000|-10000000|-10000000000|1985-09-18 00:00:00|1.6393|60|060|X'3C'|X'3C' +61|0|-11|-1100|-11000000|-11000000000|1985-09-19 00:00:00|1.6129|61|061|X'3D3D'|X'3D' +62|1|-12|-1200|-12000000|-12000000000|1985-09-20 00:00:00|1.5873|62|062|X'3E3E3E'|X'3E' +63|0|-13|-1300|-13000000|-13000000000|1985-09-21 00:00:00|1.5625|63|063|X'3F3F3F3F'|X'3F' +64|1|-14|-1400|-14000000|-14000000000|1985-09-22 00:00:00|1.5385|64|064|X'4040404040'|X'40' +65|0|-15|-1500|-15000000|-15000000000|1985-09-23 00:00:00|1.5152|65|065|X'41'|X'41' +66|1|-16|-1600|-16000000|-16000000000|1985-09-24 00:00:00|1.4925|66|066|X'4242'|X'42' +67|0|-17|-1700|-17000000|-17000000000|1985-09-25 00:00:00|1.4706|67|067|X'434343'|X'43' +68|1|-18|-1800|-18000000|-18000000000|1985-09-26 00:00:00|1.4493|68|068|X'44444444'|X'44' +69|0|-19|-1900|-19000000|-19000000000|1985-09-27 00:00:00|1.4286|69|069|X'4545454545'|X'45' +70|1|-20|-2000|-20000000|-20000000000|1985-09-28 00:00:00|1.4085|70|070|X'46'|X'46' +71|0|-21|-2100|-21000000|-21000000000|1985-09-29 00:00:00|1.3889|71|071|X'4747'|X'47' +72|1|-22|-2200|-22000000|-22000000000|1985-09-30 00:00:00|1.3699|72|072|X'484848'|X'48' +73|0|-23|-2300|-23000000|-23000000000|1985-10-01 00:00:00|1.3514|73|073|X'49494949'|X'49' +74|1|-24|-2400|-24000000|-24000000000|1985-10-02 00:00:00|1.3333|74|074|X'4A4A4A4A4A'|X'4A' +75|0|-25|-2500|-25000000|-25000000000|1985-10-03 00:00:00|1.3158|75|075|X'4B'|X'4B' +76|1|-26|-2600|-26000000|-26000000000|1985-10-04 00:00:00|1.2987|76|076|X'4C4C'|X'4C' +77|0|-27|-2700|-27000000|-27000000000|1985-10-05 00:00:00|1.2821|77|077|X'4D4D4D'|X'4D' +78|1|-28|-2800|-28000000|-28000000000|1985-10-06 00:00:00|1.2658|78|078|X'4E4E4E4E'|X'4E' +79|0|-29|-2900|-29000000|-29000000000|1985-10-07 00:00:00|1.2500|79|079|X'4F4F4F4F4F'|X'4F' +80|1|-30|-3000|-30000000|-30000000000|1985-10-08 00:00:00|1.2346|80|080|X'50'|X'50' +81|0|-31|-3100|-31000000|-31000000000|1985-10-09 00:00:00|1.2195|81|081|X'5151'|X'51' +82|1|-32|-3200|-32000000|-32000000000|1985-10-10 00:00:00|1.2048|82|082|X'525252'|X'52' +83|0|-33|-3300|-33000000|-33000000000|1985-10-11 00:00:00|1.1905|83|083|X'53535353'|X'53' +84|1|-34|-3400|-34000000|-34000000000|1985-10-12 00:00:00|1.1765|84|084|X'5454545454'|X'54' +85|0|-35|-3500|-35000000|-35000000000|1985-10-13 00:00:00|1.1628|85|085|X'55'|X'55' +86|1|-36|-3600|-36000000|-36000000000|1985-10-14 00:00:00|1.1494|86|086|X'5656'|X'56' +87|0|-37|-3700|-37000000|-37000000000|1985-10-15 00:00:00|1.1364|87|087|X'575757'|X'57' +88|1|-38|-3800|-38000000|-38000000000|1985-10-16 00:00:00|1.1236|88|088|X'58585858'|X'58' +89|0|-39|-3900|-39000000|-39000000000|1985-10-17 00:00:00|1.1111|89|089|X'5959595959'|X'59' +90|1|-40|-4000|-40000000|-40000000000|1985-10-18 00:00:00|1.0989|90|090|X'5A'|X'5A' +91|0|-41|-4100|-41000000|-41000000000|1985-10-19 00:00:00|1.0870|91|091|X'5B5B'|X'5B' +92|1|-42|-4200|-42000000|-42000000000|1985-10-20 00:00:00|1.0753|92|092|X'5C5C5C'|X'5C' +93|0|-43|-4300|-43000000|-43000000000|1985-10-21 00:00:00|1.0638|93|093|X'5D5D5D5D'|X'5D' +94|1|-44|-4400|-44000000|-44000000000|1985-10-22 00:00:00|1.0526|94|094|X'5E5E5E5E5E'|X'5E' +95|0|-45|-4500|-45000000|-45000000000|1985-10-23 00:00:00|1.0417|95|095|X'5F'|X'5F' +96|1|-46|-4600|-46000000|-46000000000|1985-10-24 00:00:00|1.0309|96|096|X'6060'|X'60' +97|0|-47|-4700|-47000000|-47000000000|1985-10-25 00:00:00|1.0204|97|097|X'616161'|X'61' +98|1|-48|-4800|-48000000|-48000000000|1985-10-26 00:00:00|1.0101|98|098|X'62626262'|X'62' +99|0|-49|-4900|-49000000|-49000000000|1985-10-27 00:00:00|1.0000|99|099|X'6363636363'|X'63' diff --git a/tests/queries/002-table-scan-10-rowgroups.sql b/tests/queries/002-table-scan-10-rowgroups.sql index 5061a30..0793844 100644 --- a/tests/queries/002-table-scan-10-rowgroups.sql +++ b/tests/queries/002-table-scan-10-rowgroups.sql @@ -1,103 +1,102 @@ 100-rows-10.parquet -select * from test; -1|50|5000|50000000|50000000000|490665600000|100.0|0|000|| -0|49|4900|49000000|49000000000|490752000000|50.0|1|001|| -1|48|4800|48000000|48000000000|490838400000|33.3333333333333|2|002|| -0|47|4700|47000000|47000000000|490924800000|25.0|3|003|| -1|46|4600|46000000|46000000000|491011200000|20.0|4|004|| -0|45|4500|45000000|45000000000|491097600000|16.6666666666667|5|005|| -1|44|4400|44000000|44000000000|491184000000|14.2857142857143|6|006|| -0|43|4300|43000000|43000000000|491270400000|12.5|7|007|| -1|42|4200|42000000|42000000000|491356800000|11.1111111111111|8|008|| -0|41|4100|41000000|41000000000|491443200000|10.0|9|009|| -1|40|4000|40000000|40000000000|491529600000|9.09090909090909|10|010|| - -0|39|3900|39000000|39000000000|491616000000|8.33333333333333|11|011|| -1|38|3800|38000000|38000000000|491702400000|7.69230769230769|12|012|| -0|37|3700|37000000|37000000000|491788800000|7.14285714285714|13|013|| -1|36|3600|36000000|36000000000|491875200000|6.66666666666667|14|014|| -0|35|3500|35000000|35000000000|491961600000|6.25|15|015|| -1|34|3400|34000000|34000000000|492048000000|5.88235294117647|16|016|| -0|33|3300|33000000|33000000000|492134400000|5.55555555555556|17|017|| -1|32|3200|32000000|32000000000|492220800000|5.26315789473684|18|018|| -0|31|3100|31000000|31000000000|492307200000|5.0|19|019|| -1|30|3000|30000000|30000000000|492393600000|4.76190476190476|20|020|| -0|29|2900|29000000|29000000000|492480000000|4.54545454545455|21|021|| -1|28|2800|28000000|28000000000|492566400000|4.34782608695652|22|022|| -0|27|2700|27000000|27000000000|492652800000|4.16666666666667|23|023|| -1|26|2600|26000000|26000000000|492739200000|4.0|24|024|| -0|25|2500|25000000|25000000000|492825600000|3.84615384615385|25|025|| -1|24|2400|24000000|24000000000|492912000000|3.7037037037037|26|026|| -0|23|2300|23000000|23000000000|492998400000|3.57142857142857|27|027|| -1|22|2200|22000000|22000000000|493084800000|3.44827586206897|28|028|| -0|21|2100|21000000|21000000000|493171200000|3.33333333333333|29|029|| -1|20|2000|20000000|20000000000|493257600000|3.2258064516129|30|030|| -0|19|1900|19000000|19000000000|493344000000|3.125|31|031|| -1|18|1800|18000000|18000000000|493430400000|3.03030303030303|32|032|| -0|17|1700|17000000|17000000000|493516800000|2.94117647058824|33|033||! -1|16|1600|16000000|16000000000|493603200000|2.85714285714286|34|034||" -0|15|1500|15000000|15000000000|493689600000|2.77777777777778|35|035||# -1|14|1400|14000000|14000000000|493776000000|2.7027027027027|36|036||$ -0|13|1300|13000000|13000000000|493862400000|2.63157894736842|37|037||% -1|12|1200|12000000|12000000000|493948800000|2.56410256410256|38|038||& -0|11|1100|11000000|11000000000|494035200000|2.5|39|039||' -1|10|1000|10000000|10000000000|494121600000|2.4390243902439|40|040||( -0|9|900|9000000|9000000000|494208000000|2.38095238095238|41|041||) -1|8|800|8000000|8000000000|494294400000|2.32558139534884|42|042||* -0|7|700|7000000|7000000000|494380800000|2.27272727272727|43|043||+ -1|6|600|6000000|6000000000|494467200000|2.22222222222222|44|044||, -0|5|500|5000000|5000000000|494553600000|2.17391304347826|45|045||- -1|4|400|4000000|4000000000|494640000000|2.12765957446809|46|046||. -0|3|300|3000000|3000000000|494726400000|2.08333333333333|47|047||/ -1|2|200|2000000|2000000000|494812800000|2.04081632653061|48|048||0 -0|1|100|1000000|1000000000|494899200000|2.0|49|049||1 -1|0|0|0|0|494985600000|1.96078431372549|50|050||2 -0|-1|-100|-1000000|-1000000000|495072000000|1.92307692307692|51|051||3 -1|-2|-200|-2000000|-2000000000|495158400000|1.88679245283019|52|052||4 -0|-3|-300|-3000000|-3000000000|495244800000|1.85185185185185|53|053||5 -1|-4|-400|-4000000|-4000000000|495331200000|1.81818181818182|54|054||6 -0|-5|-500|-5000000|-5000000000|495417600000|1.78571428571429|55|055||7 -1|-6|-600|-6000000|-6000000000|495504000000|1.75438596491228|56|056||8 -0|-7|-700|-7000000|-7000000000|495590400000|1.72413793103448|57|057||9 -1|-8|-800|-8000000|-8000000000|495676800000|1.69491525423729|58|058||: -0|-9|-900|-9000000|-9000000000|495763200000|1.66666666666667|59|059||; -1|-10|-1000|-10000000|-10000000000|495849600000|1.63934426229508|60|060||< -0|-11|-1100|-11000000|-11000000000|495936000000|1.61290322580645|61|061||= -1|-12|-1200|-12000000|-12000000000|496022400000|1.58730158730159|62|062||> -0|-13|-1300|-13000000|-13000000000|496108800000|1.5625|63|063||? -1|-14|-1400|-14000000|-14000000000|496195200000|1.53846153846154|64|064||@ -0|-15|-1500|-15000000|-15000000000|496281600000|1.51515151515152|65|065||A -1|-16|-1600|-16000000|-16000000000|496368000000|1.49253731343284|66|066||B -0|-17|-1700|-17000000|-17000000000|496454400000|1.47058823529412|67|067||C -1|-18|-1800|-18000000|-18000000000|496540800000|1.44927536231884|68|068||D -0|-19|-1900|-19000000|-19000000000|496627200000|1.42857142857143|69|069||E -1|-20|-2000|-20000000|-20000000000|496713600000|1.40845070422535|70|070||F -0|-21|-2100|-21000000|-21000000000|496800000000|1.38888888888889|71|071||G -1|-22|-2200|-22000000|-22000000000|496886400000|1.36986301369863|72|072||H -0|-23|-2300|-23000000|-23000000000|496972800000|1.35135135135135|73|073||I -1|-24|-2400|-24000000|-24000000000|497059200000|1.33333333333333|74|074||J -0|-25|-2500|-25000000|-25000000000|497145600000|1.31578947368421|75|075||K -1|-26|-2600|-26000000|-26000000000|497232000000|1.2987012987013|76|076||L -0|-27|-2700|-27000000|-27000000000|497318400000|1.28205128205128|77|077||M -1|-28|-2800|-28000000|-28000000000|497404800000|1.26582278481013|78|078||N -0|-29|-2900|-29000000|-29000000000|497491200000|1.25|79|079||O -1|-30|-3000|-30000000|-30000000000|497577600000|1.23456790123457|80|080||P -0|-31|-3100|-31000000|-31000000000|497664000000|1.21951219512195|81|081||Q -1|-32|-3200|-32000000|-32000000000|497750400000|1.20481927710843|82|082||R -0|-33|-3300|-33000000|-33000000000|497836800000|1.19047619047619|83|083||S -1|-34|-3400|-34000000|-34000000000|497923200000|1.17647058823529|84|084||T -0|-35|-3500|-35000000|-35000000000|498009600000|1.16279069767442|85|085||U -1|-36|-3600|-36000000|-36000000000|498096000000|1.14942528735632|86|086||V -0|-37|-3700|-37000000|-37000000000|498182400000|1.13636363636364|87|087||W -1|-38|-3800|-38000000|-38000000000|498268800000|1.12359550561798|88|088||X -0|-39|-3900|-39000000|-39000000000|498355200000|1.11111111111111|89|089||Y -1|-40|-4000|-40000000|-40000000000|498441600000|1.0989010989011|90|090||Z -0|-41|-4100|-41000000|-41000000000|498528000000|1.08695652173913|91|091||[ -1|-42|-4200|-42000000|-42000000000|498614400000|1.0752688172043|92|092||\ -0|-43|-4300|-43000000|-43000000000|498700800000|1.06382978723404|93|093||] -1|-44|-4400|-44000000|-44000000000|498787200000|1.05263157894737|94|094||^ -0|-45|-4500|-45000000|-45000000000|498873600000|1.04166666666667|95|095||_ -1|-46|-4600|-46000000|-46000000000|498960000000|1.03092783505155|96|096||` -0|-47|-4700|-47000000|-47000000000|499046400000|1.02040816326531|97|097||a -1|-48|-4800|-48000000|-48000000000|499132800000|1.01010101010101|98|098||b -0|-49|-4900|-49000000|-49000000000|499219200000|1.0|99|099||c +SELECT rowid, bool_0, int8_1, int16_2, int32_3, int64_4, datetime(ts_5 / 1000, 'unixepoch'), printf("%.4f", double_6) AS double_6, string_7, string_8, quote(binary_9), quote(binary_10) FROM test; +0|1|50|5000|50000000|50000000000|1985-07-20 00:00:00|100.0000|0|000|X'00'|X'00' +1|0|49|4900|49000000|49000000000|1985-07-21 00:00:00|50.0000|1|001|X'0101'|X'01' +2|1|48|4800|48000000|48000000000|1985-07-22 00:00:00|33.3333|2|002|X'020202'|X'02' +3|0|47|4700|47000000|47000000000|1985-07-23 00:00:00|25.0000|3|003|X'03030303'|X'03' +4|1|46|4600|46000000|46000000000|1985-07-24 00:00:00|20.0000|4|004|X'0404040404'|X'04' +5|0|45|4500|45000000|45000000000|1985-07-25 00:00:00|16.6667|5|005|X'05'|X'05' +6|1|44|4400|44000000|44000000000|1985-07-26 00:00:00|14.2857|6|006|X'0606'|X'06' +7|0|43|4300|43000000|43000000000|1985-07-27 00:00:00|12.5000|7|007|X'070707'|X'07' +8|1|42|4200|42000000|42000000000|1985-07-28 00:00:00|11.1111|8|008|X'08080808'|X'08' +9|0|41|4100|41000000|41000000000|1985-07-29 00:00:00|10.0000|9|009|X'0909090909'|X'09' +10|1|40|4000|40000000|40000000000|1985-07-30 00:00:00|9.0909|10|010|X'0A'|X'0A' +11|0|39|3900|39000000|39000000000|1985-07-31 00:00:00|8.3333|11|011|X'0B0B'|X'0B' +12|1|38|3800|38000000|38000000000|1985-08-01 00:00:00|7.6923|12|012|X'0C0C0C'|X'0C' +13|0|37|3700|37000000|37000000000|1985-08-02 00:00:00|7.1429|13|013|X'0D0D0D0D'|X'0D' +14|1|36|3600|36000000|36000000000|1985-08-03 00:00:00|6.6667|14|014|X'0E0E0E0E0E'|X'0E' +15|0|35|3500|35000000|35000000000|1985-08-04 00:00:00|6.2500|15|015|X'0F'|X'0F' +16|1|34|3400|34000000|34000000000|1985-08-05 00:00:00|5.8824|16|016|X'1010'|X'10' +17|0|33|3300|33000000|33000000000|1985-08-06 00:00:00|5.5556|17|017|X'111111'|X'11' +18|1|32|3200|32000000|32000000000|1985-08-07 00:00:00|5.2632|18|018|X'12121212'|X'12' +19|0|31|3100|31000000|31000000000|1985-08-08 00:00:00|5.0000|19|019|X'1313131313'|X'13' +20|1|30|3000|30000000|30000000000|1985-08-09 00:00:00|4.7619|20|020|X'14'|X'14' +21|0|29|2900|29000000|29000000000|1985-08-10 00:00:00|4.5455|21|021|X'1515'|X'15' +22|1|28|2800|28000000|28000000000|1985-08-11 00:00:00|4.3478|22|022|X'161616'|X'16' +23|0|27|2700|27000000|27000000000|1985-08-12 00:00:00|4.1667|23|023|X'17171717'|X'17' +24|1|26|2600|26000000|26000000000|1985-08-13 00:00:00|4.0000|24|024|X'1818181818'|X'18' +25|0|25|2500|25000000|25000000000|1985-08-14 00:00:00|3.8462|25|025|X'19'|X'19' +26|1|24|2400|24000000|24000000000|1985-08-15 00:00:00|3.7037|26|026|X'1A1A'|X'1A' +27|0|23|2300|23000000|23000000000|1985-08-16 00:00:00|3.5714|27|027|X'1B1B1B'|X'1B' +28|1|22|2200|22000000|22000000000|1985-08-17 00:00:00|3.4483|28|028|X'1C1C1C1C'|X'1C' +29|0|21|2100|21000000|21000000000|1985-08-18 00:00:00|3.3333|29|029|X'1D1D1D1D1D'|X'1D' +30|1|20|2000|20000000|20000000000|1985-08-19 00:00:00|3.2258|30|030|X'1E'|X'1E' +31|0|19|1900|19000000|19000000000|1985-08-20 00:00:00|3.1250|31|031|X'1F1F'|X'1F' +32|1|18|1800|18000000|18000000000|1985-08-21 00:00:00|3.0303|32|032|X'202020'|X'20' +33|0|17|1700|17000000|17000000000|1985-08-22 00:00:00|2.9412|33|033|X'21212121'|X'21' +34|1|16|1600|16000000|16000000000|1985-08-23 00:00:00|2.8571|34|034|X'2222222222'|X'22' +35|0|15|1500|15000000|15000000000|1985-08-24 00:00:00|2.7778|35|035|X'23'|X'23' +36|1|14|1400|14000000|14000000000|1985-08-25 00:00:00|2.7027|36|036|X'2424'|X'24' +37|0|13|1300|13000000|13000000000|1985-08-26 00:00:00|2.6316|37|037|X'252525'|X'25' +38|1|12|1200|12000000|12000000000|1985-08-27 00:00:00|2.5641|38|038|X'26262626'|X'26' +39|0|11|1100|11000000|11000000000|1985-08-28 00:00:00|2.5000|39|039|X'2727272727'|X'27' +40|1|10|1000|10000000|10000000000|1985-08-29 00:00:00|2.4390|40|040|X'28'|X'28' +41|0|9|900|9000000|9000000000|1985-08-30 00:00:00|2.3810|41|041|X'2929'|X'29' +42|1|8|800|8000000|8000000000|1985-08-31 00:00:00|2.3256|42|042|X'2A2A2A'|X'2A' +43|0|7|700|7000000|7000000000|1985-09-01 00:00:00|2.2727|43|043|X'2B2B2B2B'|X'2B' +44|1|6|600|6000000|6000000000|1985-09-02 00:00:00|2.2222|44|044|X'2C2C2C2C2C'|X'2C' +45|0|5|500|5000000|5000000000|1985-09-03 00:00:00|2.1739|45|045|X'2D'|X'2D' +46|1|4|400|4000000|4000000000|1985-09-04 00:00:00|2.1277|46|046|X'2E2E'|X'2E' +47|0|3|300|3000000|3000000000|1985-09-05 00:00:00|2.0833|47|047|X'2F2F2F'|X'2F' +48|1|2|200|2000000|2000000000|1985-09-06 00:00:00|2.0408|48|048|X'30303030'|X'30' +49|0|1|100|1000000|1000000000|1985-09-07 00:00:00|2.0000|49|049|X'3131313131'|X'31' +50|1|0|0|0|0|1985-09-08 00:00:00|1.9608|50|050|X'32'|X'32' +51|0|-1|-100|-1000000|-1000000000|1985-09-09 00:00:00|1.9231|51|051|X'3333'|X'33' +52|1|-2|-200|-2000000|-2000000000|1985-09-10 00:00:00|1.8868|52|052|X'343434'|X'34' +53|0|-3|-300|-3000000|-3000000000|1985-09-11 00:00:00|1.8519|53|053|X'35353535'|X'35' +54|1|-4|-400|-4000000|-4000000000|1985-09-12 00:00:00|1.8182|54|054|X'3636363636'|X'36' +55|0|-5|-500|-5000000|-5000000000|1985-09-13 00:00:00|1.7857|55|055|X'37'|X'37' +56|1|-6|-600|-6000000|-6000000000|1985-09-14 00:00:00|1.7544|56|056|X'3838'|X'38' +57|0|-7|-700|-7000000|-7000000000|1985-09-15 00:00:00|1.7241|57|057|X'393939'|X'39' +58|1|-8|-800|-8000000|-8000000000|1985-09-16 00:00:00|1.6949|58|058|X'3A3A3A3A'|X'3A' +59|0|-9|-900|-9000000|-9000000000|1985-09-17 00:00:00|1.6667|59|059|X'3B3B3B3B3B'|X'3B' +60|1|-10|-1000|-10000000|-10000000000|1985-09-18 00:00:00|1.6393|60|060|X'3C'|X'3C' +61|0|-11|-1100|-11000000|-11000000000|1985-09-19 00:00:00|1.6129|61|061|X'3D3D'|X'3D' +62|1|-12|-1200|-12000000|-12000000000|1985-09-20 00:00:00|1.5873|62|062|X'3E3E3E'|X'3E' +63|0|-13|-1300|-13000000|-13000000000|1985-09-21 00:00:00|1.5625|63|063|X'3F3F3F3F'|X'3F' +64|1|-14|-1400|-14000000|-14000000000|1985-09-22 00:00:00|1.5385|64|064|X'4040404040'|X'40' +65|0|-15|-1500|-15000000|-15000000000|1985-09-23 00:00:00|1.5152|65|065|X'41'|X'41' +66|1|-16|-1600|-16000000|-16000000000|1985-09-24 00:00:00|1.4925|66|066|X'4242'|X'42' +67|0|-17|-1700|-17000000|-17000000000|1985-09-25 00:00:00|1.4706|67|067|X'434343'|X'43' +68|1|-18|-1800|-18000000|-18000000000|1985-09-26 00:00:00|1.4493|68|068|X'44444444'|X'44' +69|0|-19|-1900|-19000000|-19000000000|1985-09-27 00:00:00|1.4286|69|069|X'4545454545'|X'45' +70|1|-20|-2000|-20000000|-20000000000|1985-09-28 00:00:00|1.4085|70|070|X'46'|X'46' +71|0|-21|-2100|-21000000|-21000000000|1985-09-29 00:00:00|1.3889|71|071|X'4747'|X'47' +72|1|-22|-2200|-22000000|-22000000000|1985-09-30 00:00:00|1.3699|72|072|X'484848'|X'48' +73|0|-23|-2300|-23000000|-23000000000|1985-10-01 00:00:00|1.3514|73|073|X'49494949'|X'49' +74|1|-24|-2400|-24000000|-24000000000|1985-10-02 00:00:00|1.3333|74|074|X'4A4A4A4A4A'|X'4A' +75|0|-25|-2500|-25000000|-25000000000|1985-10-03 00:00:00|1.3158|75|075|X'4B'|X'4B' +76|1|-26|-2600|-26000000|-26000000000|1985-10-04 00:00:00|1.2987|76|076|X'4C4C'|X'4C' +77|0|-27|-2700|-27000000|-27000000000|1985-10-05 00:00:00|1.2821|77|077|X'4D4D4D'|X'4D' +78|1|-28|-2800|-28000000|-28000000000|1985-10-06 00:00:00|1.2658|78|078|X'4E4E4E4E'|X'4E' +79|0|-29|-2900|-29000000|-29000000000|1985-10-07 00:00:00|1.2500|79|079|X'4F4F4F4F4F'|X'4F' +80|1|-30|-3000|-30000000|-30000000000|1985-10-08 00:00:00|1.2346|80|080|X'50'|X'50' +81|0|-31|-3100|-31000000|-31000000000|1985-10-09 00:00:00|1.2195|81|081|X'5151'|X'51' +82|1|-32|-3200|-32000000|-32000000000|1985-10-10 00:00:00|1.2048|82|082|X'525252'|X'52' +83|0|-33|-3300|-33000000|-33000000000|1985-10-11 00:00:00|1.1905|83|083|X'53535353'|X'53' +84|1|-34|-3400|-34000000|-34000000000|1985-10-12 00:00:00|1.1765|84|084|X'5454545454'|X'54' +85|0|-35|-3500|-35000000|-35000000000|1985-10-13 00:00:00|1.1628|85|085|X'55'|X'55' +86|1|-36|-3600|-36000000|-36000000000|1985-10-14 00:00:00|1.1494|86|086|X'5656'|X'56' +87|0|-37|-3700|-37000000|-37000000000|1985-10-15 00:00:00|1.1364|87|087|X'575757'|X'57' +88|1|-38|-3800|-38000000|-38000000000|1985-10-16 00:00:00|1.1236|88|088|X'58585858'|X'58' +89|0|-39|-3900|-39000000|-39000000000|1985-10-17 00:00:00|1.1111|89|089|X'5959595959'|X'59' +90|1|-40|-4000|-40000000|-40000000000|1985-10-18 00:00:00|1.0989|90|090|X'5A'|X'5A' +91|0|-41|-4100|-41000000|-41000000000|1985-10-19 00:00:00|1.0870|91|091|X'5B5B'|X'5B' +92|1|-42|-4200|-42000000|-42000000000|1985-10-20 00:00:00|1.0753|92|092|X'5C5C5C'|X'5C' +93|0|-43|-4300|-43000000|-43000000000|1985-10-21 00:00:00|1.0638|93|093|X'5D5D5D5D'|X'5D' +94|1|-44|-4400|-44000000|-44000000000|1985-10-22 00:00:00|1.0526|94|094|X'5E5E5E5E5E'|X'5E' +95|0|-45|-4500|-45000000|-45000000000|1985-10-23 00:00:00|1.0417|95|095|X'5F'|X'5F' +96|1|-46|-4600|-46000000|-46000000000|1985-10-24 00:00:00|1.0309|96|096|X'6060'|X'60' +97|0|-47|-4700|-47000000|-47000000000|1985-10-25 00:00:00|1.0204|97|097|X'616161'|X'61' +98|1|-48|-4800|-48000000|-48000000000|1985-10-26 00:00:00|1.0101|98|098|X'62626262'|X'62' +99|0|-49|-4900|-49000000|-49000000000|1985-10-27 00:00:00|1.0000|99|099|X'6363636363'|X'63'