You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@datafusion.apache.org by al...@apache.org on 2025/08/13 15:57:22 UTC
(datafusion-testing) branch main updated: Update tests due to new simplification rules (#10)
This is an automated email from the ASF dual-hosted git repository.
alamb pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/datafusion-testing.git
The following commit(s) were added to refs/heads/main by this push:
new aed98a3 Update tests due to new simplification rules (#10)
aed98a3 is described below
commit aed98a3bd7b7b9dc82da514ec876e8fe6fa7e10e
Author: Andrew Lamb <an...@nerdnetworks.org>
AuthorDate: Wed Aug 13 08:57:07 2025 -0700
Update tests due to new simplification rules (#10)
* Update for new error messages
* Update tests due to new simplification rules
* Update with latest
* Updates for latest main
---
data/sqlite/index/between/1/slt_good_0.slt | 20 +--
data/sqlite/index/between/10/slt_good_1.slt | 20 +--
data/sqlite/index/between/100/slt_good_0.slt | 20 +--
data/sqlite/index/between/100/slt_good_1.slt | 20 +--
data/sqlite/index/between/100/slt_good_2.slt | 60 +++----
data/sqlite/index/between/100/slt_good_4.slt | 20 +--
data/sqlite/index/commute/10/slt_good_14.slt | 20 +--
data/sqlite/index/in/10/slt_good_0.slt | 30 ++--
data/sqlite/index/in/10/slt_good_1.slt | 30 ++--
data/sqlite/index/in/10/slt_good_2.slt | 40 ++---
data/sqlite/index/in/10/slt_good_4.slt | 30 ++--
data/sqlite/index/in/100/slt_good_0.slt | 30 ++--
data/sqlite/index/in/100/slt_good_3.slt | 30 ++--
data/sqlite/index/in/1000/slt_good_1.slt | 60 +++----
data/sqlite/index/orderby_nosort/10/slt_good_4.slt | 120 +++++++-------
data/sqlite/index/random/10/slt_good_4.slt | 35 +++--
data/sqlite/random/aggregates/slt_good_0.slt | 18 ++-
data/sqlite/random/aggregates/slt_good_1.slt | 4 +-
data/sqlite/random/aggregates/slt_good_100.slt | 20 ++-
data/sqlite/random/aggregates/slt_good_101.slt | 9 +-
data/sqlite/random/aggregates/slt_good_102.slt | 20 ++-
data/sqlite/random/aggregates/slt_good_103.slt | 35 +++--
data/sqlite/random/aggregates/slt_good_104.slt | 18 ++-
data/sqlite/random/aggregates/slt_good_105.slt | 9 +-
data/sqlite/random/aggregates/slt_good_106.slt | 20 ++-
data/sqlite/random/aggregates/slt_good_107.slt | 9 +-
data/sqlite/random/aggregates/slt_good_109.slt | 24 +--
data/sqlite/random/aggregates/slt_good_11.slt | 17 +-
data/sqlite/random/aggregates/slt_good_110.slt | 9 +-
data/sqlite/random/aggregates/slt_good_111.slt | 18 ++-
data/sqlite/random/aggregates/slt_good_112.slt | 27 ++--
data/sqlite/random/aggregates/slt_good_113.slt | 18 ++-
data/sqlite/random/aggregates/slt_good_114.slt | 18 ++-
data/sqlite/random/aggregates/slt_good_115.slt | 9 +-
data/sqlite/random/aggregates/slt_good_116.slt | 9 +-
data/sqlite/random/aggregates/slt_good_117.slt | 15 +-
data/sqlite/random/aggregates/slt_good_118.slt | 38 +++--
data/sqlite/random/aggregates/slt_good_119.slt | 9 +-
data/sqlite/random/aggregates/slt_good_120.slt | 9 +-
data/sqlite/random/aggregates/slt_good_122.slt | 9 +-
data/sqlite/random/aggregates/slt_good_123.slt | 15 +-
data/sqlite/random/aggregates/slt_good_124.slt | 28 ++--
data/sqlite/random/aggregates/slt_good_125.slt | 9 +-
data/sqlite/random/aggregates/slt_good_127.slt | 8 +-
data/sqlite/random/aggregates/slt_good_128.slt | 9 +-
data/sqlite/random/aggregates/slt_good_13.slt | 9 +-
data/sqlite/random/aggregates/slt_good_15.slt | 18 ++-
data/sqlite/random/aggregates/slt_good_16.slt | 27 ++--
data/sqlite/random/aggregates/slt_good_17.slt | 9 +-
data/sqlite/random/aggregates/slt_good_18.slt | 4 +-
data/sqlite/random/aggregates/slt_good_19.slt | 18 ++-
data/sqlite/random/aggregates/slt_good_21.slt | 15 +-
data/sqlite/random/aggregates/slt_good_23.slt | 18 ++-
data/sqlite/random/aggregates/slt_good_24.slt | 9 +-
data/sqlite/random/aggregates/slt_good_25.slt | 42 +++--
data/sqlite/random/aggregates/slt_good_26.slt | 9 +-
data/sqlite/random/aggregates/slt_good_27.slt | 9 +-
data/sqlite/random/aggregates/slt_good_29.slt | 18 ++-
data/sqlite/random/aggregates/slt_good_30.slt | 18 ++-
data/sqlite/random/aggregates/slt_good_31.slt | 15 +-
data/sqlite/random/aggregates/slt_good_32.slt | 9 +-
data/sqlite/random/aggregates/slt_good_33.slt | 9 +-
data/sqlite/random/aggregates/slt_good_34.slt | 4 +-
data/sqlite/random/aggregates/slt_good_35.slt | 22 ++-
data/sqlite/random/aggregates/slt_good_38.slt | 15 +-
data/sqlite/random/aggregates/slt_good_39.slt | 18 ++-
data/sqlite/random/aggregates/slt_good_4.slt | 18 ++-
data/sqlite/random/aggregates/slt_good_42.slt | 9 +-
data/sqlite/random/aggregates/slt_good_44.slt | 9 +-
data/sqlite/random/aggregates/slt_good_45.slt | 9 +-
data/sqlite/random/aggregates/slt_good_46.slt | 36 +++--
data/sqlite/random/aggregates/slt_good_48.slt | 18 ++-
data/sqlite/random/aggregates/slt_good_49.slt | 9 +-
data/sqlite/random/aggregates/slt_good_5.slt | 29 ++--
data/sqlite/random/aggregates/slt_good_52.slt | 9 +-
data/sqlite/random/aggregates/slt_good_53.slt | 13 +-
data/sqlite/random/aggregates/slt_good_54.slt | 36 +++--
data/sqlite/random/aggregates/slt_good_55.slt | 9 +-
data/sqlite/random/aggregates/slt_good_56.slt | 9 +-
data/sqlite/random/aggregates/slt_good_57.slt | 9 +-
data/sqlite/random/aggregates/slt_good_59.slt | 9 +-
data/sqlite/random/aggregates/slt_good_60.slt | 11 +-
data/sqlite/random/aggregates/slt_good_61.slt | 20 ++-
data/sqlite/random/aggregates/slt_good_62.slt | 29 ++--
data/sqlite/random/aggregates/slt_good_63.slt | 9 +-
data/sqlite/random/aggregates/slt_good_64.slt | 6 +-
data/sqlite/random/aggregates/slt_good_65.slt | 13 +-
data/sqlite/random/aggregates/slt_good_66.slt | 9 +-
data/sqlite/random/aggregates/slt_good_68.slt | 9 +-
data/sqlite/random/aggregates/slt_good_69.slt | 9 +-
data/sqlite/random/aggregates/slt_good_7.slt | 4 +-
data/sqlite/random/aggregates/slt_good_70.slt | 19 +--
data/sqlite/random/aggregates/slt_good_71.slt | 9 +-
data/sqlite/random/aggregates/slt_good_72.slt | 48 +++---
data/sqlite/random/aggregates/slt_good_73.slt | 24 +--
data/sqlite/random/aggregates/slt_good_74.slt | 18 ++-
data/sqlite/random/aggregates/slt_good_75.slt | 18 ++-
data/sqlite/random/aggregates/slt_good_77.slt | 9 +-
data/sqlite/random/aggregates/slt_good_78.slt | 18 ++-
data/sqlite/random/aggregates/slt_good_79.slt | 4 +-
data/sqlite/random/aggregates/slt_good_80.slt | 18 ++-
data/sqlite/random/aggregates/slt_good_81.slt | 35 +++--
data/sqlite/random/aggregates/slt_good_83.slt | 9 +-
data/sqlite/random/aggregates/slt_good_85.slt | 18 ++-
data/sqlite/random/aggregates/slt_good_86.slt | 9 +-
data/sqlite/random/aggregates/slt_good_87.slt | 18 ++-
data/sqlite/random/aggregates/slt_good_88.slt | 9 +-
data/sqlite/random/aggregates/slt_good_89.slt | 13 +-
data/sqlite/random/aggregates/slt_good_90.slt | 9 +-
data/sqlite/random/aggregates/slt_good_91.slt | 4 +-
data/sqlite/random/aggregates/slt_good_92.slt | 38 +++--
data/sqlite/random/aggregates/slt_good_93.slt | 26 ++--
data/sqlite/random/aggregates/slt_good_94.slt | 27 ++--
data/sqlite/random/aggregates/slt_good_95.slt | 9 +-
data/sqlite/random/aggregates/slt_good_96.slt | 27 ++--
data/sqlite/random/aggregates/slt_good_97.slt | 22 ++-
data/sqlite/random/aggregates/slt_good_98.slt | 36 +++--
data/sqlite/random/aggregates/slt_good_99.slt | 15 +-
data/sqlite/random/expr/slt_good_0.slt | 85 ++++++----
data/sqlite/random/expr/slt_good_1.slt | 18 ++-
data/sqlite/random/expr/slt_good_10.slt | 117 +++++++++-----
data/sqlite/random/expr/slt_good_100.slt | 66 ++++----
data/sqlite/random/expr/slt_good_101.slt | 98 ++++++++----
data/sqlite/random/expr/slt_good_102.slt | 123 +++++++++------
data/sqlite/random/expr/slt_good_103.slt | 88 +++++++----
data/sqlite/random/expr/slt_good_104.slt | 122 +++++++++------
data/sqlite/random/expr/slt_good_105.slt | 118 +++++++++-----
data/sqlite/random/expr/slt_good_106.slt | 53 ++++---
data/sqlite/random/expr/slt_good_107.slt | 92 +++++++----
data/sqlite/random/expr/slt_good_108.slt | 89 +++++++----
data/sqlite/random/expr/slt_good_109.slt | 85 ++++++----
data/sqlite/random/expr/slt_good_11.slt | 74 ++++++---
data/sqlite/random/expr/slt_good_110.slt | 124 +++++++++------
data/sqlite/random/expr/slt_good_111.slt | 88 +++++++----
data/sqlite/random/expr/slt_good_112.slt | 75 +++++----
data/sqlite/random/expr/slt_good_113.slt | 117 +++++++++-----
data/sqlite/random/expr/slt_good_114.slt | 63 +++++---
data/sqlite/random/expr/slt_good_115.slt | 146 ++++++++++-------
data/sqlite/random/expr/slt_good_116.slt | 80 ++++++----
data/sqlite/random/expr/slt_good_117.slt | 131 ++++++++++------
data/sqlite/random/expr/slt_good_118.slt | 62 +++++---
data/sqlite/random/expr/slt_good_119.slt | 56 ++++---
data/sqlite/random/expr/slt_good_12.slt | 144 +++++++++++------
data/sqlite/random/expr/slt_good_13.slt | 71 ++++++---
data/sqlite/random/expr/slt_good_14.slt | 86 +++++++----
data/sqlite/random/expr/slt_good_15.slt | 157 ++++++++++++-------
data/sqlite/random/expr/slt_good_16.slt | 73 +++++----
data/sqlite/random/expr/slt_good_17.slt | 76 +++++----
data/sqlite/random/expr/slt_good_18.slt | 104 ++++++++-----
data/sqlite/random/expr/slt_good_19.slt | 118 +++++++++-----
data/sqlite/random/expr/slt_good_2.slt | 68 +++++---
data/sqlite/random/expr/slt_good_20.slt | 18 ++-
data/sqlite/random/expr/slt_good_21.slt | 85 ++++++----
data/sqlite/random/expr/slt_good_22.slt | 63 +++++---
data/sqlite/random/expr/slt_good_23.slt | 84 ++++++----
data/sqlite/random/expr/slt_good_24.slt | 38 +++--
data/sqlite/random/expr/slt_good_25.slt | 123 ++++++++++-----
data/sqlite/random/expr/slt_good_26.slt | 36 +++--
data/sqlite/random/expr/slt_good_27.slt | 114 +++++++++-----
data/sqlite/random/expr/slt_good_28.slt | 112 +++++++++-----
data/sqlite/random/expr/slt_good_29.slt | 77 +++++----
data/sqlite/random/expr/slt_good_3.slt | 51 +++---
data/sqlite/random/expr/slt_good_30.slt | 38 +++--
data/sqlite/random/expr/slt_good_31.slt | 96 ++++++++----
data/sqlite/random/expr/slt_good_32.slt | 54 ++++---
data/sqlite/random/expr/slt_good_33.slt | 54 ++++---
data/sqlite/random/expr/slt_good_34.slt | 88 +++++++----
data/sqlite/random/expr/slt_good_35.slt | 90 ++++++-----
data/sqlite/random/expr/slt_good_36.slt | 90 +++++++----
data/sqlite/random/expr/slt_good_37.slt | 126 +++++++++------
data/sqlite/random/expr/slt_good_38.slt | 27 ++--
data/sqlite/random/expr/slt_good_39.slt | 80 ++++++----
data/sqlite/random/expr/slt_good_4.slt | 90 +++++++----
data/sqlite/random/expr/slt_good_40.slt | 107 ++++++++-----
data/sqlite/random/expr/slt_good_41.slt | 88 +++++++----
data/sqlite/random/expr/slt_good_42.slt | 99 ++++++++----
data/sqlite/random/expr/slt_good_43.slt | 36 +++--
data/sqlite/random/expr/slt_good_44.slt | 33 ++--
data/sqlite/random/expr/slt_good_45.slt | 82 ++++++----
data/sqlite/random/expr/slt_good_46.slt | 110 ++++++++-----
data/sqlite/random/expr/slt_good_47.slt | 149 +++++++++++-------
data/sqlite/random/expr/slt_good_48.slt | 80 ++++++----
data/sqlite/random/expr/slt_good_49.slt | 137 ++++++++++------
data/sqlite/random/expr/slt_good_5.slt | 78 ++++++----
data/sqlite/random/expr/slt_good_50.slt | 68 +++++---
data/sqlite/random/expr/slt_good_51.slt | 100 +++++++-----
data/sqlite/random/expr/slt_good_52.slt | 45 +++---
data/sqlite/random/expr/slt_good_53.slt | 37 +++--
data/sqlite/random/expr/slt_good_54.slt | 27 ++--
data/sqlite/random/expr/slt_good_55.slt | 87 +++++++----
data/sqlite/random/expr/slt_good_56.slt | 138 +++++++++++------
data/sqlite/random/expr/slt_good_57.slt | 62 +++++---
data/sqlite/random/expr/slt_good_58.slt | 54 ++++---
data/sqlite/random/expr/slt_good_59.slt | 35 +++--
data/sqlite/random/expr/slt_good_6.slt | 140 +++++++++++------
data/sqlite/random/expr/slt_good_60.slt | 94 +++++++----
data/sqlite/random/expr/slt_good_61.slt | 74 ++++++---
data/sqlite/random/expr/slt_good_62.slt | 64 +++++---
data/sqlite/random/expr/slt_good_63.slt | 125 +++++++++------
data/sqlite/random/expr/slt_good_64.slt | 101 ++++++++----
data/sqlite/random/expr/slt_good_65.slt | 45 ++++--
data/sqlite/random/expr/slt_good_66.slt | 172 +++++++++++++--------
data/sqlite/random/expr/slt_good_67.slt | 63 +++++---
data/sqlite/random/expr/slt_good_68.slt | 77 +++++----
data/sqlite/random/expr/slt_good_69.slt | 62 +++++---
data/sqlite/random/expr/slt_good_7.slt | 108 ++++++++-----
data/sqlite/random/expr/slt_good_70.slt | 123 ++++++++++-----
data/sqlite/random/expr/slt_good_71.slt | 114 +++++++++-----
data/sqlite/random/expr/slt_good_72.slt | 74 +++++----
data/sqlite/random/expr/slt_good_73.slt | 107 ++++++++-----
data/sqlite/random/expr/slt_good_74.slt | 125 +++++++++------
data/sqlite/random/expr/slt_good_75.slt | 92 +++++++----
data/sqlite/random/expr/slt_good_76.slt | 42 +++--
data/sqlite/random/expr/slt_good_77.slt | 105 ++++++++-----
data/sqlite/random/expr/slt_good_78.slt | 72 ++++++---
data/sqlite/random/expr/slt_good_79.slt | 60 ++++---
data/sqlite/random/expr/slt_good_8.slt | 94 +++++++----
data/sqlite/random/expr/slt_good_80.slt | 57 ++++---
data/sqlite/random/expr/slt_good_81.slt | 45 ++++--
data/sqlite/random/expr/slt_good_82.slt | 36 +++--
data/sqlite/random/expr/slt_good_83.slt | 84 ++++++----
data/sqlite/random/expr/slt_good_84.slt | 128 +++++++++------
data/sqlite/random/expr/slt_good_85.slt | 49 ++++--
data/sqlite/random/expr/slt_good_86.slt | 92 +++++++----
data/sqlite/random/expr/slt_good_87.slt | 18 ++-
data/sqlite/random/expr/slt_good_88.slt | 81 ++++++----
data/sqlite/random/expr/slt_good_89.slt | 85 ++++++----
data/sqlite/random/expr/slt_good_9.slt | 67 +++++---
data/sqlite/random/expr/slt_good_90.slt | 69 ++++++---
data/sqlite/random/expr/slt_good_91.slt | 130 ++++++++++------
data/sqlite/random/expr/slt_good_92.slt | 79 ++++++----
data/sqlite/random/expr/slt_good_93.slt | 89 +++++++----
data/sqlite/random/expr/slt_good_94.slt | 93 +++++++----
data/sqlite/random/expr/slt_good_95.slt | 102 ++++++++----
data/sqlite/random/expr/slt_good_96.slt | 75 +++++----
data/sqlite/random/expr/slt_good_97.slt | 141 +++++++++++------
data/sqlite/random/expr/slt_good_98.slt | 36 +++--
data/sqlite/random/expr/slt_good_99.slt | 71 ++++++---
data/sqlite/random/groupby/slt_good_11.slt | 4 +-
data/sqlite/random/groupby/slt_good_12.slt | 28 ++--
data/sqlite/random/groupby/slt_good_7.slt | 4 +-
241 files changed, 7891 insertions(+), 4477 deletions(-)
diff --git a/data/sqlite/index/between/1/slt_good_0.slt b/data/sqlite/index/between/1/slt_good_0.slt
index 8a323c9..5b789e8 100644
--- a/data/sqlite/index/between/1/slt_good_0.slt
+++ b/data/sqlite/index/between/1/slt_good_0.slt
@@ -38471,52 +38471,52 @@ SELECT pk FROM tab4 WHERE ((col0 >= 2 AND col0 <= 6)) OR ((col3 < 7 AND (col1 IN
# Datafusion - Datafusion expected results:
# Datafusion - Expected - 0
-query error DataFusion error: SQL error: RecursionLimitExceeded
+query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
SELECT pk FROM tab0 WHERE (col0 >= 6 AND (col3 = 8) OR ((col1 = 6.8 OR col0 >= 1 OR (((col4 < 8.93 OR col0 >= 4)) AND ((col1 < 4.47)) AND (col0 < 9) OR ((col1 IS NULL)) AND col4 >= 8.99))) AND ((((((col3 > 4 AND col4 >= 5.52) OR (col0 <= 1 AND ((col3 >= 8)))) AND col4 <= 5.23)) AND col0 = 8) AND (col3 IN (6,4,0,4)) AND col3 IS NULL AND col3 < 0 OR (col3 >= 5 OR ((col3 = 5 OR col0 < 3 AND (((col1 > 0.83 OR col0 = 8 OR (col0 >= 2) AND col1 = 4.5 OR col4 = 1.70 AND (col3 = 1) OR (col0 < 1 A [...]
# Datafusion - Datafusion expected results:
# Datafusion - Expected - 0
-query error DataFusion error: SQL error: RecursionLimitExceeded
+query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
SELECT pk FROM tab0 WHERE (col0 >= 6 AND (col3 = 8) OR ((col1 = 6.8 OR col0 >= 1 OR (((col4 < 8.93 OR col0 >= 4)) AND ((col1 < 4.47)) AND (col0 < 9) OR ((col1 IS NULL)) AND col4 >= 8.99))) AND ((((((col3 > 4 AND col4 >= 5.52) OR (col0 <= 1 AND ((col3 >= 8)))) AND col4 <= 5.23)) AND col0 = 8) AND (col3 IN (6,4,0,4)) AND col3 IS NULL AND col3 < 0 OR (col3 >= 5 OR ((col3 = 5 OR col0 < 3 AND (((col1 > 0.83 OR col0 = 8 OR (col0 >= 2) AND col1 = 4.5 OR col4 = 1.70 AND (col3 = 1) OR (col0 < 1 A [...]
# Datafusion - Datafusion expected results:
# Datafusion - Expected - 0
-query error DataFusion error: SQL error: RecursionLimitExceeded
+query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
SELECT pk FROM tab1 WHERE (col0 >= 6 AND (col3 = 8) OR ((col1 = 6.8 OR col0 >= 1 OR (((col4 < 8.93 OR col0 >= 4)) AND ((col1 < 4.47)) AND (col0 < 9) OR ((col1 IS NULL)) AND col4 >= 8.99))) AND ((((((col3 > 4 AND col4 >= 5.52) OR (col0 <= 1 AND ((col3 >= 8)))) AND col4 <= 5.23)) AND col0 = 8) AND (col3 IN (6,4,0,4)) AND col3 IS NULL AND col3 < 0 OR (col3 >= 5 OR ((col3 = 5 OR col0 < 3 AND (((col1 > 0.83 OR col0 = 8 OR (col0 >= 2) AND col1 = 4.5 OR col4 = 1.70 AND (col3 = 1) OR (col0 < 1 A [...]
# Datafusion - Datafusion expected results:
# Datafusion - Expected - 0
-query error DataFusion error: SQL error: RecursionLimitExceeded
+query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
SELECT pk FROM tab1 WHERE (col0 >= 6 AND (col3 = 8) OR ((col1 = 6.8 OR col0 >= 1 OR (((col4 < 8.93 OR col0 >= 4)) AND ((col1 < 4.47)) AND (col0 < 9) OR ((col1 IS NULL)) AND col4 >= 8.99))) AND ((((((col3 > 4 AND col4 >= 5.52) OR (col0 <= 1 AND ((col3 >= 8)))) AND col4 <= 5.23)) AND col0 = 8) AND (col3 IN (6,4,0,4)) AND col3 IS NULL AND col3 < 0 OR (col3 >= 5 OR ((col3 = 5 OR col0 < 3 AND (((col1 > 0.83 OR col0 = 8 OR (col0 >= 2) AND col1 = 4.5 OR col4 = 1.70 AND (col3 = 1) OR (col0 < 1 A [...]
# Datafusion - Datafusion expected results:
# Datafusion - Expected - 0
-query error DataFusion error: SQL error: RecursionLimitExceeded
+query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
SELECT pk FROM tab2 WHERE (col0 >= 6 AND (col3 = 8) OR ((col1 = 6.8 OR col0 >= 1 OR (((col4 < 8.93 OR col0 >= 4)) AND ((col1 < 4.47)) AND (col0 < 9) OR ((col1 IS NULL)) AND col4 >= 8.99))) AND ((((((col3 > 4 AND col4 >= 5.52) OR (col0 <= 1 AND ((col3 >= 8)))) AND col4 <= 5.23)) AND col0 = 8) AND (col3 IN (6,4,0,4)) AND col3 IS NULL AND col3 < 0 OR (col3 >= 5 OR ((col3 = 5 OR col0 < 3 AND (((col1 > 0.83 OR col0 = 8 OR (col0 >= 2) AND col1 = 4.5 OR col4 = 1.70 AND (col3 = 1) OR (col0 < 1 A [...]
# Datafusion - Datafusion expected results:
# Datafusion - Expected - 0
-query error DataFusion error: SQL error: RecursionLimitExceeded
+query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
SELECT pk FROM tab2 WHERE (col0 >= 6 AND (col3 = 8) OR ((col1 = 6.8 OR col0 >= 1 OR (((col4 < 8.93 OR col0 >= 4)) AND ((col1 < 4.47)) AND (col0 < 9) OR ((col1 IS NULL)) AND col4 >= 8.99))) AND ((((((col3 > 4 AND col4 >= 5.52) OR (col0 <= 1 AND ((col3 >= 8)))) AND col4 <= 5.23)) AND col0 = 8) AND (col3 IN (6,4,0,4)) AND col3 IS NULL AND col3 < 0 OR (col3 >= 5 OR ((col3 = 5 OR col0 < 3 AND (((col1 > 0.83 OR col0 = 8 OR (col0 >= 2) AND col1 = 4.5 OR col4 = 1.70 AND (col3 = 1) OR (col0 < 1 A [...]
# Datafusion - Datafusion expected results:
# Datafusion - Expected - 0
-query error DataFusion error: SQL error: RecursionLimitExceeded
+query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
SELECT pk FROM tab3 WHERE (col0 >= 6 AND (col3 = 8) OR ((col1 = 6.8 OR col0 >= 1 OR (((col4 < 8.93 OR col0 >= 4)) AND ((col1 < 4.47)) AND (col0 < 9) OR ((col1 IS NULL)) AND col4 >= 8.99))) AND ((((((col3 > 4 AND col4 >= 5.52) OR (col0 <= 1 AND ((col3 >= 8)))) AND col4 <= 5.23)) AND col0 = 8) AND (col3 IN (6,4,0,4)) AND col3 IS NULL AND col3 < 0 OR (col3 >= 5 OR ((col3 = 5 OR col0 < 3 AND (((col1 > 0.83 OR col0 = 8 OR (col0 >= 2) AND col1 = 4.5 OR col4 = 1.70 AND (col3 = 1) OR (col0 < 1 A [...]
# Datafusion - Datafusion expected results:
# Datafusion - Expected - 0
-query error DataFusion error: SQL error: RecursionLimitExceeded
+query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
SELECT pk FROM tab3 WHERE (col0 >= 6 AND (col3 = 8) OR ((col1 = 6.8 OR col0 >= 1 OR (((col4 < 8.93 OR col0 >= 4)) AND ((col1 < 4.47)) AND (col0 < 9) OR ((col1 IS NULL)) AND col4 >= 8.99))) AND ((((((col3 > 4 AND col4 >= 5.52) OR (col0 <= 1 AND ((col3 >= 8)))) AND col4 <= 5.23)) AND col0 = 8) AND (col3 IN (6,4,0,4)) AND col3 IS NULL AND col3 < 0 OR (col3 >= 5 OR ((col3 = 5 OR col0 < 3 AND (((col1 > 0.83 OR col0 = 8 OR (col0 >= 2) AND col1 = 4.5 OR col4 = 1.70 AND (col3 = 1) OR (col0 < 1 A [...]
# Datafusion - Datafusion expected results:
# Datafusion - Expected - 0
-query error DataFusion error: SQL error: RecursionLimitExceeded
+query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
SELECT pk FROM tab4 WHERE (col0 >= 6 AND (col3 = 8) OR ((col1 = 6.8 OR col0 >= 1 OR (((col4 < 8.93 OR col0 >= 4)) AND ((col1 < 4.47)) AND (col0 < 9) OR ((col1 IS NULL)) AND col4 >= 8.99))) AND ((((((col3 > 4 AND col4 >= 5.52) OR (col0 <= 1 AND ((col3 >= 8)))) AND col4 <= 5.23)) AND col0 = 8) AND (col3 IN (6,4,0,4)) AND col3 IS NULL AND col3 < 0 OR (col3 >= 5 OR ((col3 = 5 OR col0 < 3 AND (((col1 > 0.83 OR col0 = 8 OR (col0 >= 2) AND col1 = 4.5 OR col4 = 1.70 AND (col3 = 1) OR (col0 < 1 A [...]
# Datafusion - Datafusion expected results:
# Datafusion - Expected - 0
-query error DataFusion error: SQL error: RecursionLimitExceeded
+query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
SELECT pk FROM tab4 WHERE (col0 >= 6 AND (col3 = 8) OR ((col1 = 6.8 OR col0 >= 1 OR (((col4 < 8.93 OR col0 >= 4)) AND ((col1 < 4.47)) AND (col0 < 9) OR ((col1 IS NULL)) AND col4 >= 8.99))) AND ((((((col3 > 4 AND col4 >= 5.52) OR (col0 <= 1 AND ((col3 >= 8)))) AND col4 <= 5.23)) AND col0 = 8) AND (col3 IN (6,4,0,4)) AND col3 IS NULL AND col3 < 0 OR (col3 >= 5 OR ((col3 = 5 OR col0 < 3 AND (((col1 > 0.83 OR col0 = 8 OR (col0 >= 2) AND col1 = 4.5 OR col4 = 1.70 AND (col3 = 1) OR (col0 < 1 A [...]
query I rowsort label-8710
diff --git a/data/sqlite/index/between/10/slt_good_1.slt b/data/sqlite/index/between/10/slt_good_1.slt
index 71d8709..7f31fdb 100644
--- a/data/sqlite/index/between/10/slt_good_1.slt
+++ b/data/sqlite/index/between/10/slt_good_1.slt
@@ -23770,52 +23770,52 @@ SELECT pk FROM tab4 WHERE ((((col3 >= 35 AND col3 >= 64 AND col0 < 64 OR col0 <
# Datafusion - Datafusion expected results:
# Datafusion - Expected - 10 values hashing to e20b902b49a98b1a05ed62804c757f94
-query error DataFusion error: SQL error: RecursionLimitExceeded
+query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
SELECT pk FROM tab0 WHERE ((col1 = 76.82) OR (col1 = 27.86) AND col3 = 47 AND (((col3 <= 62 OR col1 = 60.74 OR col1 = 81.45 AND ((col4 BETWEEN 41.46 AND 13.57)) AND col0 IN (60,77,45,0) AND (col3 IS NULL)) AND col0 = 50) OR col4 > 59.92 AND (col0 < 3) OR col3 < 7 AND (col3 < 60) AND (col4 > 4.79 OR col0 > 62 AND col4 IS NULL OR ((col1 >= 42.35) OR ((col3 < 48)) OR col3 > 53) AND col3 IS NULL AND col3 < 54 AND (col0 IN (79,1,6)) AND (col3 < 13) OR col3 < 25) AND ((((col3 >= 9))) AND col4 [...]
# Datafusion - Datafusion expected results:
# Datafusion - Expected - 10 values hashing to e20b902b49a98b1a05ed62804c757f94
-query error DataFusion error: SQL error: RecursionLimitExceeded
+query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
SELECT pk FROM tab0 WHERE ((col1 = 76.82) OR (col1 = 27.86) AND col3 = 47 AND (((col3 <= 62 OR col1 = 60.74 OR col1 = 81.45 AND ((( col4 >= 41.46 AND col4 <= 13.57))) AND col0 IN (60,77,45,0) AND (col3 IS NULL)) AND col0 = 50) OR col4 > 59.92 AND (col0 < 3) OR col3 < 7 AND (col3 < 60) AND (col4 > 4.79 OR col0 > 62 AND col4 IS NULL OR ((col1 >= 42.35) OR ((col3 < 48)) OR col3 > 53) AND col3 IS NULL AND col3 < 54 AND (col0 IN (79,1,6)) AND (col3 < 13) OR col3 < 25) AND ((((col3 >= 9))) AND [...]
# Datafusion - Datafusion expected results:
# Datafusion - Expected - 10 values hashing to e20b902b49a98b1a05ed62804c757f94
-query error DataFusion error: SQL error: RecursionLimitExceeded
+query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
SELECT pk FROM tab1 WHERE ((col1 = 76.82) OR (col1 = 27.86) AND col3 = 47 AND (((col3 <= 62 OR col1 = 60.74 OR col1 = 81.45 AND ((col4 BETWEEN 41.46 AND 13.57)) AND col0 IN (60,77,45,0) AND (col3 IS NULL)) AND col0 = 50) OR col4 > 59.92 AND (col0 < 3) OR col3 < 7 AND (col3 < 60) AND (col4 > 4.79 OR col0 > 62 AND col4 IS NULL OR ((col1 >= 42.35) OR ((col3 < 48)) OR col3 > 53) AND col3 IS NULL AND col3 < 54 AND (col0 IN (79,1,6)) AND (col3 < 13) OR col3 < 25) AND ((((col3 >= 9))) AND col4 [...]
# Datafusion - Datafusion expected results:
# Datafusion - Expected - 10 values hashing to e20b902b49a98b1a05ed62804c757f94
-query error DataFusion error: SQL error: RecursionLimitExceeded
+query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
SELECT pk FROM tab1 WHERE ((col1 = 76.82) OR (col1 = 27.86) AND col3 = 47 AND (((col3 <= 62 OR col1 = 60.74 OR col1 = 81.45 AND ((( col4 >= 41.46 AND col4 <= 13.57))) AND col0 IN (60,77,45,0) AND (col3 IS NULL)) AND col0 = 50) OR col4 > 59.92 AND (col0 < 3) OR col3 < 7 AND (col3 < 60) AND (col4 > 4.79 OR col0 > 62 AND col4 IS NULL OR ((col1 >= 42.35) OR ((col3 < 48)) OR col3 > 53) AND col3 IS NULL AND col3 < 54 AND (col0 IN (79,1,6)) AND (col3 < 13) OR col3 < 25) AND ((((col3 >= 9))) AND [...]
# Datafusion - Datafusion expected results:
# Datafusion - Expected - 10 values hashing to e20b902b49a98b1a05ed62804c757f94
-query error DataFusion error: SQL error: RecursionLimitExceeded
+query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
SELECT pk FROM tab2 WHERE ((col1 = 76.82) OR (col1 = 27.86) AND col3 = 47 AND (((col3 <= 62 OR col1 = 60.74 OR col1 = 81.45 AND ((col4 BETWEEN 41.46 AND 13.57)) AND col0 IN (60,77,45,0) AND (col3 IS NULL)) AND col0 = 50) OR col4 > 59.92 AND (col0 < 3) OR col3 < 7 AND (col3 < 60) AND (col4 > 4.79 OR col0 > 62 AND col4 IS NULL OR ((col1 >= 42.35) OR ((col3 < 48)) OR col3 > 53) AND col3 IS NULL AND col3 < 54 AND (col0 IN (79,1,6)) AND (col3 < 13) OR col3 < 25) AND ((((col3 >= 9))) AND col4 [...]
# Datafusion - Datafusion expected results:
# Datafusion - Expected - 10 values hashing to e20b902b49a98b1a05ed62804c757f94
-query error DataFusion error: SQL error: RecursionLimitExceeded
+query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
SELECT pk FROM tab2 WHERE ((col1 = 76.82) OR (col1 = 27.86) AND col3 = 47 AND (((col3 <= 62 OR col1 = 60.74 OR col1 = 81.45 AND ((( col4 >= 41.46 AND col4 <= 13.57))) AND col0 IN (60,77,45,0) AND (col3 IS NULL)) AND col0 = 50) OR col4 > 59.92 AND (col0 < 3) OR col3 < 7 AND (col3 < 60) AND (col4 > 4.79 OR col0 > 62 AND col4 IS NULL OR ((col1 >= 42.35) OR ((col3 < 48)) OR col3 > 53) AND col3 IS NULL AND col3 < 54 AND (col0 IN (79,1,6)) AND (col3 < 13) OR col3 < 25) AND ((((col3 >= 9))) AND [...]
# Datafusion - Datafusion expected results:
# Datafusion - Expected - 10 values hashing to e20b902b49a98b1a05ed62804c757f94
-query error DataFusion error: SQL error: RecursionLimitExceeded
+query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
SELECT pk FROM tab3 WHERE ((col1 = 76.82) OR (col1 = 27.86) AND col3 = 47 AND (((col3 <= 62 OR col1 = 60.74 OR col1 = 81.45 AND ((col4 BETWEEN 41.46 AND 13.57)) AND col0 IN (60,77,45,0) AND (col3 IS NULL)) AND col0 = 50) OR col4 > 59.92 AND (col0 < 3) OR col3 < 7 AND (col3 < 60) AND (col4 > 4.79 OR col0 > 62 AND col4 IS NULL OR ((col1 >= 42.35) OR ((col3 < 48)) OR col3 > 53) AND col3 IS NULL AND col3 < 54 AND (col0 IN (79,1,6)) AND (col3 < 13) OR col3 < 25) AND ((((col3 >= 9))) AND col4 [...]
# Datafusion - Datafusion expected results:
# Datafusion - Expected - 10 values hashing to e20b902b49a98b1a05ed62804c757f94
-query error DataFusion error: SQL error: RecursionLimitExceeded
+query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
SELECT pk FROM tab3 WHERE ((col1 = 76.82) OR (col1 = 27.86) AND col3 = 47 AND (((col3 <= 62 OR col1 = 60.74 OR col1 = 81.45 AND ((( col4 >= 41.46 AND col4 <= 13.57))) AND col0 IN (60,77,45,0) AND (col3 IS NULL)) AND col0 = 50) OR col4 > 59.92 AND (col0 < 3) OR col3 < 7 AND (col3 < 60) AND (col4 > 4.79 OR col0 > 62 AND col4 IS NULL OR ((col1 >= 42.35) OR ((col3 < 48)) OR col3 > 53) AND col3 IS NULL AND col3 < 54 AND (col0 IN (79,1,6)) AND (col3 < 13) OR col3 < 25) AND ((((col3 >= 9))) AND [...]
# Datafusion - Datafusion expected results:
# Datafusion - Expected - 10 values hashing to e20b902b49a98b1a05ed62804c757f94
-query error DataFusion error: SQL error: RecursionLimitExceeded
+query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
SELECT pk FROM tab4 WHERE ((col1 = 76.82) OR (col1 = 27.86) AND col3 = 47 AND (((col3 <= 62 OR col1 = 60.74 OR col1 = 81.45 AND ((col4 BETWEEN 41.46 AND 13.57)) AND col0 IN (60,77,45,0) AND (col3 IS NULL)) AND col0 = 50) OR col4 > 59.92 AND (col0 < 3) OR col3 < 7 AND (col3 < 60) AND (col4 > 4.79 OR col0 > 62 AND col4 IS NULL OR ((col1 >= 42.35) OR ((col3 < 48)) OR col3 > 53) AND col3 IS NULL AND col3 < 54 AND (col0 IN (79,1,6)) AND (col3 < 13) OR col3 < 25) AND ((((col3 >= 9))) AND col4 [...]
# Datafusion - Datafusion expected results:
# Datafusion - Expected - 10 values hashing to e20b902b49a98b1a05ed62804c757f94
-query error DataFusion error: SQL error: RecursionLimitExceeded
+query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
SELECT pk FROM tab4 WHERE ((col1 = 76.82) OR (col1 = 27.86) AND col3 = 47 AND (((col3 <= 62 OR col1 = 60.74 OR col1 = 81.45 AND ((( col4 >= 41.46 AND col4 <= 13.57))) AND col0 IN (60,77,45,0) AND (col3 IS NULL)) AND col0 = 50) OR col4 > 59.92 AND (col0 < 3) OR col3 < 7 AND (col3 < 60) AND (col4 > 4.79 OR col0 > 62 AND col4 IS NULL OR ((col1 >= 42.35) OR ((col3 < 48)) OR col3 > 53) AND col3 IS NULL AND col3 < 54 AND (col0 IN (79,1,6)) AND (col3 < 13) OR col3 < 25) AND ((((col3 >= 9))) AND [...]
query I rowsort label-3860
diff --git a/data/sqlite/index/between/100/slt_good_0.slt b/data/sqlite/index/between/100/slt_good_0.slt
index ac96b87..a22fced 100644
--- a/data/sqlite/index/between/100/slt_good_0.slt
+++ b/data/sqlite/index/between/100/slt_good_0.slt
@@ -2138,70 +2138,70 @@ SELECT pk FROM tab4 WHERE (col0 > 517 OR (col1 <= 278.49 OR ((col0 >= 991 AND co
# Datafusion - Expected - 21
# Datafusion - Expected - 76
# Datafusion - Expected - 91
-query error DataFusion error: SQL error: RecursionLimitExceeded
+query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
SELECT pk FROM tab0 WHERE (col0 = 571 AND (col4 > 284.35) AND (col3 > 728 OR col3 BETWEEN 589 AND 800 OR ((col1 < 3.14 AND col0 <= 851)) OR ((col1 > 526.62) AND col4 = 552.16 AND (col3 >= 782) OR (col4 >= 874.55) AND (((((col4 > 35.15))) AND (col0 IN (SELECT col3 FROM tab0 WHERE (col1 IN (SELECT col4 FROM tab0 WHERE col1 IS NULL) AND ((col1 > 478.85) AND (col3 = 265 OR ((((col3 IN (SELECT col0 FROM tab0 WHERE (col0 < 245 OR (col0 >= 452 AND (((col0 > 615) AND col3 <= 786 OR (col3 = 254) [...]
# Datafusion - Datafusion expected results:
# Datafusion - Expected - 21
# Datafusion - Expected - 76
# Datafusion - Expected - 91
-query error DataFusion error: SQL error: RecursionLimitExceeded
+query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
SELECT pk FROM tab0 WHERE (col0 = 571 AND (col4 > 284.35) AND (col3 > 728 OR (col3 >= 589 AND col3 <= 800) OR ((col1 < 3.14 AND col0 <= 851)) OR ((col1 > 526.62) AND col4 = 552.16 AND (col3 >= 782) OR (col4 >= 874.55) AND (((((col4 > 35.15))) AND (col0 IN (SELECT col3 FROM tab0 WHERE (col1 IN (SELECT col4 FROM tab0 WHERE col1 IS NULL) AND ((col1 > 478.85) AND (col3 = 265 OR ((((col3 IN (SELECT col0 FROM tab0 WHERE (col0 < 245 OR (col0 >= 452 AND (((col0 > 615) AND col3 <= 786 OR (col3 = [...]
# Datafusion - Datafusion expected results:
# Datafusion - Expected - 21
# Datafusion - Expected - 76
# Datafusion - Expected - 91
-query error DataFusion error: SQL error: RecursionLimitExceeded
+query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
SELECT pk FROM tab1 WHERE (col0 = 571 AND (col4 > 284.35) AND (col3 > 728 OR col3 BETWEEN 589 AND 800 OR ((col1 < 3.14 AND col0 <= 851)) OR ((col1 > 526.62) AND col4 = 552.16 AND (col3 >= 782) OR (col4 >= 874.55) AND (((((col4 > 35.15))) AND (col0 IN (SELECT col3 FROM tab1 WHERE (col1 IN (SELECT col4 FROM tab1 WHERE col1 IS NULL) AND ((col1 > 478.85) AND (col3 = 265 OR ((((col3 IN (SELECT col0 FROM tab1 WHERE (col0 < 245 OR (col0 >= 452 AND (((col0 > 615) AND col3 <= 786 OR (col3 = 254) [...]
# Datafusion - Datafusion expected results:
# Datafusion - Expected - 21
# Datafusion - Expected - 76
# Datafusion - Expected - 91
-query error DataFusion error: SQL error: RecursionLimitExceeded
+query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
SELECT pk FROM tab1 WHERE (col0 = 571 AND (col4 > 284.35) AND (col3 > 728 OR (col3 >= 589 AND col3 <= 800) OR ((col1 < 3.14 AND col0 <= 851)) OR ((col1 > 526.62) AND col4 = 552.16 AND (col3 >= 782) OR (col4 >= 874.55) AND (((((col4 > 35.15))) AND (col0 IN (SELECT col3 FROM tab1 WHERE (col1 IN (SELECT col4 FROM tab1 WHERE col1 IS NULL) AND ((col1 > 478.85) AND (col3 = 265 OR ((((col3 IN (SELECT col0 FROM tab1 WHERE (col0 < 245 OR (col0 >= 452 AND (((col0 > 615) AND col3 <= 786 OR (col3 = [...]
# Datafusion - Datafusion expected results:
# Datafusion - Expected - 21
# Datafusion - Expected - 76
# Datafusion - Expected - 91
-query error DataFusion error: SQL error: RecursionLimitExceeded
+query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
SELECT pk FROM tab2 WHERE (col0 = 571 AND (col4 > 284.35) AND (col3 > 728 OR col3 BETWEEN 589 AND 800 OR ((col1 < 3.14 AND col0 <= 851)) OR ((col1 > 526.62) AND col4 = 552.16 AND (col3 >= 782) OR (col4 >= 874.55) AND (((((col4 > 35.15))) AND (col0 IN (SELECT col3 FROM tab2 WHERE (col1 IN (SELECT col4 FROM tab2 WHERE col1 IS NULL) AND ((col1 > 478.85) AND (col3 = 265 OR ((((col3 IN (SELECT col0 FROM tab2 WHERE (col0 < 245 OR (col0 >= 452 AND (((col0 > 615) AND col3 <= 786 OR (col3 = 254) [...]
# Datafusion - Datafusion expected results:
# Datafusion - Expected - 21
# Datafusion - Expected - 76
# Datafusion - Expected - 91
-query error DataFusion error: SQL error: RecursionLimitExceeded
+query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
SELECT pk FROM tab2 WHERE (col0 = 571 AND (col4 > 284.35) AND (col3 > 728 OR (col3 >= 589 AND col3 <= 800) OR ((col1 < 3.14 AND col0 <= 851)) OR ((col1 > 526.62) AND col4 = 552.16 AND (col3 >= 782) OR (col4 >= 874.55) AND (((((col4 > 35.15))) AND (col0 IN (SELECT col3 FROM tab2 WHERE (col1 IN (SELECT col4 FROM tab2 WHERE col1 IS NULL) AND ((col1 > 478.85) AND (col3 = 265 OR ((((col3 IN (SELECT col0 FROM tab2 WHERE (col0 < 245 OR (col0 >= 452 AND (((col0 > 615) AND col3 <= 786 OR (col3 = [...]
# Datafusion - Datafusion expected results:
# Datafusion - Expected - 21
# Datafusion - Expected - 76
# Datafusion - Expected - 91
-query error DataFusion error: SQL error: RecursionLimitExceeded
+query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
SELECT pk FROM tab3 WHERE (col0 = 571 AND (col4 > 284.35) AND (col3 > 728 OR col3 BETWEEN 589 AND 800 OR ((col1 < 3.14 AND col0 <= 851)) OR ((col1 > 526.62) AND col4 = 552.16 AND (col3 >= 782) OR (col4 >= 874.55) AND (((((col4 > 35.15))) AND (col0 IN (SELECT col3 FROM tab3 WHERE (col1 IN (SELECT col4 FROM tab3 WHERE col1 IS NULL) AND ((col1 > 478.85) AND (col3 = 265 OR ((((col3 IN (SELECT col0 FROM tab3 WHERE (col0 < 245 OR (col0 >= 452 AND (((col0 > 615) AND col3 <= 786 OR (col3 = 254) [...]
# Datafusion - Datafusion expected results:
# Datafusion - Expected - 21
# Datafusion - Expected - 76
# Datafusion - Expected - 91
-query error DataFusion error: SQL error: RecursionLimitExceeded
+query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
SELECT pk FROM tab3 WHERE (col0 = 571 AND (col4 > 284.35) AND (col3 > 728 OR (col3 >= 589 AND col3 <= 800) OR ((col1 < 3.14 AND col0 <= 851)) OR ((col1 > 526.62) AND col4 = 552.16 AND (col3 >= 782) OR (col4 >= 874.55) AND (((((col4 > 35.15))) AND (col0 IN (SELECT col3 FROM tab3 WHERE (col1 IN (SELECT col4 FROM tab3 WHERE col1 IS NULL) AND ((col1 > 478.85) AND (col3 = 265 OR ((((col3 IN (SELECT col0 FROM tab3 WHERE (col0 < 245 OR (col0 >= 452 AND (((col0 > 615) AND col3 <= 786 OR (col3 = [...]
# Datafusion - Datafusion expected results:
# Datafusion - Expected - 21
# Datafusion - Expected - 76
# Datafusion - Expected - 91
-query error DataFusion error: SQL error: RecursionLimitExceeded
+query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
SELECT pk FROM tab4 WHERE (col0 = 571 AND (col4 > 284.35) AND (col3 > 728 OR col3 BETWEEN 589 AND 800 OR ((col1 < 3.14 AND col0 <= 851)) OR ((col1 > 526.62) AND col4 = 552.16 AND (col3 >= 782) OR (col4 >= 874.55) AND (((((col4 > 35.15))) AND (col0 IN (SELECT col3 FROM tab4 WHERE (col1 IN (SELECT col4 FROM tab4 WHERE col1 IS NULL) AND ((col1 > 478.85) AND (col3 = 265 OR ((((col3 IN (SELECT col0 FROM tab4 WHERE (col0 < 245 OR (col0 >= 452 AND (((col0 > 615) AND col3 <= 786 OR (col3 = 254) [...]
# Datafusion - Datafusion expected results:
# Datafusion - Expected - 21
# Datafusion - Expected - 76
# Datafusion - Expected - 91
-query error DataFusion error: SQL error: RecursionLimitExceeded
+query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
SELECT pk FROM tab4 WHERE (col0 = 571 AND (col4 > 284.35) AND (col3 > 728 OR (col3 >= 589 AND col3 <= 800) OR ((col1 < 3.14 AND col0 <= 851)) OR ((col1 > 526.62) AND col4 = 552.16 AND (col3 >= 782) OR (col4 >= 874.55) AND (((((col4 > 35.15))) AND (col0 IN (SELECT col3 FROM tab4 WHERE (col1 IN (SELECT col4 FROM tab4 WHERE col1 IS NULL) AND ((col1 > 478.85) AND (col3 = 265 OR ((((col3 IN (SELECT col0 FROM tab4 WHERE (col0 < 245 OR (col0 >= 452 AND (((col0 > 615) AND col3 <= 786 OR (col3 = [...]
query I rowsort label-350
diff --git a/data/sqlite/index/between/100/slt_good_1.slt b/data/sqlite/index/between/100/slt_good_1.slt
index 5730456..2b957f3 100644
--- a/data/sqlite/index/between/100/slt_good_1.slt
+++ b/data/sqlite/index/between/100/slt_good_1.slt
@@ -17654,52 +17654,52 @@ SELECT pk FROM tab4 WHERE col3 > 553 AND col1 > 15.2 OR (col0 > 513 OR ((col0 >=
# Datafusion - Datafusion expected results:
# Datafusion - Expected - 100 values hashing to d7fd31c3916c207fd3117332326c3f37
-query error DataFusion error: SQL error: RecursionLimitExceeded
+query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
SELECT pk FROM tab0 WHERE col4 < 334.10 OR col1 = 714.13 AND (col3 = 683) OR col4 IS NULL OR ((col1 = 306.27 AND (((col4 IN (SELECT col1 FROM tab0 WHERE (col3 >= 619 OR col3 < 80)) OR (((col0 >= 77) AND (((col3 IS NULL)) OR ((col1 > 648.42 AND col3 <= 780 AND (col0 > 922)))) OR ((col3 >= 57 AND (col4 < 655.5 OR col1 > 248.98 OR col1 > 441.47))) AND (((col0 < 33 AND (col3 >= 771)) OR ((col0 BETWEEN 323 AND 703 OR ((col3 < 992 AND (col4 IN (283.61,931.53,263.92,211.77)) AND col3 < 783 AND [...]
# Datafusion - Datafusion expected results:
# Datafusion - Expected - 100 values hashing to d7fd31c3916c207fd3117332326c3f37
-query error DataFusion error: SQL error: RecursionLimitExceeded
+query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
SELECT pk FROM tab0 WHERE col4 < 334.10 OR col1 = 714.13 AND (col3 = 683) OR col4 IS NULL OR ((col1 = 306.27 AND (((col4 IN (SELECT col1 FROM tab0 WHERE (col3 >= 619 OR col3 < 80)) OR (((col0 >= 77) AND (((col3 IS NULL)) OR ((col1 > 648.42 AND col3 <= 780 AND (col0 > 922)))) OR ((col3 >= 57 AND (col4 < 655.5 OR col1 > 248.98 OR col1 > 441.47))) AND (((col0 < 33 AND (col3 >= 771)) OR (((col0 >= 323 AND col0 <= 703) OR ((col3 < 992 AND (col4 IN (283.61,931.53,263.92,211.77)) AND col3 < 783 [...]
# Datafusion - Datafusion expected results:
# Datafusion - Expected - 100 values hashing to d7fd31c3916c207fd3117332326c3f37
-query error DataFusion error: SQL error: RecursionLimitExceeded
+query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
SELECT pk FROM tab1 WHERE col4 < 334.10 OR col1 = 714.13 AND (col3 = 683) OR col4 IS NULL OR ((col1 = 306.27 AND (((col4 IN (SELECT col1 FROM tab1 WHERE (col3 >= 619 OR col3 < 80)) OR (((col0 >= 77) AND (((col3 IS NULL)) OR ((col1 > 648.42 AND col3 <= 780 AND (col0 > 922)))) OR ((col3 >= 57 AND (col4 < 655.5 OR col1 > 248.98 OR col1 > 441.47))) AND (((col0 < 33 AND (col3 >= 771)) OR ((col0 BETWEEN 323 AND 703 OR ((col3 < 992 AND (col4 IN (283.61,931.53,263.92,211.77)) AND col3 < 783 AND [...]
# Datafusion - Datafusion expected results:
# Datafusion - Expected - 100 values hashing to d7fd31c3916c207fd3117332326c3f37
-query error DataFusion error: SQL error: RecursionLimitExceeded
+query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
SELECT pk FROM tab1 WHERE col4 < 334.10 OR col1 = 714.13 AND (col3 = 683) OR col4 IS NULL OR ((col1 = 306.27 AND (((col4 IN (SELECT col1 FROM tab1 WHERE (col3 >= 619 OR col3 < 80)) OR (((col0 >= 77) AND (((col3 IS NULL)) OR ((col1 > 648.42 AND col3 <= 780 AND (col0 > 922)))) OR ((col3 >= 57 AND (col4 < 655.5 OR col1 > 248.98 OR col1 > 441.47))) AND (((col0 < 33 AND (col3 >= 771)) OR (((col0 >= 323 AND col0 <= 703) OR ((col3 < 992 AND (col4 IN (283.61,931.53,263.92,211.77)) AND col3 < 783 [...]
# Datafusion - Datafusion expected results:
# Datafusion - Expected - 100 values hashing to d7fd31c3916c207fd3117332326c3f37
-query error DataFusion error: SQL error: RecursionLimitExceeded
+query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
SELECT pk FROM tab2 WHERE col4 < 334.10 OR col1 = 714.13 AND (col3 = 683) OR col4 IS NULL OR ((col1 = 306.27 AND (((col4 IN (SELECT col1 FROM tab2 WHERE (col3 >= 619 OR col3 < 80)) OR (((col0 >= 77) AND (((col3 IS NULL)) OR ((col1 > 648.42 AND col3 <= 780 AND (col0 > 922)))) OR ((col3 >= 57 AND (col4 < 655.5 OR col1 > 248.98 OR col1 > 441.47))) AND (((col0 < 33 AND (col3 >= 771)) OR ((col0 BETWEEN 323 AND 703 OR ((col3 < 992 AND (col4 IN (283.61,931.53,263.92,211.77)) AND col3 < 783 AND [...]
# Datafusion - Datafusion expected results:
# Datafusion - Expected - 100 values hashing to d7fd31c3916c207fd3117332326c3f37
-query error DataFusion error: SQL error: RecursionLimitExceeded
+query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
SELECT pk FROM tab2 WHERE col4 < 334.10 OR col1 = 714.13 AND (col3 = 683) OR col4 IS NULL OR ((col1 = 306.27 AND (((col4 IN (SELECT col1 FROM tab2 WHERE (col3 >= 619 OR col3 < 80)) OR (((col0 >= 77) AND (((col3 IS NULL)) OR ((col1 > 648.42 AND col3 <= 780 AND (col0 > 922)))) OR ((col3 >= 57 AND (col4 < 655.5 OR col1 > 248.98 OR col1 > 441.47))) AND (((col0 < 33 AND (col3 >= 771)) OR (((col0 >= 323 AND col0 <= 703) OR ((col3 < 992 AND (col4 IN (283.61,931.53,263.92,211.77)) AND col3 < 783 [...]
# Datafusion - Datafusion expected results:
# Datafusion - Expected - 100 values hashing to d7fd31c3916c207fd3117332326c3f37
-query error DataFusion error: SQL error: RecursionLimitExceeded
+query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
SELECT pk FROM tab3 WHERE col4 < 334.10 OR col1 = 714.13 AND (col3 = 683) OR col4 IS NULL OR ((col1 = 306.27 AND (((col4 IN (SELECT col1 FROM tab3 WHERE (col3 >= 619 OR col3 < 80)) OR (((col0 >= 77) AND (((col3 IS NULL)) OR ((col1 > 648.42 AND col3 <= 780 AND (col0 > 922)))) OR ((col3 >= 57 AND (col4 < 655.5 OR col1 > 248.98 OR col1 > 441.47))) AND (((col0 < 33 AND (col3 >= 771)) OR ((col0 BETWEEN 323 AND 703 OR ((col3 < 992 AND (col4 IN (283.61,931.53,263.92,211.77)) AND col3 < 783 AND [...]
# Datafusion - Datafusion expected results:
# Datafusion - Expected - 100 values hashing to d7fd31c3916c207fd3117332326c3f37
-query error DataFusion error: SQL error: RecursionLimitExceeded
+query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
SELECT pk FROM tab3 WHERE col4 < 334.10 OR col1 = 714.13 AND (col3 = 683) OR col4 IS NULL OR ((col1 = 306.27 AND (((col4 IN (SELECT col1 FROM tab3 WHERE (col3 >= 619 OR col3 < 80)) OR (((col0 >= 77) AND (((col3 IS NULL)) OR ((col1 > 648.42 AND col3 <= 780 AND (col0 > 922)))) OR ((col3 >= 57 AND (col4 < 655.5 OR col1 > 248.98 OR col1 > 441.47))) AND (((col0 < 33 AND (col3 >= 771)) OR (((col0 >= 323 AND col0 <= 703) OR ((col3 < 992 AND (col4 IN (283.61,931.53,263.92,211.77)) AND col3 < 783 [...]
# Datafusion - Datafusion expected results:
# Datafusion - Expected - 100 values hashing to d7fd31c3916c207fd3117332326c3f37
-query error DataFusion error: SQL error: RecursionLimitExceeded
+query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
SELECT pk FROM tab4 WHERE col4 < 334.10 OR col1 = 714.13 AND (col3 = 683) OR col4 IS NULL OR ((col1 = 306.27 AND (((col4 IN (SELECT col1 FROM tab4 WHERE (col3 >= 619 OR col3 < 80)) OR (((col0 >= 77) AND (((col3 IS NULL)) OR ((col1 > 648.42 AND col3 <= 780 AND (col0 > 922)))) OR ((col3 >= 57 AND (col4 < 655.5 OR col1 > 248.98 OR col1 > 441.47))) AND (((col0 < 33 AND (col3 >= 771)) OR ((col0 BETWEEN 323 AND 703 OR ((col3 < 992 AND (col4 IN (283.61,931.53,263.92,211.77)) AND col3 < 783 AND [...]
# Datafusion - Datafusion expected results:
# Datafusion - Expected - 100 values hashing to d7fd31c3916c207fd3117332326c3f37
-query error DataFusion error: SQL error: RecursionLimitExceeded
+query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
SELECT pk FROM tab4 WHERE col4 < 334.10 OR col1 = 714.13 AND (col3 = 683) OR col4 IS NULL OR ((col1 = 306.27 AND (((col4 IN (SELECT col1 FROM tab4 WHERE (col3 >= 619 OR col3 < 80)) OR (((col0 >= 77) AND (((col3 IS NULL)) OR ((col1 > 648.42 AND col3 <= 780 AND (col0 > 922)))) OR ((col3 >= 57 AND (col4 < 655.5 OR col1 > 248.98 OR col1 > 441.47))) AND (((col0 < 33 AND (col3 >= 771)) OR (((col0 >= 323 AND col0 <= 703) OR ((col3 < 992 AND (col4 IN (283.61,931.53,263.92,211.77)) AND col3 < 783 [...]
query I rowsort label-3500
diff --git a/data/sqlite/index/between/100/slt_good_2.slt b/data/sqlite/index/between/100/slt_good_2.slt
index d00b535..e6320c3 100644
--- a/data/sqlite/index/between/100/slt_good_2.slt
+++ b/data/sqlite/index/between/100/slt_good_2.slt
@@ -18668,52 +18668,52 @@ SELECT pk FROM tab4 WHERE (((col1 > 751.99))) AND col3 = 934 AND (col1 IS NULL)
# Datafusion - Datafusion expected results:
# Datafusion - Expected - 38 values hashing to 3867e4c936944af65fb88fabb496e33e
-query error DataFusion error: SQL error: RecursionLimitExceeded
+query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
SELECT pk FROM tab0 WHERE (col0 < 588 AND col0 > 449 OR (col3 < 209) AND (col0 > 833) AND (col0 > 764) AND (col0 >= 303 AND col0 < 946 AND (col4 BETWEEN 969.71 AND 563.77 AND col4 >= 516.57 OR ((((col0 <= 386 OR (col0 >= 908) AND (((((col0 IS NULL AND col1 >= 735.46) OR (((((((col3 <= 205)))))) AND (col0 IN (613,499)) OR col0 <= 781) AND (((((col1 < 661.3) OR col3 >= 749)) OR (col3 < 554)) AND col3 = 692 AND col0 <= 53 AND col3 < 850 OR col4 < 774.27) OR (col0 > 97 OR ((col1 > 172.53)) O [...]
# Datafusion - Datafusion expected results:
# Datafusion - Expected - 38 values hashing to 3867e4c936944af65fb88fabb496e33e
-query error DataFusion error: SQL error: RecursionLimitExceeded
+query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
SELECT pk FROM tab0 WHERE (col0 < 588 AND col0 > 449 OR (col3 < 209) AND (col0 > 833) AND (col0 > 764) AND (col0 >= 303 AND col0 < 946 AND ((col4 >= 969.71 AND col4 <= 563.77) AND col4 >= 516.57 OR ((((col0 <= 386 OR (col0 >= 908) AND (((((col0 IS NULL AND col1 >= 735.46) OR (((((((col3 <= 205)))))) AND (col0 IN (613,499)) OR col0 <= 781) AND (((((col1 < 661.3) OR col3 >= 749)) OR (col3 < 554)) AND col3 = 692 AND col0 <= 53 AND col3 < 850 OR col4 < 774.27) OR (col0 > 97 OR ((col1 > 172.5 [...]
# Datafusion - Datafusion expected results:
# Datafusion - Expected - 38 values hashing to 3867e4c936944af65fb88fabb496e33e
-query error DataFusion error: SQL error: RecursionLimitExceeded
+query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
SELECT pk FROM tab1 WHERE (col0 < 588 AND col0 > 449 OR (col3 < 209) AND (col0 > 833) AND (col0 > 764) AND (col0 >= 303 AND col0 < 946 AND (col4 BETWEEN 969.71 AND 563.77 AND col4 >= 516.57 OR ((((col0 <= 386 OR (col0 >= 908) AND (((((col0 IS NULL AND col1 >= 735.46) OR (((((((col3 <= 205)))))) AND (col0 IN (613,499)) OR col0 <= 781) AND (((((col1 < 661.3) OR col3 >= 749)) OR (col3 < 554)) AND col3 = 692 AND col0 <= 53 AND col3 < 850 OR col4 < 774.27) OR (col0 > 97 OR ((col1 > 172.53)) O [...]
# Datafusion - Datafusion expected results:
# Datafusion - Expected - 38 values hashing to 3867e4c936944af65fb88fabb496e33e
-query error DataFusion error: SQL error: RecursionLimitExceeded
+query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
SELECT pk FROM tab1 WHERE (col0 < 588 AND col0 > 449 OR (col3 < 209) AND (col0 > 833) AND (col0 > 764) AND (col0 >= 303 AND col0 < 946 AND ((col4 >= 969.71 AND col4 <= 563.77) AND col4 >= 516.57 OR ((((col0 <= 386 OR (col0 >= 908) AND (((((col0 IS NULL AND col1 >= 735.46) OR (((((((col3 <= 205)))))) AND (col0 IN (613,499)) OR col0 <= 781) AND (((((col1 < 661.3) OR col3 >= 749)) OR (col3 < 554)) AND col3 = 692 AND col0 <= 53 AND col3 < 850 OR col4 < 774.27) OR (col0 > 97 OR ((col1 > 172.5 [...]
# Datafusion - Datafusion expected results:
# Datafusion - Expected - 38 values hashing to 3867e4c936944af65fb88fabb496e33e
-query error DataFusion error: SQL error: RecursionLimitExceeded
+query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
SELECT pk FROM tab2 WHERE (col0 < 588 AND col0 > 449 OR (col3 < 209) AND (col0 > 833) AND (col0 > 764) AND (col0 >= 303 AND col0 < 946 AND (col4 BETWEEN 969.71 AND 563.77 AND col4 >= 516.57 OR ((((col0 <= 386 OR (col0 >= 908) AND (((((col0 IS NULL AND col1 >= 735.46) OR (((((((col3 <= 205)))))) AND (col0 IN (613,499)) OR col0 <= 781) AND (((((col1 < 661.3) OR col3 >= 749)) OR (col3 < 554)) AND col3 = 692 AND col0 <= 53 AND col3 < 850 OR col4 < 774.27) OR (col0 > 97 OR ((col1 > 172.53)) O [...]
# Datafusion - Datafusion expected results:
# Datafusion - Expected - 38 values hashing to 3867e4c936944af65fb88fabb496e33e
-query error DataFusion error: SQL error: RecursionLimitExceeded
+query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
SELECT pk FROM tab2 WHERE (col0 < 588 AND col0 > 449 OR (col3 < 209) AND (col0 > 833) AND (col0 > 764) AND (col0 >= 303 AND col0 < 946 AND ((col4 >= 969.71 AND col4 <= 563.77) AND col4 >= 516.57 OR ((((col0 <= 386 OR (col0 >= 908) AND (((((col0 IS NULL AND col1 >= 735.46) OR (((((((col3 <= 205)))))) AND (col0 IN (613,499)) OR col0 <= 781) AND (((((col1 < 661.3) OR col3 >= 749)) OR (col3 < 554)) AND col3 = 692 AND col0 <= 53 AND col3 < 850 OR col4 < 774.27) OR (col0 > 97 OR ((col1 > 172.5 [...]
# Datafusion - Datafusion expected results:
# Datafusion - Expected - 38 values hashing to 3867e4c936944af65fb88fabb496e33e
-query error DataFusion error: SQL error: RecursionLimitExceeded
+query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
SELECT pk FROM tab3 WHERE (col0 < 588 AND col0 > 449 OR (col3 < 209) AND (col0 > 833) AND (col0 > 764) AND (col0 >= 303 AND col0 < 946 AND (col4 BETWEEN 969.71 AND 563.77 AND col4 >= 516.57 OR ((((col0 <= 386 OR (col0 >= 908) AND (((((col0 IS NULL AND col1 >= 735.46) OR (((((((col3 <= 205)))))) AND (col0 IN (613,499)) OR col0 <= 781) AND (((((col1 < 661.3) OR col3 >= 749)) OR (col3 < 554)) AND col3 = 692 AND col0 <= 53 AND col3 < 850 OR col4 < 774.27) OR (col0 > 97 OR ((col1 > 172.53)) O [...]
# Datafusion - Datafusion expected results:
# Datafusion - Expected - 38 values hashing to 3867e4c936944af65fb88fabb496e33e
-query error DataFusion error: SQL error: RecursionLimitExceeded
+query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
SELECT pk FROM tab3 WHERE (col0 < 588 AND col0 > 449 OR (col3 < 209) AND (col0 > 833) AND (col0 > 764) AND (col0 >= 303 AND col0 < 946 AND ((col4 >= 969.71 AND col4 <= 563.77) AND col4 >= 516.57 OR ((((col0 <= 386 OR (col0 >= 908) AND (((((col0 IS NULL AND col1 >= 735.46) OR (((((((col3 <= 205)))))) AND (col0 IN (613,499)) OR col0 <= 781) AND (((((col1 < 661.3) OR col3 >= 749)) OR (col3 < 554)) AND col3 = 692 AND col0 <= 53 AND col3 < 850 OR col4 < 774.27) OR (col0 > 97 OR ((col1 > 172.5 [...]
# Datafusion - Datafusion expected results:
# Datafusion - Expected - 38 values hashing to 3867e4c936944af65fb88fabb496e33e
-query error DataFusion error: SQL error: RecursionLimitExceeded
+query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
SELECT pk FROM tab4 WHERE (col0 < 588 AND col0 > 449 OR (col3 < 209) AND (col0 > 833) AND (col0 > 764) AND (col0 >= 303 AND col0 < 946 AND (col4 BETWEEN 969.71 AND 563.77 AND col4 >= 516.57 OR ((((col0 <= 386 OR (col0 >= 908) AND (((((col0 IS NULL AND col1 >= 735.46) OR (((((((col3 <= 205)))))) AND (col0 IN (613,499)) OR col0 <= 781) AND (((((col1 < 661.3) OR col3 >= 749)) OR (col3 < 554)) AND col3 = 692 AND col0 <= 53 AND col3 < 850 OR col4 < 774.27) OR (col0 > 97 OR ((col1 > 172.53)) O [...]
# Datafusion - Datafusion expected results:
# Datafusion - Expected - 38 values hashing to 3867e4c936944af65fb88fabb496e33e
-query error DataFusion error: SQL error: RecursionLimitExceeded
+query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
SELECT pk FROM tab4 WHERE (col0 < 588 AND col0 > 449 OR (col3 < 209) AND (col0 > 833) AND (col0 > 764) AND (col0 >= 303 AND col0 < 946 AND ((col4 >= 969.71 AND col4 <= 563.77) AND col4 >= 516.57 OR ((((col0 <= 386 OR (col0 >= 908) AND (((((col0 IS NULL AND col1 >= 735.46) OR (((((((col3 <= 205)))))) AND (col0 IN (613,499)) OR col0 <= 781) AND (((((col1 < 661.3) OR col3 >= 749)) OR (col3 < 554)) AND col3 = 692 AND col0 <= 53 AND col3 < 850 OR col4 < 774.27) OR (col0 > 97 OR ((col1 > 172.5 [...]
query I rowsort label-3770
@@ -30498,52 +30498,52 @@ SELECT pk FROM tab4 WHERE ((((col3 < 822)))) AND col0 <= 574 AND (col4 < 16.39 A
# Datafusion - Datafusion expected results:
# Datafusion - Expected - 35 values hashing to dd7dddcbe57989b4ed4d4e29e9a115d3
-query error DataFusion error: SQL error: RecursionLimitExceeded
+query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
SELECT pk FROM tab0 WHERE col3 > 571 AND col3 < 261 OR col0 IN (20,677,619,881,839) AND (col3 > 109 OR ((col1 > 442.53 AND ((col0 <= 497) AND col3 > 98 AND ((col3 > 639)) OR col3 IN (148,425,355,102,291,791) AND col3 >= 9 AND (col3 < 841) OR (col3 >= 417 OR col0 > 789 OR col0 > 21 AND col3 > 957) AND (col3 < 52) AND col4 >= 553.43 OR (((col4 > 839.42))) AND ((col0 > 973)) AND (((((col3 <= 908))))) OR ((col3 >= 946)) AND col4 <= 359.23 OR (col1 < 478.6) AND col4 > 545.90 OR ((col4 IS NULL [...]
# Datafusion - Datafusion expected results:
# Datafusion - Expected - 35 values hashing to dd7dddcbe57989b4ed4d4e29e9a115d3
-query error DataFusion error: SQL error: RecursionLimitExceeded
+query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
SELECT pk FROM tab0 WHERE col3 > 571 AND col3 < 261 OR col0 IN (20,677,619,881,839) AND (col3 > 109 OR ((col1 > 442.53 AND ((col0 <= 497) AND col3 > 98 AND ((col3 > 639)) OR col3 IN (148,425,355,102,291,791) AND col3 >= 9 AND (col3 < 841) OR (col3 >= 417 OR col0 > 789 OR col0 > 21 AND col3 > 957) AND (col3 < 52) AND col4 >= 553.43 OR (((col4 > 839.42))) AND ((col0 > 973)) AND (((((col3 <= 908))))) OR ((col3 >= 946)) AND col4 <= 359.23 OR (col1 < 478.6) AND col4 > 545.90 OR ((col4 IS NULL [...]
# Datafusion - Datafusion expected results:
# Datafusion - Expected - 35 values hashing to dd7dddcbe57989b4ed4d4e29e9a115d3
-query error DataFusion error: SQL error: RecursionLimitExceeded
+query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
SELECT pk FROM tab1 WHERE col3 > 571 AND col3 < 261 OR col0 IN (20,677,619,881,839) AND (col3 > 109 OR ((col1 > 442.53 AND ((col0 <= 497) AND col3 > 98 AND ((col3 > 639)) OR col3 IN (148,425,355,102,291,791) AND col3 >= 9 AND (col3 < 841) OR (col3 >= 417 OR col0 > 789 OR col0 > 21 AND col3 > 957) AND (col3 < 52) AND col4 >= 553.43 OR (((col4 > 839.42))) AND ((col0 > 973)) AND (((((col3 <= 908))))) OR ((col3 >= 946)) AND col4 <= 359.23 OR (col1 < 478.6) AND col4 > 545.90 OR ((col4 IS NULL [...]
# Datafusion - Datafusion expected results:
# Datafusion - Expected - 35 values hashing to dd7dddcbe57989b4ed4d4e29e9a115d3
-query error DataFusion error: SQL error: RecursionLimitExceeded
+query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
SELECT pk FROM tab1 WHERE col3 > 571 AND col3 < 261 OR col0 IN (20,677,619,881,839) AND (col3 > 109 OR ((col1 > 442.53 AND ((col0 <= 497) AND col3 > 98 AND ((col3 > 639)) OR col3 IN (148,425,355,102,291,791) AND col3 >= 9 AND (col3 < 841) OR (col3 >= 417 OR col0 > 789 OR col0 > 21 AND col3 > 957) AND (col3 < 52) AND col4 >= 553.43 OR (((col4 > 839.42))) AND ((col0 > 973)) AND (((((col3 <= 908))))) OR ((col3 >= 946)) AND col4 <= 359.23 OR (col1 < 478.6) AND col4 > 545.90 OR ((col4 IS NULL [...]
# Datafusion - Datafusion expected results:
# Datafusion - Expected - 35 values hashing to dd7dddcbe57989b4ed4d4e29e9a115d3
-query error DataFusion error: SQL error: RecursionLimitExceeded
+query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
SELECT pk FROM tab2 WHERE col3 > 571 AND col3 < 261 OR col0 IN (20,677,619,881,839) AND (col3 > 109 OR ((col1 > 442.53 AND ((col0 <= 497) AND col3 > 98 AND ((col3 > 639)) OR col3 IN (148,425,355,102,291,791) AND col3 >= 9 AND (col3 < 841) OR (col3 >= 417 OR col0 > 789 OR col0 > 21 AND col3 > 957) AND (col3 < 52) AND col4 >= 553.43 OR (((col4 > 839.42))) AND ((col0 > 973)) AND (((((col3 <= 908))))) OR ((col3 >= 946)) AND col4 <= 359.23 OR (col1 < 478.6) AND col4 > 545.90 OR ((col4 IS NULL [...]
# Datafusion - Datafusion expected results:
# Datafusion - Expected - 35 values hashing to dd7dddcbe57989b4ed4d4e29e9a115d3
-query error DataFusion error: SQL error: RecursionLimitExceeded
+query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
SELECT pk FROM tab2 WHERE col3 > 571 AND col3 < 261 OR col0 IN (20,677,619,881,839) AND (col3 > 109 OR ((col1 > 442.53 AND ((col0 <= 497) AND col3 > 98 AND ((col3 > 639)) OR col3 IN (148,425,355,102,291,791) AND col3 >= 9 AND (col3 < 841) OR (col3 >= 417 OR col0 > 789 OR col0 > 21 AND col3 > 957) AND (col3 < 52) AND col4 >= 553.43 OR (((col4 > 839.42))) AND ((col0 > 973)) AND (((((col3 <= 908))))) OR ((col3 >= 946)) AND col4 <= 359.23 OR (col1 < 478.6) AND col4 > 545.90 OR ((col4 IS NULL [...]
# Datafusion - Datafusion expected results:
# Datafusion - Expected - 35 values hashing to dd7dddcbe57989b4ed4d4e29e9a115d3
-query error DataFusion error: SQL error: RecursionLimitExceeded
+query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
SELECT pk FROM tab3 WHERE col3 > 571 AND col3 < 261 OR col0 IN (20,677,619,881,839) AND (col3 > 109 OR ((col1 > 442.53 AND ((col0 <= 497) AND col3 > 98 AND ((col3 > 639)) OR col3 IN (148,425,355,102,291,791) AND col3 >= 9 AND (col3 < 841) OR (col3 >= 417 OR col0 > 789 OR col0 > 21 AND col3 > 957) AND (col3 < 52) AND col4 >= 553.43 OR (((col4 > 839.42))) AND ((col0 > 973)) AND (((((col3 <= 908))))) OR ((col3 >= 946)) AND col4 <= 359.23 OR (col1 < 478.6) AND col4 > 545.90 OR ((col4 IS NULL [...]
# Datafusion - Datafusion expected results:
# Datafusion - Expected - 35 values hashing to dd7dddcbe57989b4ed4d4e29e9a115d3
-query error DataFusion error: SQL error: RecursionLimitExceeded
+query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
SELECT pk FROM tab3 WHERE col3 > 571 AND col3 < 261 OR col0 IN (20,677,619,881,839) AND (col3 > 109 OR ((col1 > 442.53 AND ((col0 <= 497) AND col3 > 98 AND ((col3 > 639)) OR col3 IN (148,425,355,102,291,791) AND col3 >= 9 AND (col3 < 841) OR (col3 >= 417 OR col0 > 789 OR col0 > 21 AND col3 > 957) AND (col3 < 52) AND col4 >= 553.43 OR (((col4 > 839.42))) AND ((col0 > 973)) AND (((((col3 <= 908))))) OR ((col3 >= 946)) AND col4 <= 359.23 OR (col1 < 478.6) AND col4 > 545.90 OR ((col4 IS NULL [...]
# Datafusion - Datafusion expected results:
# Datafusion - Expected - 35 values hashing to dd7dddcbe57989b4ed4d4e29e9a115d3
-query error DataFusion error: SQL error: RecursionLimitExceeded
+query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
SELECT pk FROM tab4 WHERE col3 > 571 AND col3 < 261 OR col0 IN (20,677,619,881,839) AND (col3 > 109 OR ((col1 > 442.53 AND ((col0 <= 497) AND col3 > 98 AND ((col3 > 639)) OR col3 IN (148,425,355,102,291,791) AND col3 >= 9 AND (col3 < 841) OR (col3 >= 417 OR col0 > 789 OR col0 > 21 AND col3 > 957) AND (col3 < 52) AND col4 >= 553.43 OR (((col4 > 839.42))) AND ((col0 > 973)) AND (((((col3 <= 908))))) OR ((col3 >= 946)) AND col4 <= 359.23 OR (col1 < 478.6) AND col4 > 545.90 OR ((col4 IS NULL [...]
# Datafusion - Datafusion expected results:
# Datafusion - Expected - 35 values hashing to dd7dddcbe57989b4ed4d4e29e9a115d3
-query error DataFusion error: SQL error: RecursionLimitExceeded
+query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
SELECT pk FROM tab4 WHERE col3 > 571 AND col3 < 261 OR col0 IN (20,677,619,881,839) AND (col3 > 109 OR ((col1 > 442.53 AND ((col0 <= 497) AND col3 > 98 AND ((col3 > 639)) OR col3 IN (148,425,355,102,291,791) AND col3 >= 9 AND (col3 < 841) OR (col3 >= 417 OR col0 > 789 OR col0 > 21 AND col3 > 957) AND (col3 < 52) AND col4 >= 553.43 OR (((col4 > 839.42))) AND ((col0 > 973)) AND (((((col3 <= 908))))) OR ((col3 >= 946)) AND col4 <= 359.23 OR (col1 < 478.6) AND col4 > 545.90 OR ((col4 IS NULL [...]
query I rowsort label-6140
@@ -36908,52 +36908,52 @@ SELECT pk FROM tab4 WHERE ((col3 >= 56 AND col3 <= 1))
# Datafusion - Datafusion expected results:
# Datafusion - Expected - 41 values hashing to 72e7635b73d7638f122d34ce3fc73682
-query error DataFusion error: SQL error: RecursionLimitExceeded
+query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
SELECT pk FROM tab0 WHERE (col3 < 370 AND ((((((col0 = 65) AND col0 < 803 AND (col3 > 637 OR col0 > 241 OR (col3 IS NULL)) AND col0 = 432 OR col0 < 881 OR (col4 IS NULL) OR col3 IS NULL OR col0 > 729 AND col0 > 165) OR ((col0 > 808) AND (((col3 IS NULL AND ((col3 > 682 OR ((((col0 <= 725)) OR col3 >= 277 OR col0 > 498 OR col0 > 792 OR col3 <= 409)))) OR (col3 = 884 OR ((((((col0 = 834))))) OR (((col3 < 60)) AND (col3 > 156 AND col0 <= 914) AND ((col3 IS NULL OR (col0 > 934 OR col0 IS NUL [...]
# Datafusion - Datafusion expected results:
# Datafusion - Expected - 41 values hashing to 72e7635b73d7638f122d34ce3fc73682
-query error DataFusion error: SQL error: RecursionLimitExceeded
+query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
SELECT pk FROM tab0 WHERE (col3 < 370 AND ((((((col0 = 65) AND col0 < 803 AND (col3 > 637 OR col0 > 241 OR (col3 IS NULL)) AND col0 = 432 OR col0 < 881 OR (col4 IS NULL) OR col3 IS NULL OR col0 > 729 AND col0 > 165) OR ((col0 > 808) AND (((col3 IS NULL AND ((col3 > 682 OR ((((col0 <= 725)) OR col3 >= 277 OR col0 > 498 OR col0 > 792 OR col3 <= 409)))) OR (col3 = 884 OR ((((((col0 = 834))))) OR (((col3 < 60)) AND (col3 > 156 AND col0 <= 914) AND ((col3 IS NULL OR (col0 > 934 OR col0 IS NUL [...]
# Datafusion - Datafusion expected results:
# Datafusion - Expected - 41 values hashing to 72e7635b73d7638f122d34ce3fc73682
-query error DataFusion error: SQL error: RecursionLimitExceeded
+query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
SELECT pk FROM tab1 WHERE (col3 < 370 AND ((((((col0 = 65) AND col0 < 803 AND (col3 > 637 OR col0 > 241 OR (col3 IS NULL)) AND col0 = 432 OR col0 < 881 OR (col4 IS NULL) OR col3 IS NULL OR col0 > 729 AND col0 > 165) OR ((col0 > 808) AND (((col3 IS NULL AND ((col3 > 682 OR ((((col0 <= 725)) OR col3 >= 277 OR col0 > 498 OR col0 > 792 OR col3 <= 409)))) OR (col3 = 884 OR ((((((col0 = 834))))) OR (((col3 < 60)) AND (col3 > 156 AND col0 <= 914) AND ((col3 IS NULL OR (col0 > 934 OR col0 IS NUL [...]
# Datafusion - Datafusion expected results:
# Datafusion - Expected - 41 values hashing to 72e7635b73d7638f122d34ce3fc73682
-query error DataFusion error: SQL error: RecursionLimitExceeded
+query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
SELECT pk FROM tab1 WHERE (col3 < 370 AND ((((((col0 = 65) AND col0 < 803 AND (col3 > 637 OR col0 > 241 OR (col3 IS NULL)) AND col0 = 432 OR col0 < 881 OR (col4 IS NULL) OR col3 IS NULL OR col0 > 729 AND col0 > 165) OR ((col0 > 808) AND (((col3 IS NULL AND ((col3 > 682 OR ((((col0 <= 725)) OR col3 >= 277 OR col0 > 498 OR col0 > 792 OR col3 <= 409)))) OR (col3 = 884 OR ((((((col0 = 834))))) OR (((col3 < 60)) AND (col3 > 156 AND col0 <= 914) AND ((col3 IS NULL OR (col0 > 934 OR col0 IS NUL [...]
# Datafusion - Datafusion expected results:
# Datafusion - Expected - 41 values hashing to 72e7635b73d7638f122d34ce3fc73682
-query error DataFusion error: SQL error: RecursionLimitExceeded
+query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
SELECT pk FROM tab2 WHERE (col3 < 370 AND ((((((col0 = 65) AND col0 < 803 AND (col3 > 637 OR col0 > 241 OR (col3 IS NULL)) AND col0 = 432 OR col0 < 881 OR (col4 IS NULL) OR col3 IS NULL OR col0 > 729 AND col0 > 165) OR ((col0 > 808) AND (((col3 IS NULL AND ((col3 > 682 OR ((((col0 <= 725)) OR col3 >= 277 OR col0 > 498 OR col0 > 792 OR col3 <= 409)))) OR (col3 = 884 OR ((((((col0 = 834))))) OR (((col3 < 60)) AND (col3 > 156 AND col0 <= 914) AND ((col3 IS NULL OR (col0 > 934 OR col0 IS NUL [...]
# Datafusion - Datafusion expected results:
# Datafusion - Expected - 41 values hashing to 72e7635b73d7638f122d34ce3fc73682
-query error DataFusion error: SQL error: RecursionLimitExceeded
+query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
SELECT pk FROM tab2 WHERE (col3 < 370 AND ((((((col0 = 65) AND col0 < 803 AND (col3 > 637 OR col0 > 241 OR (col3 IS NULL)) AND col0 = 432 OR col0 < 881 OR (col4 IS NULL) OR col3 IS NULL OR col0 > 729 AND col0 > 165) OR ((col0 > 808) AND (((col3 IS NULL AND ((col3 > 682 OR ((((col0 <= 725)) OR col3 >= 277 OR col0 > 498 OR col0 > 792 OR col3 <= 409)))) OR (col3 = 884 OR ((((((col0 = 834))))) OR (((col3 < 60)) AND (col3 > 156 AND col0 <= 914) AND ((col3 IS NULL OR (col0 > 934 OR col0 IS NUL [...]
# Datafusion - Datafusion expected results:
# Datafusion - Expected - 41 values hashing to 72e7635b73d7638f122d34ce3fc73682
-query error DataFusion error: SQL error: RecursionLimitExceeded
+query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
SELECT pk FROM tab3 WHERE (col3 < 370 AND ((((((col0 = 65) AND col0 < 803 AND (col3 > 637 OR col0 > 241 OR (col3 IS NULL)) AND col0 = 432 OR col0 < 881 OR (col4 IS NULL) OR col3 IS NULL OR col0 > 729 AND col0 > 165) OR ((col0 > 808) AND (((col3 IS NULL AND ((col3 > 682 OR ((((col0 <= 725)) OR col3 >= 277 OR col0 > 498 OR col0 > 792 OR col3 <= 409)))) OR (col3 = 884 OR ((((((col0 = 834))))) OR (((col3 < 60)) AND (col3 > 156 AND col0 <= 914) AND ((col3 IS NULL OR (col0 > 934 OR col0 IS NUL [...]
# Datafusion - Datafusion expected results:
# Datafusion - Expected - 41 values hashing to 72e7635b73d7638f122d34ce3fc73682
-query error DataFusion error: SQL error: RecursionLimitExceeded
+query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
SELECT pk FROM tab3 WHERE (col3 < 370 AND ((((((col0 = 65) AND col0 < 803 AND (col3 > 637 OR col0 > 241 OR (col3 IS NULL)) AND col0 = 432 OR col0 < 881 OR (col4 IS NULL) OR col3 IS NULL OR col0 > 729 AND col0 > 165) OR ((col0 > 808) AND (((col3 IS NULL AND ((col3 > 682 OR ((((col0 <= 725)) OR col3 >= 277 OR col0 > 498 OR col0 > 792 OR col3 <= 409)))) OR (col3 = 884 OR ((((((col0 = 834))))) OR (((col3 < 60)) AND (col3 > 156 AND col0 <= 914) AND ((col3 IS NULL OR (col0 > 934 OR col0 IS NUL [...]
# Datafusion - Datafusion expected results:
# Datafusion - Expected - 41 values hashing to 72e7635b73d7638f122d34ce3fc73682
-query error DataFusion error: SQL error: RecursionLimitExceeded
+query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
SELECT pk FROM tab4 WHERE (col3 < 370 AND ((((((col0 = 65) AND col0 < 803 AND (col3 > 637 OR col0 > 241 OR (col3 IS NULL)) AND col0 = 432 OR col0 < 881 OR (col4 IS NULL) OR col3 IS NULL OR col0 > 729 AND col0 > 165) OR ((col0 > 808) AND (((col3 IS NULL AND ((col3 > 682 OR ((((col0 <= 725)) OR col3 >= 277 OR col0 > 498 OR col0 > 792 OR col3 <= 409)))) OR (col3 = 884 OR ((((((col0 = 834))))) OR (((col3 < 60)) AND (col3 > 156 AND col0 <= 914) AND ((col3 IS NULL OR (col0 > 934 OR col0 IS NUL [...]
# Datafusion - Datafusion expected results:
# Datafusion - Expected - 41 values hashing to 72e7635b73d7638f122d34ce3fc73682
-query error DataFusion error: SQL error: RecursionLimitExceeded
+query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
SELECT pk FROM tab4 WHERE (col3 < 370 AND ((((((col0 = 65) AND col0 < 803 AND (col3 > 637 OR col0 > 241 OR (col3 IS NULL)) AND col0 = 432 OR col0 < 881 OR (col4 IS NULL) OR col3 IS NULL OR col0 > 729 AND col0 > 165) OR ((col0 > 808) AND (((col3 IS NULL AND ((col3 > 682 OR ((((col0 <= 725)) OR col3 >= 277 OR col0 > 498 OR col0 > 792 OR col3 <= 409)))) OR (col3 = 884 OR ((((((col0 = 834))))) OR (((col3 < 60)) AND (col3 > 156 AND col0 <= 914) AND ((col3 IS NULL OR (col0 > 934 OR col0 IS NUL [...]
query I rowsort label-7460
diff --git a/data/sqlite/index/between/100/slt_good_4.slt b/data/sqlite/index/between/100/slt_good_4.slt
index 6e8b7fd..67dcde0 100644
--- a/data/sqlite/index/between/100/slt_good_4.slt
+++ b/data/sqlite/index/between/100/slt_good_4.slt
@@ -12284,52 +12284,52 @@ SELECT pk FROM tab4 WHERE ((col1 > 769.4 OR (col1 = 280.78) OR col0 > 230 OR (co
# Datafusion - Datafusion expected results:
# Datafusion - Expected - 96 values hashing to 781168732d9fe1711e5c556b09c47ceb
-query error DataFusion error: SQL error: RecursionLimitExceeded
+query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
SELECT pk FROM tab0 WHERE col3 > 80 OR col3 > 997 OR col4 > 389.98 AND (col4 BETWEEN 541.5 AND 883.21 OR ((((((col3 = 322 OR (col0 >= 523) AND col1 <= 416.8 AND (((col1 > 126.55)) AND ((((col0 < 459 AND (col4 > 128.17) AND (col0 > 674) AND col1 > 395.15 OR ((col0 < 215)) AND (col1 >= 170.99) OR ((col1 > 274.91 OR (col1 < 481.56 OR col1 > 656.11 OR col3 < 650 AND (col4 = 228.95) OR ((col1 > 838.79)) AND col0 >= 226 AND ((((col1 > 217.87 OR col4 IN (SELECT col1 FROM tab0 WHERE ((col0 >= 96 [...]
# Datafusion - Datafusion expected results:
# Datafusion - Expected - 96 values hashing to 781168732d9fe1711e5c556b09c47ceb
-query error DataFusion error: SQL error: RecursionLimitExceeded
+query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
SELECT pk FROM tab0 WHERE col3 > 80 OR col3 > 997 OR col4 > 389.98 AND ((col4 >= 541.5 AND col4 <= 883.21) OR ((((((col3 = 322 OR (col0 >= 523) AND col1 <= 416.8 AND (((col1 > 126.55)) AND ((((col0 < 459 AND (col4 > 128.17) AND (col0 > 674) AND col1 > 395.15 OR ((col0 < 215)) AND (col1 >= 170.99) OR ((col1 > 274.91 OR (col1 < 481.56 OR col1 > 656.11 OR col3 < 650 AND (col4 = 228.95) OR ((col1 > 838.79)) AND col0 >= 226 AND ((((col1 > 217.87 OR col4 IN (SELECT col1 FROM tab0 WHERE ((col0 [...]
# Datafusion - Datafusion expected results:
# Datafusion - Expected - 96 values hashing to 781168732d9fe1711e5c556b09c47ceb
-query error DataFusion error: SQL error: RecursionLimitExceeded
+query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
SELECT pk FROM tab1 WHERE col3 > 80 OR col3 > 997 OR col4 > 389.98 AND (col4 BETWEEN 541.5 AND 883.21 OR ((((((col3 = 322 OR (col0 >= 523) AND col1 <= 416.8 AND (((col1 > 126.55)) AND ((((col0 < 459 AND (col4 > 128.17) AND (col0 > 674) AND col1 > 395.15 OR ((col0 < 215)) AND (col1 >= 170.99) OR ((col1 > 274.91 OR (col1 < 481.56 OR col1 > 656.11 OR col3 < 650 AND (col4 = 228.95) OR ((col1 > 838.79)) AND col0 >= 226 AND ((((col1 > 217.87 OR col4 IN (SELECT col1 FROM tab1 WHERE ((col0 >= 96 [...]
# Datafusion - Datafusion expected results:
# Datafusion - Expected - 96 values hashing to 781168732d9fe1711e5c556b09c47ceb
-query error DataFusion error: SQL error: RecursionLimitExceeded
+query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
SELECT pk FROM tab1 WHERE col3 > 80 OR col3 > 997 OR col4 > 389.98 AND ((col4 >= 541.5 AND col4 <= 883.21) OR ((((((col3 = 322 OR (col0 >= 523) AND col1 <= 416.8 AND (((col1 > 126.55)) AND ((((col0 < 459 AND (col4 > 128.17) AND (col0 > 674) AND col1 > 395.15 OR ((col0 < 215)) AND (col1 >= 170.99) OR ((col1 > 274.91 OR (col1 < 481.56 OR col1 > 656.11 OR col3 < 650 AND (col4 = 228.95) OR ((col1 > 838.79)) AND col0 >= 226 AND ((((col1 > 217.87 OR col4 IN (SELECT col1 FROM tab1 WHERE ((col0 [...]
# Datafusion - Datafusion expected results:
# Datafusion - Expected - 96 values hashing to 781168732d9fe1711e5c556b09c47ceb
-query error DataFusion error: SQL error: RecursionLimitExceeded
+query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
SELECT pk FROM tab2 WHERE col3 > 80 OR col3 > 997 OR col4 > 389.98 AND (col4 BETWEEN 541.5 AND 883.21 OR ((((((col3 = 322 OR (col0 >= 523) AND col1 <= 416.8 AND (((col1 > 126.55)) AND ((((col0 < 459 AND (col4 > 128.17) AND (col0 > 674) AND col1 > 395.15 OR ((col0 < 215)) AND (col1 >= 170.99) OR ((col1 > 274.91 OR (col1 < 481.56 OR col1 > 656.11 OR col3 < 650 AND (col4 = 228.95) OR ((col1 > 838.79)) AND col0 >= 226 AND ((((col1 > 217.87 OR col4 IN (SELECT col1 FROM tab2 WHERE ((col0 >= 96 [...]
# Datafusion - Datafusion expected results:
# Datafusion - Expected - 96 values hashing to 781168732d9fe1711e5c556b09c47ceb
-query error DataFusion error: SQL error: RecursionLimitExceeded
+query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
SELECT pk FROM tab2 WHERE col3 > 80 OR col3 > 997 OR col4 > 389.98 AND ((col4 >= 541.5 AND col4 <= 883.21) OR ((((((col3 = 322 OR (col0 >= 523) AND col1 <= 416.8 AND (((col1 > 126.55)) AND ((((col0 < 459 AND (col4 > 128.17) AND (col0 > 674) AND col1 > 395.15 OR ((col0 < 215)) AND (col1 >= 170.99) OR ((col1 > 274.91 OR (col1 < 481.56 OR col1 > 656.11 OR col3 < 650 AND (col4 = 228.95) OR ((col1 > 838.79)) AND col0 >= 226 AND ((((col1 > 217.87 OR col4 IN (SELECT col1 FROM tab2 WHERE ((col0 [...]
# Datafusion - Datafusion expected results:
# Datafusion - Expected - 96 values hashing to 781168732d9fe1711e5c556b09c47ceb
-query error DataFusion error: SQL error: RecursionLimitExceeded
+query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
SELECT pk FROM tab3 WHERE col3 > 80 OR col3 > 997 OR col4 > 389.98 AND (col4 BETWEEN 541.5 AND 883.21 OR ((((((col3 = 322 OR (col0 >= 523) AND col1 <= 416.8 AND (((col1 > 126.55)) AND ((((col0 < 459 AND (col4 > 128.17) AND (col0 > 674) AND col1 > 395.15 OR ((col0 < 215)) AND (col1 >= 170.99) OR ((col1 > 274.91 OR (col1 < 481.56 OR col1 > 656.11 OR col3 < 650 AND (col4 = 228.95) OR ((col1 > 838.79)) AND col0 >= 226 AND ((((col1 > 217.87 OR col4 IN (SELECT col1 FROM tab3 WHERE ((col0 >= 96 [...]
# Datafusion - Datafusion expected results:
# Datafusion - Expected - 96 values hashing to 781168732d9fe1711e5c556b09c47ceb
-query error DataFusion error: SQL error: RecursionLimitExceeded
+query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
SELECT pk FROM tab3 WHERE col3 > 80 OR col3 > 997 OR col4 > 389.98 AND ((col4 >= 541.5 AND col4 <= 883.21) OR ((((((col3 = 322 OR (col0 >= 523) AND col1 <= 416.8 AND (((col1 > 126.55)) AND ((((col0 < 459 AND (col4 > 128.17) AND (col0 > 674) AND col1 > 395.15 OR ((col0 < 215)) AND (col1 >= 170.99) OR ((col1 > 274.91 OR (col1 < 481.56 OR col1 > 656.11 OR col3 < 650 AND (col4 = 228.95) OR ((col1 > 838.79)) AND col0 >= 226 AND ((((col1 > 217.87 OR col4 IN (SELECT col1 FROM tab3 WHERE ((col0 [...]
# Datafusion - Datafusion expected results:
# Datafusion - Expected - 96 values hashing to 781168732d9fe1711e5c556b09c47ceb
-query error DataFusion error: SQL error: RecursionLimitExceeded
+query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
SELECT pk FROM tab4 WHERE col3 > 80 OR col3 > 997 OR col4 > 389.98 AND (col4 BETWEEN 541.5 AND 883.21 OR ((((((col3 = 322 OR (col0 >= 523) AND col1 <= 416.8 AND (((col1 > 126.55)) AND ((((col0 < 459 AND (col4 > 128.17) AND (col0 > 674) AND col1 > 395.15 OR ((col0 < 215)) AND (col1 >= 170.99) OR ((col1 > 274.91 OR (col1 < 481.56 OR col1 > 656.11 OR col3 < 650 AND (col4 = 228.95) OR ((col1 > 838.79)) AND col0 >= 226 AND ((((col1 > 217.87 OR col4 IN (SELECT col1 FROM tab4 WHERE ((col0 >= 96 [...]
# Datafusion - Datafusion expected results:
# Datafusion - Expected - 96 values hashing to 781168732d9fe1711e5c556b09c47ceb
-query error DataFusion error: SQL error: RecursionLimitExceeded
+query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
SELECT pk FROM tab4 WHERE col3 > 80 OR col3 > 997 OR col4 > 389.98 AND ((col4 >= 541.5 AND col4 <= 883.21) OR ((((((col3 = 322 OR (col0 >= 523) AND col1 <= 416.8 AND (((col1 > 126.55)) AND ((((col0 < 459 AND (col4 > 128.17) AND (col0 > 674) AND col1 > 395.15 OR ((col0 < 215)) AND (col1 >= 170.99) OR ((col1 > 274.91 OR (col1 < 481.56 OR col1 > 656.11 OR col3 < 650 AND (col4 = 228.95) OR ((col1 > 838.79)) AND col0 >= 226 AND ((((col1 > 217.87 OR col4 IN (SELECT col1 FROM tab4 WHERE ((col0 [...]
query I rowsort label-2470
diff --git a/data/sqlite/index/commute/10/slt_good_14.slt b/data/sqlite/index/commute/10/slt_good_14.slt
index 1bed2e5..60e9218 100644
--- a/data/sqlite/index/commute/10/slt_good_14.slt
+++ b/data/sqlite/index/commute/10/slt_good_14.slt
@@ -27273,61 +27273,61 @@ SELECT pk FROM tab4 WHERE (5 >= col3) OR col3 IS NULL AND ((61 > col3) OR 85.37
# Datafusion - Datafusion expected results:
# Datafusion - Expected - 0
# Datafusion - Expected - 4
-query error DataFusion error: SQL error: RecursionLimitExceeded
+query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
SELECT pk FROM tab0 WHERE (col1 < 88.23) AND (col0 IN (29,12,98,56,26) AND (col0 IN (70,18,12,64)) OR (col3 >= 57)) OR col0 IN (95,3,70) AND (((((col1 BETWEEN 88.2 AND 4.25 AND col4 >= 27.85 AND ((col3 = 80)) OR col3 >= 97 AND (col1 IS NULL AND col1 >= 44.49 OR (col0 > 19) OR col3 < 38 OR col1 <= 72.89 AND ((col3 IN (40,80) AND ((((col1 IN (62.82,77.92,70.76,76.9,83.33,8.31) AND col0 <= 93) OR col0 = 6 OR (col1 < 45.95 OR ((col3 > 96) AND col0 <= 70) OR col1 < 31.61) AND col4 >= 98.99 AN [...]
# Datafusion - Datafusion expected results:
# Datafusion - Expected - 0
# Datafusion - Expected - 4
-query error DataFusion error: SQL error: RecursionLimitExceeded
+query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
SELECT pk FROM tab0 WHERE (88.23 > col1) AND (col0 IN (29,12,98,56,26) AND (col0 IN (70,18,12,64)) OR (57 <= col3)) OR col0 IN (95,3,70) AND (((((col1 BETWEEN 88.2 AND 4.25 AND 27.85 <= col4 AND ((80 = col3)) OR 97 <= col3 AND (col1 IS NULL AND 44.49 <= col1 OR (19 < col0) OR 38 > col3 OR 72.89 >= col1 AND ((col3 IN (40,80) AND ((((col1 IN (62.82,77.92,70.76,76.9,83.33,8.31) AND 93 >= col0) OR 6 = col0 OR (45.95 > col1 OR ((96 < col3) AND 70 >= col0) OR 31.61 > col1) AND 98.99 <= col4 AN [...]
# Datafusion - Datafusion expected results:
# Datafusion - Expected - 0
# Datafusion - Expected - 4
-query error DataFusion error: SQL error: RecursionLimitExceeded
+query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
SELECT pk FROM tab1 WHERE (col1 < 88.23) AND (col0 IN (29,12,98,56,26) AND (col0 IN (70,18,12,64)) OR (col3 >= 57)) OR col0 IN (95,3,70) AND (((((col1 BETWEEN 88.2 AND 4.25 AND col4 >= 27.85 AND ((col3 = 80)) OR col3 >= 97 AND (col1 IS NULL AND col1 >= 44.49 OR (col0 > 19) OR col3 < 38 OR col1 <= 72.89 AND ((col3 IN (40,80) AND ((((col1 IN (62.82,77.92,70.76,76.9,83.33,8.31) AND col0 <= 93) OR col0 = 6 OR (col1 < 45.95 OR ((col3 > 96) AND col0 <= 70) OR col1 < 31.61) AND col4 >= 98.99 AN [...]
# Datafusion - Datafusion expected results:
# Datafusion - Expected - 0
# Datafusion - Expected - 4
-query error DataFusion error: SQL error: RecursionLimitExceeded
+query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
SELECT pk FROM tab1 WHERE (88.23 > col1) AND (col0 IN (29,12,98,56,26) AND (col0 IN (70,18,12,64)) OR (57 <= col3)) OR col0 IN (95,3,70) AND (((((col1 BETWEEN 88.2 AND 4.25 AND 27.85 <= col4 AND ((80 = col3)) OR 97 <= col3 AND (col1 IS NULL AND 44.49 <= col1 OR (19 < col0) OR 38 > col3 OR 72.89 >= col1 AND ((col3 IN (40,80) AND ((((col1 IN (62.82,77.92,70.76,76.9,83.33,8.31) AND 93 >= col0) OR 6 = col0 OR (45.95 > col1 OR ((96 < col3) AND 70 >= col0) OR 31.61 > col1) AND 98.99 <= col4 AN [...]
# Datafusion - Datafusion expected results:
# Datafusion - Expected - 0
# Datafusion - Expected - 4
-query error DataFusion error: SQL error: RecursionLimitExceeded
+query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
SELECT pk FROM tab2 WHERE (col1 < 88.23) AND (col0 IN (29,12,98,56,26) AND (col0 IN (70,18,12,64)) OR (col3 >= 57)) OR col0 IN (95,3,70) AND (((((col1 BETWEEN 88.2 AND 4.25 AND col4 >= 27.85 AND ((col3 = 80)) OR col3 >= 97 AND (col1 IS NULL AND col1 >= 44.49 OR (col0 > 19) OR col3 < 38 OR col1 <= 72.89 AND ((col3 IN (40,80) AND ((((col1 IN (62.82,77.92,70.76,76.9,83.33,8.31) AND col0 <= 93) OR col0 = 6 OR (col1 < 45.95 OR ((col3 > 96) AND col0 <= 70) OR col1 < 31.61) AND col4 >= 98.99 AN [...]
# Datafusion - Datafusion expected results:
# Datafusion - Expected - 0
# Datafusion - Expected - 4
-query error DataFusion error: SQL error: RecursionLimitExceeded
+query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
SELECT pk FROM tab2 WHERE (88.23 > col1) AND (col0 IN (29,12,98,56,26) AND (col0 IN (70,18,12,64)) OR (57 <= col3)) OR col0 IN (95,3,70) AND (((((col1 BETWEEN 88.2 AND 4.25 AND 27.85 <= col4 AND ((80 = col3)) OR 97 <= col3 AND (col1 IS NULL AND 44.49 <= col1 OR (19 < col0) OR 38 > col3 OR 72.89 >= col1 AND ((col3 IN (40,80) AND ((((col1 IN (62.82,77.92,70.76,76.9,83.33,8.31) AND 93 >= col0) OR 6 = col0 OR (45.95 > col1 OR ((96 < col3) AND 70 >= col0) OR 31.61 > col1) AND 98.99 <= col4 AN [...]
# Datafusion - Datafusion expected results:
# Datafusion - Expected - 0
# Datafusion - Expected - 4
-query error DataFusion error: SQL error: RecursionLimitExceeded
+query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
SELECT pk FROM tab3 WHERE (col1 < 88.23) AND (col0 IN (29,12,98,56,26) AND (col0 IN (70,18,12,64)) OR (col3 >= 57)) OR col0 IN (95,3,70) AND (((((col1 BETWEEN 88.2 AND 4.25 AND col4 >= 27.85 AND ((col3 = 80)) OR col3 >= 97 AND (col1 IS NULL AND col1 >= 44.49 OR (col0 > 19) OR col3 < 38 OR col1 <= 72.89 AND ((col3 IN (40,80) AND ((((col1 IN (62.82,77.92,70.76,76.9,83.33,8.31) AND col0 <= 93) OR col0 = 6 OR (col1 < 45.95 OR ((col3 > 96) AND col0 <= 70) OR col1 < 31.61) AND col4 >= 98.99 AN [...]
# Datafusion - Datafusion expected results:
# Datafusion - Expected - 0
# Datafusion - Expected - 4
-query error DataFusion error: SQL error: RecursionLimitExceeded
+query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
SELECT pk FROM tab3 WHERE (88.23 > col1) AND (col0 IN (29,12,98,56,26) AND (col0 IN (70,18,12,64)) OR (57 <= col3)) OR col0 IN (95,3,70) AND (((((col1 BETWEEN 88.2 AND 4.25 AND 27.85 <= col4 AND ((80 = col3)) OR 97 <= col3 AND (col1 IS NULL AND 44.49 <= col1 OR (19 < col0) OR 38 > col3 OR 72.89 >= col1 AND ((col3 IN (40,80) AND ((((col1 IN (62.82,77.92,70.76,76.9,83.33,8.31) AND 93 >= col0) OR 6 = col0 OR (45.95 > col1 OR ((96 < col3) AND 70 >= col0) OR 31.61 > col1) AND 98.99 <= col4 AN [...]
# Datafusion - Datafusion expected results:
# Datafusion - Expected - 0
# Datafusion - Expected - 4
-query error DataFusion error: SQL error: RecursionLimitExceeded
+query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
SELECT pk FROM tab4 WHERE (col1 < 88.23) AND (col0 IN (29,12,98,56,26) AND (col0 IN (70,18,12,64)) OR (col3 >= 57)) OR col0 IN (95,3,70) AND (((((col1 BETWEEN 88.2 AND 4.25 AND col4 >= 27.85 AND ((col3 = 80)) OR col3 >= 97 AND (col1 IS NULL AND col1 >= 44.49 OR (col0 > 19) OR col3 < 38 OR col1 <= 72.89 AND ((col3 IN (40,80) AND ((((col1 IN (62.82,77.92,70.76,76.9,83.33,8.31) AND col0 <= 93) OR col0 = 6 OR (col1 < 45.95 OR ((col3 > 96) AND col0 <= 70) OR col1 < 31.61) AND col4 >= 98.99 AN [...]
# Datafusion - Datafusion expected results:
# Datafusion - Expected - 0
# Datafusion - Expected - 4
-query error DataFusion error: SQL error: RecursionLimitExceeded
+query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
SELECT pk FROM tab4 WHERE (88.23 > col1) AND (col0 IN (29,12,98,56,26) AND (col0 IN (70,18,12,64)) OR (57 <= col3)) OR col0 IN (95,3,70) AND (((((col1 BETWEEN 88.2 AND 4.25 AND 27.85 <= col4 AND ((80 = col3)) OR 97 <= col3 AND (col1 IS NULL AND 44.49 <= col1 OR (19 < col0) OR 38 > col3 OR 72.89 >= col1 AND ((col3 IN (40,80) AND ((((col1 IN (62.82,77.92,70.76,76.9,83.33,8.31) AND 93 >= col0) OR 6 = col0 OR (45.95 > col1 OR ((96 < col3) AND 70 >= col0) OR 31.61 > col1) AND 98.99 <= col4 AN [...]
query I rowsort label-3920
diff --git a/data/sqlite/index/in/10/slt_good_0.slt b/data/sqlite/index/in/10/slt_good_0.slt
index 35f13ae..fe7d56a 100644
--- a/data/sqlite/index/in/10/slt_good_0.slt
+++ b/data/sqlite/index/in/10/slt_good_0.slt
@@ -2885,7 +2885,7 @@ SELECT pk FROM tab4 WHERE (col4 = 43.62 AND ((col3 = 50 OR (col4 < 3.57) AND col
# Datafusion - Expected - 6
# Datafusion - Expected - 8
# Datafusion - Expected - 9
-query error DataFusion error: SQL error: RecursionLimitExceeded
+query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
SELECT pk FROM tab0 WHERE col3 > 31 OR col3 <= 49 AND (col0 IN (SELECT col3 FROM tab0 WHERE col3 IN (74,13,49,39,67) OR col4 >= 87.31 OR col1 <= 89.41 AND col0 > 12 AND (col3 < 4 OR col0 <= 52 OR col1 > 0.4 AND col3 > 5 AND col0 = 86 OR ((((col0 = 83 OR (((col0 IN (77) OR ((col1 > 51.39)) AND col3 < 80 AND col0 > 97 OR (col4 < 15.86 AND col1 < 33.96 AND (col3 IN (SELECT col0 FROM tab0 WHERE col0 > 45) AND (((col0 < 76) AND (col3 > 20) OR ((col3 <= 28)) OR col1 <= 38.33 AND ((col3 BETWEEN [...]
# Datafusion - Datafusion expected results:
@@ -2896,7 +2896,7 @@ SELECT pk FROM tab0 WHERE col3 > 31 OR col3 <= 49 AND (col0 IN (SELECT col3 FROM
# Datafusion - Expected - 6
# Datafusion - Expected - 8
# Datafusion - Expected - 9
-query error DataFusion error: SQL error: RecursionLimitExceeded
+query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
SELECT pk FROM tab0 WHERE col3 > 31 OR col3 <= 49 AND (col0 IN (SELECT col3 FROM tab0 WHERE col3 IN (74,39,49,13,67) OR col4 >= 87.31 OR col1 <= 89.41 AND col0 > 12 AND (col3 < 4 OR col0 <= 52 OR col1 > 0.4 AND col3 > 5 AND col0 = 86 OR ((((col0 = 83 OR (((col0 IN (77) OR ((col1 > 51.39)) AND col3 < 80 AND col0 > 97 OR (col4 < 15.86 AND col1 < 33.96 AND (col3 IN (SELECT col0 FROM tab0 WHERE col0 > 45) AND (((col0 < 76) AND (col3 > 20) OR ((col3 <= 28)) OR col1 <= 38.33 AND ((col3 BETWEEN [...]
# Datafusion - Datafusion expected results:
@@ -2907,7 +2907,7 @@ SELECT pk FROM tab0 WHERE col3 > 31 OR col3 <= 49 AND (col0 IN (SELECT col3 FROM
# Datafusion - Expected - 6
# Datafusion - Expected - 8
# Datafusion - Expected - 9
-query error DataFusion error: SQL error: RecursionLimitExceeded
+query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
SELECT pk FROM tab0 WHERE col3 > 31 OR col3 <= 49 AND (col0 IN (SELECT col3 FROM tab0 WHERE (col3 = 74 OR col3 = 13 OR col3 = 49 OR col3 = 39 OR col3 = 67) OR col4 >= 87.31 OR col1 <= 89.41 AND col0 > 12 AND (col3 < 4 OR col0 <= 52 OR col1 > 0.4 AND col3 > 5 AND col0 = 86 OR ((((col0 = 83 OR ((((col0 = 77) OR ((col1 > 51.39)) AND col3 < 80 AND col0 > 97 OR (col4 < 15.86 AND col1 < 33.96 AND (col3 IN (SELECT col0 FROM tab0 WHERE col0 > 45) AND (((col0 < 76) AND (col3 > 20) OR ((col3 <= 28 [...]
# Datafusion - Datafusion expected results:
@@ -2918,7 +2918,7 @@ SELECT pk FROM tab0 WHERE col3 > 31 OR col3 <= 49 AND (col0 IN (SELECT col3 FROM
# Datafusion - Expected - 6
# Datafusion - Expected - 8
# Datafusion - Expected - 9
-query error DataFusion error: SQL error: RecursionLimitExceeded
+query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
SELECT pk FROM tab1 WHERE col3 > 31 OR col3 <= 49 AND (col0 IN (SELECT col3 FROM tab1 WHERE col3 IN (74,13,49,39,67) OR col4 >= 87.31 OR col1 <= 89.41 AND col0 > 12 AND (col3 < 4 OR col0 <= 52 OR col1 > 0.4 AND col3 > 5 AND col0 = 86 OR ((((col0 = 83 OR (((col0 IN (77) OR ((col1 > 51.39)) AND col3 < 80 AND col0 > 97 OR (col4 < 15.86 AND col1 < 33.96 AND (col3 IN (SELECT col0 FROM tab1 WHERE col0 > 45) AND (((col0 < 76) AND (col3 > 20) OR ((col3 <= 28)) OR col1 <= 38.33 AND ((col3 BETWEEN [...]
# Datafusion - Datafusion expected results:
@@ -2929,7 +2929,7 @@ SELECT pk FROM tab1 WHERE col3 > 31 OR col3 <= 49 AND (col0 IN (SELECT col3 FROM
# Datafusion - Expected - 6
# Datafusion - Expected - 8
# Datafusion - Expected - 9
-query error DataFusion error: SQL error: RecursionLimitExceeded
+query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
SELECT pk FROM tab1 WHERE col3 > 31 OR col3 <= 49 AND (col0 IN (SELECT col3 FROM tab1 WHERE col3 IN (74,39,49,13,67) OR col4 >= 87.31 OR col1 <= 89.41 AND col0 > 12 AND (col3 < 4 OR col0 <= 52 OR col1 > 0.4 AND col3 > 5 AND col0 = 86 OR ((((col0 = 83 OR (((col0 IN (77) OR ((col1 > 51.39)) AND col3 < 80 AND col0 > 97 OR (col4 < 15.86 AND col1 < 33.96 AND (col3 IN (SELECT col0 FROM tab1 WHERE col0 > 45) AND (((col0 < 76) AND (col3 > 20) OR ((col3 <= 28)) OR col1 <= 38.33 AND ((col3 BETWEEN [...]
# Datafusion - Datafusion expected results:
@@ -2940,7 +2940,7 @@ SELECT pk FROM tab1 WHERE col3 > 31 OR col3 <= 49 AND (col0 IN (SELECT col3 FROM
# Datafusion - Expected - 6
# Datafusion - Expected - 8
# Datafusion - Expected - 9
-query error DataFusion error: SQL error: RecursionLimitExceeded
+query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
SELECT pk FROM tab1 WHERE col3 > 31 OR col3 <= 49 AND (col0 IN (SELECT col3 FROM tab1 WHERE (col3 = 74 OR col3 = 13 OR col3 = 49 OR col3 = 39 OR col3 = 67) OR col4 >= 87.31 OR col1 <= 89.41 AND col0 > 12 AND (col3 < 4 OR col0 <= 52 OR col1 > 0.4 AND col3 > 5 AND col0 = 86 OR ((((col0 = 83 OR ((((col0 = 77) OR ((col1 > 51.39)) AND col3 < 80 AND col0 > 97 OR (col4 < 15.86 AND col1 < 33.96 AND (col3 IN (SELECT col0 FROM tab1 WHERE col0 > 45) AND (((col0 < 76) AND (col3 > 20) OR ((col3 <= 28 [...]
# Datafusion - Datafusion expected results:
@@ -2951,7 +2951,7 @@ SELECT pk FROM tab1 WHERE col3 > 31 OR col3 <= 49 AND (col0 IN (SELECT col3 FROM
# Datafusion - Expected - 6
# Datafusion - Expected - 8
# Datafusion - Expected - 9
-query error DataFusion error: SQL error: RecursionLimitExceeded
+query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
SELECT pk FROM tab2 WHERE col3 > 31 OR col3 <= 49 AND (col0 IN (SELECT col3 FROM tab2 WHERE col3 IN (74,13,49,39,67) OR col4 >= 87.31 OR col1 <= 89.41 AND col0 > 12 AND (col3 < 4 OR col0 <= 52 OR col1 > 0.4 AND col3 > 5 AND col0 = 86 OR ((((col0 = 83 OR (((col0 IN (77) OR ((col1 > 51.39)) AND col3 < 80 AND col0 > 97 OR (col4 < 15.86 AND col1 < 33.96 AND (col3 IN (SELECT col0 FROM tab2 WHERE col0 > 45) AND (((col0 < 76) AND (col3 > 20) OR ((col3 <= 28)) OR col1 <= 38.33 AND ((col3 BETWEEN [...]
# Datafusion - Datafusion expected results:
@@ -2962,7 +2962,7 @@ SELECT pk FROM tab2 WHERE col3 > 31 OR col3 <= 49 AND (col0 IN (SELECT col3 FROM
# Datafusion - Expected - 6
# Datafusion - Expected - 8
# Datafusion - Expected - 9
-query error DataFusion error: SQL error: RecursionLimitExceeded
+query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
SELECT pk FROM tab2 WHERE col3 > 31 OR col3 <= 49 AND (col0 IN (SELECT col3 FROM tab2 WHERE col3 IN (74,39,49,13,67) OR col4 >= 87.31 OR col1 <= 89.41 AND col0 > 12 AND (col3 < 4 OR col0 <= 52 OR col1 > 0.4 AND col3 > 5 AND col0 = 86 OR ((((col0 = 83 OR (((col0 IN (77) OR ((col1 > 51.39)) AND col3 < 80 AND col0 > 97 OR (col4 < 15.86 AND col1 < 33.96 AND (col3 IN (SELECT col0 FROM tab2 WHERE col0 > 45) AND (((col0 < 76) AND (col3 > 20) OR ((col3 <= 28)) OR col1 <= 38.33 AND ((col3 BETWEEN [...]
# Datafusion - Datafusion expected results:
@@ -2973,7 +2973,7 @@ SELECT pk FROM tab2 WHERE col3 > 31 OR col3 <= 49 AND (col0 IN (SELECT col3 FROM
# Datafusion - Expected - 6
# Datafusion - Expected - 8
# Datafusion - Expected - 9
-query error DataFusion error: SQL error: RecursionLimitExceeded
+query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
SELECT pk FROM tab2 WHERE col3 > 31 OR col3 <= 49 AND (col0 IN (SELECT col3 FROM tab2 WHERE (col3 = 74 OR col3 = 13 OR col3 = 49 OR col3 = 39 OR col3 = 67) OR col4 >= 87.31 OR col1 <= 89.41 AND col0 > 12 AND (col3 < 4 OR col0 <= 52 OR col1 > 0.4 AND col3 > 5 AND col0 = 86 OR ((((col0 = 83 OR ((((col0 = 77) OR ((col1 > 51.39)) AND col3 < 80 AND col0 > 97 OR (col4 < 15.86 AND col1 < 33.96 AND (col3 IN (SELECT col0 FROM tab2 WHERE col0 > 45) AND (((col0 < 76) AND (col3 > 20) OR ((col3 <= 28 [...]
# Datafusion - Datafusion expected results:
@@ -2984,7 +2984,7 @@ SELECT pk FROM tab2 WHERE col3 > 31 OR col3 <= 49 AND (col0 IN (SELECT col3 FROM
# Datafusion - Expected - 6
# Datafusion - Expected - 8
# Datafusion - Expected - 9
-query error DataFusion error: SQL error: RecursionLimitExceeded
+query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
SELECT pk FROM tab3 WHERE col3 > 31 OR col3 <= 49 AND (col0 IN (SELECT col3 FROM tab3 WHERE col3 IN (74,13,49,39,67) OR col4 >= 87.31 OR col1 <= 89.41 AND col0 > 12 AND (col3 < 4 OR col0 <= 52 OR col1 > 0.4 AND col3 > 5 AND col0 = 86 OR ((((col0 = 83 OR (((col0 IN (77) OR ((col1 > 51.39)) AND col3 < 80 AND col0 > 97 OR (col4 < 15.86 AND col1 < 33.96 AND (col3 IN (SELECT col0 FROM tab3 WHERE col0 > 45) AND (((col0 < 76) AND (col3 > 20) OR ((col3 <= 28)) OR col1 <= 38.33 AND ((col3 BETWEEN [...]
# Datafusion - Datafusion expected results:
@@ -2995,7 +2995,7 @@ SELECT pk FROM tab3 WHERE col3 > 31 OR col3 <= 49 AND (col0 IN (SELECT col3 FROM
# Datafusion - Expected - 6
# Datafusion - Expected - 8
# Datafusion - Expected - 9
-query error DataFusion error: SQL error: RecursionLimitExceeded
+query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
SELECT pk FROM tab3 WHERE col3 > 31 OR col3 <= 49 AND (col0 IN (SELECT col3 FROM tab3 WHERE col3 IN (74,39,49,13,67) OR col4 >= 87.31 OR col1 <= 89.41 AND col0 > 12 AND (col3 < 4 OR col0 <= 52 OR col1 > 0.4 AND col3 > 5 AND col0 = 86 OR ((((col0 = 83 OR (((col0 IN (77) OR ((col1 > 51.39)) AND col3 < 80 AND col0 > 97 OR (col4 < 15.86 AND col1 < 33.96 AND (col3 IN (SELECT col0 FROM tab3 WHERE col0 > 45) AND (((col0 < 76) AND (col3 > 20) OR ((col3 <= 28)) OR col1 <= 38.33 AND ((col3 BETWEEN [...]
# Datafusion - Datafusion expected results:
@@ -3006,7 +3006,7 @@ SELECT pk FROM tab3 WHERE col3 > 31 OR col3 <= 49 AND (col0 IN (SELECT col3 FROM
# Datafusion - Expected - 6
# Datafusion - Expected - 8
# Datafusion - Expected - 9
-query error DataFusion error: SQL error: RecursionLimitExceeded
+query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
SELECT pk FROM tab3 WHERE col3 > 31 OR col3 <= 49 AND (col0 IN (SELECT col3 FROM tab3 WHERE (col3 = 74 OR col3 = 13 OR col3 = 49 OR col3 = 39 OR col3 = 67) OR col4 >= 87.31 OR col1 <= 89.41 AND col0 > 12 AND (col3 < 4 OR col0 <= 52 OR col1 > 0.4 AND col3 > 5 AND col0 = 86 OR ((((col0 = 83 OR ((((col0 = 77) OR ((col1 > 51.39)) AND col3 < 80 AND col0 > 97 OR (col4 < 15.86 AND col1 < 33.96 AND (col3 IN (SELECT col0 FROM tab3 WHERE col0 > 45) AND (((col0 < 76) AND (col3 > 20) OR ((col3 <= 28 [...]
# Datafusion - Datafusion expected results:
@@ -3017,7 +3017,7 @@ SELECT pk FROM tab3 WHERE col3 > 31 OR col3 <= 49 AND (col0 IN (SELECT col3 FROM
# Datafusion - Expected - 6
# Datafusion - Expected - 8
# Datafusion - Expected - 9
-query error DataFusion error: SQL error: RecursionLimitExceeded
+query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
SELECT pk FROM tab4 WHERE col3 > 31 OR col3 <= 49 AND (col0 IN (SELECT col3 FROM tab4 WHERE col3 IN (74,13,49,39,67) OR col4 >= 87.31 OR col1 <= 89.41 AND col0 > 12 AND (col3 < 4 OR col0 <= 52 OR col1 > 0.4 AND col3 > 5 AND col0 = 86 OR ((((col0 = 83 OR (((col0 IN (77) OR ((col1 > 51.39)) AND col3 < 80 AND col0 > 97 OR (col4 < 15.86 AND col1 < 33.96 AND (col3 IN (SELECT col0 FROM tab4 WHERE col0 > 45) AND (((col0 < 76) AND (col3 > 20) OR ((col3 <= 28)) OR col1 <= 38.33 AND ((col3 BETWEEN [...]
# Datafusion - Datafusion expected results:
@@ -3028,7 +3028,7 @@ SELECT pk FROM tab4 WHERE col3 > 31 OR col3 <= 49 AND (col0 IN (SELECT col3 FROM
# Datafusion - Expected - 6
# Datafusion - Expected - 8
# Datafusion - Expected - 9
-query error DataFusion error: SQL error: RecursionLimitExceeded
+query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
SELECT pk FROM tab4 WHERE col3 > 31 OR col3 <= 49 AND (col0 IN (SELECT col3 FROM tab4 WHERE col3 IN (74,39,49,13,67) OR col4 >= 87.31 OR col1 <= 89.41 AND col0 > 12 AND (col3 < 4 OR col0 <= 52 OR col1 > 0.4 AND col3 > 5 AND col0 = 86 OR ((((col0 = 83 OR (((col0 IN (77) OR ((col1 > 51.39)) AND col3 < 80 AND col0 > 97 OR (col4 < 15.86 AND col1 < 33.96 AND (col3 IN (SELECT col0 FROM tab4 WHERE col0 > 45) AND (((col0 < 76) AND (col3 > 20) OR ((col3 <= 28)) OR col1 <= 38.33 AND ((col3 BETWEEN [...]
# Datafusion - Datafusion expected results:
@@ -3039,7 +3039,7 @@ SELECT pk FROM tab4 WHERE col3 > 31 OR col3 <= 49 AND (col0 IN (SELECT col3 FROM
# Datafusion - Expected - 6
# Datafusion - Expected - 8
# Datafusion - Expected - 9
-query error DataFusion error: SQL error: RecursionLimitExceeded
+query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
SELECT pk FROM tab4 WHERE col3 > 31 OR col3 <= 49 AND (col0 IN (SELECT col3 FROM tab4 WHERE (col3 = 74 OR col3 = 13 OR col3 = 49 OR col3 = 39 OR col3 = 67) OR col4 >= 87.31 OR col1 <= 89.41 AND col0 > 12 AND (col3 < 4 OR col0 <= 52 OR col1 > 0.4 AND col3 > 5 AND col0 = 86 OR ((((col0 = 83 OR ((((col0 = 77) OR ((col1 > 51.39)) AND col3 < 80 AND col0 > 97 OR (col4 < 15.86 AND col1 < 33.96 AND (col3 IN (SELECT col0 FROM tab4 WHERE col0 > 45) AND (((col0 < 76) AND (col3 > 20) OR ((col3 <= 28 [...]
query I rowsort label-435
diff --git a/data/sqlite/index/in/10/slt_good_1.slt b/data/sqlite/index/in/10/slt_good_1.slt
index 385cb7e..0f31603 100644
--- a/data/sqlite/index/in/10/slt_good_1.slt
+++ b/data/sqlite/index/in/10/slt_good_1.slt
@@ -39587,63 +39587,63 @@ SELECT pk FROM tab4 WHERE ((col4 = 60.11 OR col4 = 73.54 OR col4 = 99.12 OR col4
----
# Datafusion - Datafusion expected results:
-query error DataFusion error: SQL error: RecursionLimitExceeded
+query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
SELECT pk FROM tab0 WHERE col0 IN (SELECT col3 FROM tab0 WHERE (col3 = 87 OR col0 > 47 AND (col0 BETWEEN 8 AND 79) OR col3 <= 28 AND (((col3 > 74 AND col1 IN (48.31,29.5,55.50,10.95,94.4,37.35) OR col0 IN (4,46,13) OR col1 > 46.32 AND (((col1 = 31.94)) OR col3 IS NULL) AND ((col0 IN (52,21,61,45) OR col1 BETWEEN 36.77 AND 87.56 AND (col1 > 25.86) AND col3 > 84 OR col0 = 40 AND (((col3 <= 74)) OR (col4 < 62.74))) AND col0 = 61)))) AND ((((col3 <= 80 OR col3 < 57 AND (col3 <= 11 OR col0 >= [...]
# Datafusion - Datafusion expected results:
-query error DataFusion error: SQL error: RecursionLimitExceeded
+query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
SELECT pk FROM tab0 WHERE col0 IN (SELECT col3 FROM tab0 WHERE (col3 = 87 OR col0 > 47 AND (col0 BETWEEN 8 AND 79) OR col3 <= 28 AND (((col3 > 74 AND col1 IN (10.95,37.35,94.4,48.31,55.50,29.5) OR col0 IN (46,4,13) OR col1 > 46.32 AND (((col1 = 31.94)) OR col3 IS NULL) AND ((col0 IN (52,21,61,45) OR col1 BETWEEN 36.77 AND 87.56 AND (col1 > 25.86) AND col3 > 84 OR col0 = 40 AND (((col3 <= 74)) OR (col4 < 62.74))) AND col0 = 61)))) AND ((((col3 <= 80 OR col3 < 57 AND (col3 <= 11 OR col0 >= [...]
# Datafusion - Datafusion expected results:
-query error DataFusion error: SQL error: RecursionLimitExceeded
+query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
SELECT pk FROM tab0 WHERE col0 IN (SELECT col3 FROM tab0 WHERE (col3 = 87 OR col0 > 47 AND (col0 BETWEEN 8 AND 79) OR col3 <= 28 AND (((col3 > 74 AND (col1 = 48.31 OR col1 = 29.5 OR col1 = 55.50 OR col1 = 10.95 OR col1 = 94.4 OR col1 = 37.35) OR (col0 = 4 OR col0 = 46 OR col0 = 13) OR col1 > 46.32 AND (((col1 = 31.94)) OR col3 IS NULL) AND (((col0 = 52 OR col0 = 21 OR col0 = 61 OR col0 = 45) OR col1 BETWEEN 36.77 AND 87.56 AND (col1 > 25.86) AND col3 > 84 OR col0 = 40 AND (((col3 <= 74)) [...]
# Datafusion - Datafusion expected results:
-query error DataFusion error: SQL error: RecursionLimitExceeded
+query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
SELECT pk FROM tab1 WHERE col0 IN (SELECT col3 FROM tab1 WHERE (col3 = 87 OR col0 > 47 AND (col0 BETWEEN 8 AND 79) OR col3 <= 28 AND (((col3 > 74 AND col1 IN (48.31,29.5,55.50,10.95,94.4,37.35) OR col0 IN (4,46,13) OR col1 > 46.32 AND (((col1 = 31.94)) OR col3 IS NULL) AND ((col0 IN (52,21,61,45) OR col1 BETWEEN 36.77 AND 87.56 AND (col1 > 25.86) AND col3 > 84 OR col0 = 40 AND (((col3 <= 74)) OR (col4 < 62.74))) AND col0 = 61)))) AND ((((col3 <= 80 OR col3 < 57 AND (col3 <= 11 OR col0 >= [...]
# Datafusion - Datafusion expected results:
-query error DataFusion error: SQL error: RecursionLimitExceeded
+query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
SELECT pk FROM tab1 WHERE col0 IN (SELECT col3 FROM tab1 WHERE (col3 = 87 OR col0 > 47 AND (col0 BETWEEN 8 AND 79) OR col3 <= 28 AND (((col3 > 74 AND col1 IN (10.95,37.35,94.4,48.31,55.50,29.5) OR col0 IN (46,4,13) OR col1 > 46.32 AND (((col1 = 31.94)) OR col3 IS NULL) AND ((col0 IN (52,21,61,45) OR col1 BETWEEN 36.77 AND 87.56 AND (col1 > 25.86) AND col3 > 84 OR col0 = 40 AND (((col3 <= 74)) OR (col4 < 62.74))) AND col0 = 61)))) AND ((((col3 <= 80 OR col3 < 57 AND (col3 <= 11 OR col0 >= [...]
# Datafusion - Datafusion expected results:
-query error DataFusion error: SQL error: RecursionLimitExceeded
+query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
SELECT pk FROM tab1 WHERE col0 IN (SELECT col3 FROM tab1 WHERE (col3 = 87 OR col0 > 47 AND (col0 BETWEEN 8 AND 79) OR col3 <= 28 AND (((col3 > 74 AND (col1 = 48.31 OR col1 = 29.5 OR col1 = 55.50 OR col1 = 10.95 OR col1 = 94.4 OR col1 = 37.35) OR (col0 = 4 OR col0 = 46 OR col0 = 13) OR col1 > 46.32 AND (((col1 = 31.94)) OR col3 IS NULL) AND (((col0 = 52 OR col0 = 21 OR col0 = 61 OR col0 = 45) OR col1 BETWEEN 36.77 AND 87.56 AND (col1 > 25.86) AND col3 > 84 OR col0 = 40 AND (((col3 <= 74)) [...]
# Datafusion - Datafusion expected results:
-query error DataFusion error: SQL error: RecursionLimitExceeded
+query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
SELECT pk FROM tab2 WHERE col0 IN (SELECT col3 FROM tab2 WHERE (col3 = 87 OR col0 > 47 AND (col0 BETWEEN 8 AND 79) OR col3 <= 28 AND (((col3 > 74 AND col1 IN (48.31,29.5,55.50,10.95,94.4,37.35) OR col0 IN (4,46,13) OR col1 > 46.32 AND (((col1 = 31.94)) OR col3 IS NULL) AND ((col0 IN (52,21,61,45) OR col1 BETWEEN 36.77 AND 87.56 AND (col1 > 25.86) AND col3 > 84 OR col0 = 40 AND (((col3 <= 74)) OR (col4 < 62.74))) AND col0 = 61)))) AND ((((col3 <= 80 OR col3 < 57 AND (col3 <= 11 OR col0 >= [...]
# Datafusion - Datafusion expected results:
-query error DataFusion error: SQL error: RecursionLimitExceeded
+query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
SELECT pk FROM tab2 WHERE col0 IN (SELECT col3 FROM tab2 WHERE (col3 = 87 OR col0 > 47 AND (col0 BETWEEN 8 AND 79) OR col3 <= 28 AND (((col3 > 74 AND col1 IN (10.95,37.35,94.4,48.31,55.50,29.5) OR col0 IN (46,4,13) OR col1 > 46.32 AND (((col1 = 31.94)) OR col3 IS NULL) AND ((col0 IN (52,21,61,45) OR col1 BETWEEN 36.77 AND 87.56 AND (col1 > 25.86) AND col3 > 84 OR col0 = 40 AND (((col3 <= 74)) OR (col4 < 62.74))) AND col0 = 61)))) AND ((((col3 <= 80 OR col3 < 57 AND (col3 <= 11 OR col0 >= [...]
# Datafusion - Datafusion expected results:
-query error DataFusion error: SQL error: RecursionLimitExceeded
+query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
SELECT pk FROM tab2 WHERE col0 IN (SELECT col3 FROM tab2 WHERE (col3 = 87 OR col0 > 47 AND (col0 BETWEEN 8 AND 79) OR col3 <= 28 AND (((col3 > 74 AND (col1 = 48.31 OR col1 = 29.5 OR col1 = 55.50 OR col1 = 10.95 OR col1 = 94.4 OR col1 = 37.35) OR (col0 = 4 OR col0 = 46 OR col0 = 13) OR col1 > 46.32 AND (((col1 = 31.94)) OR col3 IS NULL) AND (((col0 = 52 OR col0 = 21 OR col0 = 61 OR col0 = 45) OR col1 BETWEEN 36.77 AND 87.56 AND (col1 > 25.86) AND col3 > 84 OR col0 = 40 AND (((col3 <= 74)) [...]
# Datafusion - Datafusion expected results:
-query error DataFusion error: SQL error: RecursionLimitExceeded
+query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
SELECT pk FROM tab3 WHERE col0 IN (SELECT col3 FROM tab3 WHERE (col3 = 87 OR col0 > 47 AND (col0 BETWEEN 8 AND 79) OR col3 <= 28 AND (((col3 > 74 AND col1 IN (48.31,29.5,55.50,10.95,94.4,37.35) OR col0 IN (4,46,13) OR col1 > 46.32 AND (((col1 = 31.94)) OR col3 IS NULL) AND ((col0 IN (52,21,61,45) OR col1 BETWEEN 36.77 AND 87.56 AND (col1 > 25.86) AND col3 > 84 OR col0 = 40 AND (((col3 <= 74)) OR (col4 < 62.74))) AND col0 = 61)))) AND ((((col3 <= 80 OR col3 < 57 AND (col3 <= 11 OR col0 >= [...]
# Datafusion - Datafusion expected results:
-query error DataFusion error: SQL error: RecursionLimitExceeded
+query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
SELECT pk FROM tab3 WHERE col0 IN (SELECT col3 FROM tab3 WHERE (col3 = 87 OR col0 > 47 AND (col0 BETWEEN 8 AND 79) OR col3 <= 28 AND (((col3 > 74 AND col1 IN (10.95,37.35,94.4,48.31,55.50,29.5) OR col0 IN (46,4,13) OR col1 > 46.32 AND (((col1 = 31.94)) OR col3 IS NULL) AND ((col0 IN (52,21,61,45) OR col1 BETWEEN 36.77 AND 87.56 AND (col1 > 25.86) AND col3 > 84 OR col0 = 40 AND (((col3 <= 74)) OR (col4 < 62.74))) AND col0 = 61)))) AND ((((col3 <= 80 OR col3 < 57 AND (col3 <= 11 OR col0 >= [...]
# Datafusion - Datafusion expected results:
-query error DataFusion error: SQL error: RecursionLimitExceeded
+query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
SELECT pk FROM tab3 WHERE col0 IN (SELECT col3 FROM tab3 WHERE (col3 = 87 OR col0 > 47 AND (col0 BETWEEN 8 AND 79) OR col3 <= 28 AND (((col3 > 74 AND (col1 = 48.31 OR col1 = 29.5 OR col1 = 55.50 OR col1 = 10.95 OR col1 = 94.4 OR col1 = 37.35) OR (col0 = 4 OR col0 = 46 OR col0 = 13) OR col1 > 46.32 AND (((col1 = 31.94)) OR col3 IS NULL) AND (((col0 = 52 OR col0 = 21 OR col0 = 61 OR col0 = 45) OR col1 BETWEEN 36.77 AND 87.56 AND (col1 > 25.86) AND col3 > 84 OR col0 = 40 AND (((col3 <= 74)) [...]
# Datafusion - Datafusion expected results:
-query error DataFusion error: SQL error: RecursionLimitExceeded
+query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
SELECT pk FROM tab4 WHERE col0 IN (SELECT col3 FROM tab4 WHERE (col3 = 87 OR col0 > 47 AND (col0 BETWEEN 8 AND 79) OR col3 <= 28 AND (((col3 > 74 AND col1 IN (48.31,29.5,55.50,10.95,94.4,37.35) OR col0 IN (4,46,13) OR col1 > 46.32 AND (((col1 = 31.94)) OR col3 IS NULL) AND ((col0 IN (52,21,61,45) OR col1 BETWEEN 36.77 AND 87.56 AND (col1 > 25.86) AND col3 > 84 OR col0 = 40 AND (((col3 <= 74)) OR (col4 < 62.74))) AND col0 = 61)))) AND ((((col3 <= 80 OR col3 < 57 AND (col3 <= 11 OR col0 >= [...]
# Datafusion - Datafusion expected results:
-query error DataFusion error: SQL error: RecursionLimitExceeded
+query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
SELECT pk FROM tab4 WHERE col0 IN (SELECT col3 FROM tab4 WHERE (col3 = 87 OR col0 > 47 AND (col0 BETWEEN 8 AND 79) OR col3 <= 28 AND (((col3 > 74 AND col1 IN (10.95,37.35,94.4,48.31,55.50,29.5) OR col0 IN (46,4,13) OR col1 > 46.32 AND (((col1 = 31.94)) OR col3 IS NULL) AND ((col0 IN (52,21,61,45) OR col1 BETWEEN 36.77 AND 87.56 AND (col1 > 25.86) AND col3 > 84 OR col0 = 40 AND (((col3 <= 74)) OR (col4 < 62.74))) AND col0 = 61)))) AND ((((col3 <= 80 OR col3 < 57 AND (col3 <= 11 OR col0 >= [...]
# Datafusion - Datafusion expected results:
-query error DataFusion error: SQL error: RecursionLimitExceeded
+query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
SELECT pk FROM tab4 WHERE col0 IN (SELECT col3 FROM tab4 WHERE (col3 = 87 OR col0 > 47 AND (col0 BETWEEN 8 AND 79) OR col3 <= 28 AND (((col3 > 74 AND (col1 = 48.31 OR col1 = 29.5 OR col1 = 55.50 OR col1 = 10.95 OR col1 = 94.4 OR col1 = 37.35) OR (col0 = 4 OR col0 = 46 OR col0 = 13) OR col1 > 46.32 AND (((col1 = 31.94)) OR col3 IS NULL) AND (((col0 = 52 OR col0 = 21 OR col0 = 61 OR col0 = 45) OR col1 BETWEEN 36.77 AND 87.56 AND (col1 > 25.86) AND col3 > 84 OR col0 = 40 AND (((col3 <= 74)) [...]
query I rowsort label-6930
diff --git a/data/sqlite/index/in/10/slt_good_2.slt b/data/sqlite/index/in/10/slt_good_2.slt
index 2bc283a..96e9208 100644
--- a/data/sqlite/index/in/10/slt_good_2.slt
+++ b/data/sqlite/index/in/10/slt_good_2.slt
@@ -4722,7 +4722,7 @@ SELECT pk FROM tab0 WHERE col3 > 65 AND (col3 >= 10) AND (col1 < 19.73 OR col0 >
# Datafusion - Datafusion expected results:
# Datafusion - Expected - 2
# Datafusion - Expected - 9
-query error DataFusion error: SQL error: RecursionLimitExceeded
+query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
SELECT pk FROM tab0 WHERE col3 > 65 AND (col3 >= 10) AND (col1 < 19.73 OR col0 >= 48) AND ((col3 <= 81 OR col4 > 31.83 OR col1 <= 10.18 AND col3 BETWEEN 75 AND 98 AND (col4 > 16.50 AND (((col0 > 91) OR col3 BETWEEN 22 AND 88) AND (((col3 = 54)) OR col3 >= 53)) AND ((((col3 < 1 OR col1 > 9.59 OR (col1 <= 25.16) OR col0 >= 49 OR col0 >= 48 AND (col3 > 43) AND col0 < 14 AND ((col3 < 18) AND ((((col0 > 99) AND col3 <= 31 AND col3 < 55 OR (col0 > 89 AND col3 < 26 AND col3 < 36) OR (col3 < 78 [...]
query I rowsort label-780
@@ -4740,7 +4740,7 @@ SELECT pk FROM tab1 WHERE col3 > 65 AND (col3 >= 10) AND (col1 < 19.73 OR col0 >
# Datafusion - Datafusion expected results:
# Datafusion - Expected - 2
# Datafusion - Expected - 9
-query error DataFusion error: SQL error: RecursionLimitExceeded
+query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
SELECT pk FROM tab1 WHERE col3 > 65 AND (col3 >= 10) AND (col1 < 19.73 OR col0 >= 48) AND ((col3 <= 81 OR col4 > 31.83 OR col1 <= 10.18 AND col3 BETWEEN 75 AND 98 AND (col4 > 16.50 AND (((col0 > 91) OR col3 BETWEEN 22 AND 88) AND (((col3 = 54)) OR col3 >= 53)) AND ((((col3 < 1 OR col1 > 9.59 OR (col1 <= 25.16) OR col0 >= 49 OR col0 >= 48 AND (col3 > 43) AND col0 < 14 AND ((col3 < 18) AND ((((col0 > 99) AND col3 <= 31 AND col3 < 55 OR (col0 > 89 AND col3 < 26 AND col3 < 36) OR (col3 < 78 [...]
query I rowsort label-780
@@ -4758,7 +4758,7 @@ SELECT pk FROM tab2 WHERE col3 > 65 AND (col3 >= 10) AND (col1 < 19.73 OR col0 >
# Datafusion - Datafusion expected results:
# Datafusion - Expected - 2
# Datafusion - Expected - 9
-query error DataFusion error: SQL error: RecursionLimitExceeded
+query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
SELECT pk FROM tab2 WHERE col3 > 65 AND (col3 >= 10) AND (col1 < 19.73 OR col0 >= 48) AND ((col3 <= 81 OR col4 > 31.83 OR col1 <= 10.18 AND col3 BETWEEN 75 AND 98 AND (col4 > 16.50 AND (((col0 > 91) OR col3 BETWEEN 22 AND 88) AND (((col3 = 54)) OR col3 >= 53)) AND ((((col3 < 1 OR col1 > 9.59 OR (col1 <= 25.16) OR col0 >= 49 OR col0 >= 48 AND (col3 > 43) AND col0 < 14 AND ((col3 < 18) AND ((((col0 > 99) AND col3 <= 31 AND col3 < 55 OR (col0 > 89 AND col3 < 26 AND col3 < 36) OR (col3 < 78 [...]
query I rowsort label-780
@@ -4776,7 +4776,7 @@ SELECT pk FROM tab3 WHERE col3 > 65 AND (col3 >= 10) AND (col1 < 19.73 OR col0 >
# Datafusion - Datafusion expected results:
# Datafusion - Expected - 2
# Datafusion - Expected - 9
-query error DataFusion error: SQL error: RecursionLimitExceeded
+query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
SELECT pk FROM tab3 WHERE col3 > 65 AND (col3 >= 10) AND (col1 < 19.73 OR col0 >= 48) AND ((col3 <= 81 OR col4 > 31.83 OR col1 <= 10.18 AND col3 BETWEEN 75 AND 98 AND (col4 > 16.50 AND (((col0 > 91) OR col3 BETWEEN 22 AND 88) AND (((col3 = 54)) OR col3 >= 53)) AND ((((col3 < 1 OR col1 > 9.59 OR (col1 <= 25.16) OR col0 >= 49 OR col0 >= 48 AND (col3 > 43) AND col0 < 14 AND ((col3 < 18) AND ((((col0 > 99) AND col3 <= 31 AND col3 < 55 OR (col0 > 89 AND col3 < 26 AND col3 < 36) OR (col3 < 78 [...]
query I rowsort label-780
@@ -4794,7 +4794,7 @@ SELECT pk FROM tab4 WHERE col3 > 65 AND (col3 >= 10) AND (col1 < 19.73 OR col0 >
# Datafusion - Datafusion expected results:
# Datafusion - Expected - 2
# Datafusion - Expected - 9
-query error DataFusion error: SQL error: RecursionLimitExceeded
+query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
SELECT pk FROM tab4 WHERE col3 > 65 AND (col3 >= 10) AND (col1 < 19.73 OR col0 >= 48) AND ((col3 <= 81 OR col4 > 31.83 OR col1 <= 10.18 AND col3 BETWEEN 75 AND 98 AND (col4 > 16.50 AND (((col0 > 91) OR col3 BETWEEN 22 AND 88) AND (((col3 = 54)) OR col3 >= 53)) AND ((((col3 < 1 OR col1 > 9.59 OR (col1 <= 25.16) OR col0 >= 49 OR col0 >= 48 AND (col3 > 43) AND col0 < 14 AND ((col3 < 18) AND ((((col0 > 99) AND col3 <= 31 AND col3 < 55 OR (col0 > 89 AND col3 < 26 AND col3 < 36) OR (col3 < 78 [...]
query I rowsort label-795
@@ -12494,77 +12494,77 @@ SELECT pk FROM tab4 WHERE (col3 BETWEEN 2 AND 93 AND ((col3 > 58) OR col0 <= 51
# Datafusion - Datafusion expected results:
# Datafusion - Expected - 10 values hashing to e20b902b49a98b1a05ed62804c757f94
-query error DataFusion error: SQL error: RecursionLimitExceeded
+query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
SELECT pk FROM tab0 WHERE (col4 > 0.15 OR col4 >= 51.89 OR (col3 IS NULL) OR col4 = 85.22 OR ((((((col1 <= 68.74 OR col1 > 26.88)) AND (col0 = 2)))) OR col3 > 86 AND (col0 > 52)) OR col0 <= 34 AND ((col0 > 23) AND ((col3 = 38 OR (col0 > 42 AND ((col3 BETWEEN 43 AND 41)) OR col3 <= 31 AND ((col3 > 84) OR col3 < 35 AND ((col3 <= 21 OR (((col0 > 55 OR col0 > 99))) AND (((col3 IN (94) AND (col0 >= 43))) AND (((col4 >= 28.4)) AND ((col3 >= 38)) AND (col3 >= 25)) OR ((col0 < 48)) AND col1 IS N [...]
# Datafusion - Datafusion expected results:
# Datafusion - Expected - 10 values hashing to e20b902b49a98b1a05ed62804c757f94
-query error DataFusion error: SQL error: RecursionLimitExceeded
+query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
SELECT pk FROM tab0 WHERE (col4 > 0.15 OR col4 >= 51.89 OR (col3 IS NULL) OR col4 = 85.22 OR ((((((col1 <= 68.74 OR col1 > 26.88)) AND (col0 = 2)))) OR col3 > 86 AND (col0 > 52)) OR col0 <= 34 AND ((col0 > 23) AND ((col3 = 38 OR (col0 > 42 AND ((col3 BETWEEN 43 AND 41)) OR col3 <= 31 AND ((col3 > 84) OR col3 < 35 AND ((col3 <= 21 OR (((col0 > 55 OR col0 > 99))) AND (((col3 IN (94) AND (col0 >= 43))) AND (((col4 >= 28.4)) AND ((col3 >= 38)) AND (col3 >= 25)) OR ((col0 < 48)) AND col1 IS N [...]
# Datafusion - Datafusion expected results:
# Datafusion - Expected - 10 values hashing to e20b902b49a98b1a05ed62804c757f94
-query error DataFusion error: SQL error: RecursionLimitExceeded
+query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
SELECT pk FROM tab0 WHERE (col4 > 0.15 OR col4 >= 51.89 OR (col3 IS NULL) OR col4 = 85.22 OR ((((((col1 <= 68.74 OR col1 > 26.88)) AND (col0 = 2)))) OR col3 > 86 AND (col0 > 52)) OR col0 <= 34 AND ((col0 > 23) AND ((col3 = 38 OR (col0 > 42 AND ((col3 BETWEEN 43 AND 41)) OR col3 <= 31 AND ((col3 > 84) OR col3 < 35 AND ((col3 <= 21 OR (((col0 > 55 OR col0 > 99))) AND ((((col3 = 94) AND (col0 >= 43))) AND (((col4 >= 28.4)) AND ((col3 >= 38)) AND (col3 >= 25)) OR ((col0 < 48)) AND col1 IS NU [...]
# Datafusion - Datafusion expected results:
# Datafusion - Expected - 10 values hashing to e20b902b49a98b1a05ed62804c757f94
-query error DataFusion error: SQL error: RecursionLimitExceeded
+query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
SELECT pk FROM tab1 WHERE (col4 > 0.15 OR col4 >= 51.89 OR (col3 IS NULL) OR col4 = 85.22 OR ((((((col1 <= 68.74 OR col1 > 26.88)) AND (col0 = 2)))) OR col3 > 86 AND (col0 > 52)) OR col0 <= 34 AND ((col0 > 23) AND ((col3 = 38 OR (col0 > 42 AND ((col3 BETWEEN 43 AND 41)) OR col3 <= 31 AND ((col3 > 84) OR col3 < 35 AND ((col3 <= 21 OR (((col0 > 55 OR col0 > 99))) AND (((col3 IN (94) AND (col0 >= 43))) AND (((col4 >= 28.4)) AND ((col3 >= 38)) AND (col3 >= 25)) OR ((col0 < 48)) AND col1 IS N [...]
# Datafusion - Datafusion expected results:
# Datafusion - Expected - 10 values hashing to e20b902b49a98b1a05ed62804c757f94
-query error DataFusion error: SQL error: RecursionLimitExceeded
+query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
SELECT pk FROM tab1 WHERE (col4 > 0.15 OR col4 >= 51.89 OR (col3 IS NULL) OR col4 = 85.22 OR ((((((col1 <= 68.74 OR col1 > 26.88)) AND (col0 = 2)))) OR col3 > 86 AND (col0 > 52)) OR col0 <= 34 AND ((col0 > 23) AND ((col3 = 38 OR (col0 > 42 AND ((col3 BETWEEN 43 AND 41)) OR col3 <= 31 AND ((col3 > 84) OR col3 < 35 AND ((col3 <= 21 OR (((col0 > 55 OR col0 > 99))) AND (((col3 IN (94) AND (col0 >= 43))) AND (((col4 >= 28.4)) AND ((col3 >= 38)) AND (col3 >= 25)) OR ((col0 < 48)) AND col1 IS N [...]
# Datafusion - Datafusion expected results:
# Datafusion - Expected - 10 values hashing to e20b902b49a98b1a05ed62804c757f94
-query error DataFusion error: SQL error: RecursionLimitExceeded
+query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
SELECT pk FROM tab1 WHERE (col4 > 0.15 OR col4 >= 51.89 OR (col3 IS NULL) OR col4 = 85.22 OR ((((((col1 <= 68.74 OR col1 > 26.88)) AND (col0 = 2)))) OR col3 > 86 AND (col0 > 52)) OR col0 <= 34 AND ((col0 > 23) AND ((col3 = 38 OR (col0 > 42 AND ((col3 BETWEEN 43 AND 41)) OR col3 <= 31 AND ((col3 > 84) OR col3 < 35 AND ((col3 <= 21 OR (((col0 > 55 OR col0 > 99))) AND ((((col3 = 94) AND (col0 >= 43))) AND (((col4 >= 28.4)) AND ((col3 >= 38)) AND (col3 >= 25)) OR ((col0 < 48)) AND col1 IS NU [...]
# Datafusion - Datafusion expected results:
# Datafusion - Expected - 10 values hashing to e20b902b49a98b1a05ed62804c757f94
-query error DataFusion error: SQL error: RecursionLimitExceeded
+query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
SELECT pk FROM tab2 WHERE (col4 > 0.15 OR col4 >= 51.89 OR (col3 IS NULL) OR col4 = 85.22 OR ((((((col1 <= 68.74 OR col1 > 26.88)) AND (col0 = 2)))) OR col3 > 86 AND (col0 > 52)) OR col0 <= 34 AND ((col0 > 23) AND ((col3 = 38 OR (col0 > 42 AND ((col3 BETWEEN 43 AND 41)) OR col3 <= 31 AND ((col3 > 84) OR col3 < 35 AND ((col3 <= 21 OR (((col0 > 55 OR col0 > 99))) AND (((col3 IN (94) AND (col0 >= 43))) AND (((col4 >= 28.4)) AND ((col3 >= 38)) AND (col3 >= 25)) OR ((col0 < 48)) AND col1 IS N [...]
# Datafusion - Datafusion expected results:
# Datafusion - Expected - 10 values hashing to e20b902b49a98b1a05ed62804c757f94
-query error DataFusion error: SQL error: RecursionLimitExceeded
+query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
SELECT pk FROM tab2 WHERE (col4 > 0.15 OR col4 >= 51.89 OR (col3 IS NULL) OR col4 = 85.22 OR ((((((col1 <= 68.74 OR col1 > 26.88)) AND (col0 = 2)))) OR col3 > 86 AND (col0 > 52)) OR col0 <= 34 AND ((col0 > 23) AND ((col3 = 38 OR (col0 > 42 AND ((col3 BETWEEN 43 AND 41)) OR col3 <= 31 AND ((col3 > 84) OR col3 < 35 AND ((col3 <= 21 OR (((col0 > 55 OR col0 > 99))) AND (((col3 IN (94) AND (col0 >= 43))) AND (((col4 >= 28.4)) AND ((col3 >= 38)) AND (col3 >= 25)) OR ((col0 < 48)) AND col1 IS N [...]
# Datafusion - Datafusion expected results:
# Datafusion - Expected - 10 values hashing to e20b902b49a98b1a05ed62804c757f94
-query error DataFusion error: SQL error: RecursionLimitExceeded
+query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
SELECT pk FROM tab2 WHERE (col4 > 0.15 OR col4 >= 51.89 OR (col3 IS NULL) OR col4 = 85.22 OR ((((((col1 <= 68.74 OR col1 > 26.88)) AND (col0 = 2)))) OR col3 > 86 AND (col0 > 52)) OR col0 <= 34 AND ((col0 > 23) AND ((col3 = 38 OR (col0 > 42 AND ((col3 BETWEEN 43 AND 41)) OR col3 <= 31 AND ((col3 > 84) OR col3 < 35 AND ((col3 <= 21 OR (((col0 > 55 OR col0 > 99))) AND ((((col3 = 94) AND (col0 >= 43))) AND (((col4 >= 28.4)) AND ((col3 >= 38)) AND (col3 >= 25)) OR ((col0 < 48)) AND col1 IS NU [...]
# Datafusion - Datafusion expected results:
# Datafusion - Expected - 10 values hashing to e20b902b49a98b1a05ed62804c757f94
-query error DataFusion error: SQL error: RecursionLimitExceeded
+query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
SELECT pk FROM tab3 WHERE (col4 > 0.15 OR col4 >= 51.89 OR (col3 IS NULL) OR col4 = 85.22 OR ((((((col1 <= 68.74 OR col1 > 26.88)) AND (col0 = 2)))) OR col3 > 86 AND (col0 > 52)) OR col0 <= 34 AND ((col0 > 23) AND ((col3 = 38 OR (col0 > 42 AND ((col3 BETWEEN 43 AND 41)) OR col3 <= 31 AND ((col3 > 84) OR col3 < 35 AND ((col3 <= 21 OR (((col0 > 55 OR col0 > 99))) AND (((col3 IN (94) AND (col0 >= 43))) AND (((col4 >= 28.4)) AND ((col3 >= 38)) AND (col3 >= 25)) OR ((col0 < 48)) AND col1 IS N [...]
# Datafusion - Datafusion expected results:
# Datafusion - Expected - 10 values hashing to e20b902b49a98b1a05ed62804c757f94
-query error DataFusion error: SQL error: RecursionLimitExceeded
+query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
SELECT pk FROM tab3 WHERE (col4 > 0.15 OR col4 >= 51.89 OR (col3 IS NULL) OR col4 = 85.22 OR ((((((col1 <= 68.74 OR col1 > 26.88)) AND (col0 = 2)))) OR col3 > 86 AND (col0 > 52)) OR col0 <= 34 AND ((col0 > 23) AND ((col3 = 38 OR (col0 > 42 AND ((col3 BETWEEN 43 AND 41)) OR col3 <= 31 AND ((col3 > 84) OR col3 < 35 AND ((col3 <= 21 OR (((col0 > 55 OR col0 > 99))) AND (((col3 IN (94) AND (col0 >= 43))) AND (((col4 >= 28.4)) AND ((col3 >= 38)) AND (col3 >= 25)) OR ((col0 < 48)) AND col1 IS N [...]
# Datafusion - Datafusion expected results:
# Datafusion - Expected - 10 values hashing to e20b902b49a98b1a05ed62804c757f94
-query error DataFusion error: SQL error: RecursionLimitExceeded
+query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
SELECT pk FROM tab3 WHERE (col4 > 0.15 OR col4 >= 51.89 OR (col3 IS NULL) OR col4 = 85.22 OR ((((((col1 <= 68.74 OR col1 > 26.88)) AND (col0 = 2)))) OR col3 > 86 AND (col0 > 52)) OR col0 <= 34 AND ((col0 > 23) AND ((col3 = 38 OR (col0 > 42 AND ((col3 BETWEEN 43 AND 41)) OR col3 <= 31 AND ((col3 > 84) OR col3 < 35 AND ((col3 <= 21 OR (((col0 > 55 OR col0 > 99))) AND ((((col3 = 94) AND (col0 >= 43))) AND (((col4 >= 28.4)) AND ((col3 >= 38)) AND (col3 >= 25)) OR ((col0 < 48)) AND col1 IS NU [...]
# Datafusion - Datafusion expected results:
# Datafusion - Expected - 10 values hashing to e20b902b49a98b1a05ed62804c757f94
-query error DataFusion error: SQL error: RecursionLimitExceeded
+query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
SELECT pk FROM tab4 WHERE (col4 > 0.15 OR col4 >= 51.89 OR (col3 IS NULL) OR col4 = 85.22 OR ((((((col1 <= 68.74 OR col1 > 26.88)) AND (col0 = 2)))) OR col3 > 86 AND (col0 > 52)) OR col0 <= 34 AND ((col0 > 23) AND ((col3 = 38 OR (col0 > 42 AND ((col3 BETWEEN 43 AND 41)) OR col3 <= 31 AND ((col3 > 84) OR col3 < 35 AND ((col3 <= 21 OR (((col0 > 55 OR col0 > 99))) AND (((col3 IN (94) AND (col0 >= 43))) AND (((col4 >= 28.4)) AND ((col3 >= 38)) AND (col3 >= 25)) OR ((col0 < 48)) AND col1 IS N [...]
# Datafusion - Datafusion expected results:
# Datafusion - Expected - 10 values hashing to e20b902b49a98b1a05ed62804c757f94
-query error DataFusion error: SQL error: RecursionLimitExceeded
+query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
SELECT pk FROM tab4 WHERE (col4 > 0.15 OR col4 >= 51.89 OR (col3 IS NULL) OR col4 = 85.22 OR ((((((col1 <= 68.74 OR col1 > 26.88)) AND (col0 = 2)))) OR col3 > 86 AND (col0 > 52)) OR col0 <= 34 AND ((col0 > 23) AND ((col3 = 38 OR (col0 > 42 AND ((col3 BETWEEN 43 AND 41)) OR col3 <= 31 AND ((col3 > 84) OR col3 < 35 AND ((col3 <= 21 OR (((col0 > 55 OR col0 > 99))) AND (((col3 IN (94) AND (col0 >= 43))) AND (((col4 >= 28.4)) AND ((col3 >= 38)) AND (col3 >= 25)) OR ((col0 < 48)) AND col1 IS N [...]
# Datafusion - Datafusion expected results:
# Datafusion - Expected - 10 values hashing to e20b902b49a98b1a05ed62804c757f94
-query error DataFusion error: SQL error: RecursionLimitExceeded
+query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
SELECT pk FROM tab4 WHERE (col4 > 0.15 OR col4 >= 51.89 OR (col3 IS NULL) OR col4 = 85.22 OR ((((((col1 <= 68.74 OR col1 > 26.88)) AND (col0 = 2)))) OR col3 > 86 AND (col0 > 52)) OR col0 <= 34 AND ((col0 > 23) AND ((col3 = 38 OR (col0 > 42 AND ((col3 BETWEEN 43 AND 41)) OR col3 <= 31 AND ((col3 > 84) OR col3 < 35 AND ((col3 <= 21 OR (((col0 > 55 OR col0 > 99))) AND ((((col3 = 94) AND (col0 >= 43))) AND (((col4 >= 28.4)) AND ((col3 >= 38)) AND (col3 >= 25)) OR ((col0 < 48)) AND col1 IS NU [...]
query I rowsort label-2145
diff --git a/data/sqlite/index/in/10/slt_good_4.slt b/data/sqlite/index/in/10/slt_good_4.slt
index 19b8aed..53fb720 100644
--- a/data/sqlite/index/in/10/slt_good_4.slt
+++ b/data/sqlite/index/in/10/slt_good_4.slt
@@ -43931,77 +43931,77 @@ SELECT pk FROM tab4 WHERE (col0 = 0 OR col0 = 3 OR col0 = 52 OR col0 = 0 OR col0
# Datafusion - Datafusion expected results:
# Datafusion - Expected - 9 values hashing to b62312116f93d37c7a952ee38494f224
-query error DataFusion error: SQL error: RecursionLimitExceeded
+query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
SELECT pk FROM tab0 WHERE (col3 = 51 AND col0 < 12 OR (col1 > 85.47) AND col1 = 18.10 OR col0 > 53 AND (col3 > 13 OR ((col1 >= 1.85)) AND ((col4 > 13.86 AND col0 < 2) OR col4 > 42.90) OR (col4 > 41.96))) AND (col3 > 62 AND (col3 < 6 AND ((col0 <= 92)) OR ((col4 < 55.45 AND col3 > 80 AND (col0 >= 92 AND ((col3 = 76) AND (col3 IN (SELECT col0 FROM tab0 WHERE (col1 > 73.88) OR ((col3 > 71) AND (col0 < 97))) OR (col3 >= 65) AND ((col3 < 30))) AND (((col1 BETWEEN 61.46 AND 86.35))) AND col3 > [...]
# Datafusion - Datafusion expected results:
# Datafusion - Expected - 9 values hashing to b62312116f93d37c7a952ee38494f224
-query error DataFusion error: SQL error: RecursionLimitExceeded
+query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
SELECT pk FROM tab0 WHERE (col3 = 51 AND col0 < 12 OR (col1 > 85.47) AND col1 = 18.10 OR col0 > 53 AND (col3 > 13 OR ((col1 >= 1.85)) AND ((col4 > 13.86 AND col0 < 2) OR col4 > 42.90) OR (col4 > 41.96))) AND (col3 > 62 AND (col3 < 6 AND ((col0 <= 92)) OR ((col4 < 55.45 AND col3 > 80 AND (col0 >= 92 AND ((col3 = 76) AND (col3 IN (SELECT col0 FROM tab0 WHERE (col1 > 73.88) OR ((col3 > 71) AND (col0 < 97))) OR (col3 >= 65) AND ((col3 < 30))) AND (((col1 BETWEEN 61.46 AND 86.35))) AND col3 > [...]
# Datafusion - Datafusion expected results:
# Datafusion - Expected - 9 values hashing to b62312116f93d37c7a952ee38494f224
-query error DataFusion error: SQL error: RecursionLimitExceeded
+query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
SELECT pk FROM tab0 WHERE (col3 = 51 AND col0 < 12 OR (col1 > 85.47) AND col1 = 18.10 OR col0 > 53 AND (col3 > 13 OR ((col1 >= 1.85)) AND ((col4 > 13.86 AND col0 < 2) OR col4 > 42.90) OR (col4 > 41.96))) AND (col3 > 62 AND (col3 < 6 AND ((col0 <= 92)) OR ((col4 < 55.45 AND col3 > 80 AND (col0 >= 92 AND ((col3 = 76) AND (col3 IN (SELECT col0 FROM tab0 WHERE (col1 > 73.88) OR ((col3 > 71) AND (col0 < 97))) OR (col3 >= 65) AND ((col3 < 30))) AND (((col1 BETWEEN 61.46 AND 86.35))) AND col3 > [...]
# Datafusion - Datafusion expected results:
# Datafusion - Expected - 9 values hashing to b62312116f93d37c7a952ee38494f224
-query error DataFusion error: SQL error: RecursionLimitExceeded
+query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
SELECT pk FROM tab1 WHERE (col3 = 51 AND col0 < 12 OR (col1 > 85.47) AND col1 = 18.10 OR col0 > 53 AND (col3 > 13 OR ((col1 >= 1.85)) AND ((col4 > 13.86 AND col0 < 2) OR col4 > 42.90) OR (col4 > 41.96))) AND (col3 > 62 AND (col3 < 6 AND ((col0 <= 92)) OR ((col4 < 55.45 AND col3 > 80 AND (col0 >= 92 AND ((col3 = 76) AND (col3 IN (SELECT col0 FROM tab1 WHERE (col1 > 73.88) OR ((col3 > 71) AND (col0 < 97))) OR (col3 >= 65) AND ((col3 < 30))) AND (((col1 BETWEEN 61.46 AND 86.35))) AND col3 > [...]
# Datafusion - Datafusion expected results:
# Datafusion - Expected - 9 values hashing to b62312116f93d37c7a952ee38494f224
-query error DataFusion error: SQL error: RecursionLimitExceeded
+query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
SELECT pk FROM tab1 WHERE (col3 = 51 AND col0 < 12 OR (col1 > 85.47) AND col1 = 18.10 OR col0 > 53 AND (col3 > 13 OR ((col1 >= 1.85)) AND ((col4 > 13.86 AND col0 < 2) OR col4 > 42.90) OR (col4 > 41.96))) AND (col3 > 62 AND (col3 < 6 AND ((col0 <= 92)) OR ((col4 < 55.45 AND col3 > 80 AND (col0 >= 92 AND ((col3 = 76) AND (col3 IN (SELECT col0 FROM tab1 WHERE (col1 > 73.88) OR ((col3 > 71) AND (col0 < 97))) OR (col3 >= 65) AND ((col3 < 30))) AND (((col1 BETWEEN 61.46 AND 86.35))) AND col3 > [...]
# Datafusion - Datafusion expected results:
# Datafusion - Expected - 9 values hashing to b62312116f93d37c7a952ee38494f224
-query error DataFusion error: SQL error: RecursionLimitExceeded
+query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
SELECT pk FROM tab1 WHERE (col3 = 51 AND col0 < 12 OR (col1 > 85.47) AND col1 = 18.10 OR col0 > 53 AND (col3 > 13 OR ((col1 >= 1.85)) AND ((col4 > 13.86 AND col0 < 2) OR col4 > 42.90) OR (col4 > 41.96))) AND (col3 > 62 AND (col3 < 6 AND ((col0 <= 92)) OR ((col4 < 55.45 AND col3 > 80 AND (col0 >= 92 AND ((col3 = 76) AND (col3 IN (SELECT col0 FROM tab1 WHERE (col1 > 73.88) OR ((col3 > 71) AND (col0 < 97))) OR (col3 >= 65) AND ((col3 < 30))) AND (((col1 BETWEEN 61.46 AND 86.35))) AND col3 > [...]
# Datafusion - Datafusion expected results:
# Datafusion - Expected - 9 values hashing to b62312116f93d37c7a952ee38494f224
-query error DataFusion error: SQL error: RecursionLimitExceeded
+query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
SELECT pk FROM tab2 WHERE (col3 = 51 AND col0 < 12 OR (col1 > 85.47) AND col1 = 18.10 OR col0 > 53 AND (col3 > 13 OR ((col1 >= 1.85)) AND ((col4 > 13.86 AND col0 < 2) OR col4 > 42.90) OR (col4 > 41.96))) AND (col3 > 62 AND (col3 < 6 AND ((col0 <= 92)) OR ((col4 < 55.45 AND col3 > 80 AND (col0 >= 92 AND ((col3 = 76) AND (col3 IN (SELECT col0 FROM tab2 WHERE (col1 > 73.88) OR ((col3 > 71) AND (col0 < 97))) OR (col3 >= 65) AND ((col3 < 30))) AND (((col1 BETWEEN 61.46 AND 86.35))) AND col3 > [...]
# Datafusion - Datafusion expected results:
# Datafusion - Expected - 9 values hashing to b62312116f93d37c7a952ee38494f224
-query error DataFusion error: SQL error: RecursionLimitExceeded
+query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
SELECT pk FROM tab2 WHERE (col3 = 51 AND col0 < 12 OR (col1 > 85.47) AND col1 = 18.10 OR col0 > 53 AND (col3 > 13 OR ((col1 >= 1.85)) AND ((col4 > 13.86 AND col0 < 2) OR col4 > 42.90) OR (col4 > 41.96))) AND (col3 > 62 AND (col3 < 6 AND ((col0 <= 92)) OR ((col4 < 55.45 AND col3 > 80 AND (col0 >= 92 AND ((col3 = 76) AND (col3 IN (SELECT col0 FROM tab2 WHERE (col1 > 73.88) OR ((col3 > 71) AND (col0 < 97))) OR (col3 >= 65) AND ((col3 < 30))) AND (((col1 BETWEEN 61.46 AND 86.35))) AND col3 > [...]
# Datafusion - Datafusion expected results:
# Datafusion - Expected - 9 values hashing to b62312116f93d37c7a952ee38494f224
-query error DataFusion error: SQL error: RecursionLimitExceeded
+query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
SELECT pk FROM tab2 WHERE (col3 = 51 AND col0 < 12 OR (col1 > 85.47) AND col1 = 18.10 OR col0 > 53 AND (col3 > 13 OR ((col1 >= 1.85)) AND ((col4 > 13.86 AND col0 < 2) OR col4 > 42.90) OR (col4 > 41.96))) AND (col3 > 62 AND (col3 < 6 AND ((col0 <= 92)) OR ((col4 < 55.45 AND col3 > 80 AND (col0 >= 92 AND ((col3 = 76) AND (col3 IN (SELECT col0 FROM tab2 WHERE (col1 > 73.88) OR ((col3 > 71) AND (col0 < 97))) OR (col3 >= 65) AND ((col3 < 30))) AND (((col1 BETWEEN 61.46 AND 86.35))) AND col3 > [...]
# Datafusion - Datafusion expected results:
# Datafusion - Expected - 9 values hashing to b62312116f93d37c7a952ee38494f224
-query error DataFusion error: SQL error: RecursionLimitExceeded
+query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
SELECT pk FROM tab3 WHERE (col3 = 51 AND col0 < 12 OR (col1 > 85.47) AND col1 = 18.10 OR col0 > 53 AND (col3 > 13 OR ((col1 >= 1.85)) AND ((col4 > 13.86 AND col0 < 2) OR col4 > 42.90) OR (col4 > 41.96))) AND (col3 > 62 AND (col3 < 6 AND ((col0 <= 92)) OR ((col4 < 55.45 AND col3 > 80 AND (col0 >= 92 AND ((col3 = 76) AND (col3 IN (SELECT col0 FROM tab3 WHERE (col1 > 73.88) OR ((col3 > 71) AND (col0 < 97))) OR (col3 >= 65) AND ((col3 < 30))) AND (((col1 BETWEEN 61.46 AND 86.35))) AND col3 > [...]
# Datafusion - Datafusion expected results:
# Datafusion - Expected - 9 values hashing to b62312116f93d37c7a952ee38494f224
-query error DataFusion error: SQL error: RecursionLimitExceeded
+query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
SELECT pk FROM tab3 WHERE (col3 = 51 AND col0 < 12 OR (col1 > 85.47) AND col1 = 18.10 OR col0 > 53 AND (col3 > 13 OR ((col1 >= 1.85)) AND ((col4 > 13.86 AND col0 < 2) OR col4 > 42.90) OR (col4 > 41.96))) AND (col3 > 62 AND (col3 < 6 AND ((col0 <= 92)) OR ((col4 < 55.45 AND col3 > 80 AND (col0 >= 92 AND ((col3 = 76) AND (col3 IN (SELECT col0 FROM tab3 WHERE (col1 > 73.88) OR ((col3 > 71) AND (col0 < 97))) OR (col3 >= 65) AND ((col3 < 30))) AND (((col1 BETWEEN 61.46 AND 86.35))) AND col3 > [...]
# Datafusion - Datafusion expected results:
# Datafusion - Expected - 9 values hashing to b62312116f93d37c7a952ee38494f224
-query error DataFusion error: SQL error: RecursionLimitExceeded
+query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
SELECT pk FROM tab3 WHERE (col3 = 51 AND col0 < 12 OR (col1 > 85.47) AND col1 = 18.10 OR col0 > 53 AND (col3 > 13 OR ((col1 >= 1.85)) AND ((col4 > 13.86 AND col0 < 2) OR col4 > 42.90) OR (col4 > 41.96))) AND (col3 > 62 AND (col3 < 6 AND ((col0 <= 92)) OR ((col4 < 55.45 AND col3 > 80 AND (col0 >= 92 AND ((col3 = 76) AND (col3 IN (SELECT col0 FROM tab3 WHERE (col1 > 73.88) OR ((col3 > 71) AND (col0 < 97))) OR (col3 >= 65) AND ((col3 < 30))) AND (((col1 BETWEEN 61.46 AND 86.35))) AND col3 > [...]
# Datafusion - Datafusion expected results:
# Datafusion - Expected - 9 values hashing to b62312116f93d37c7a952ee38494f224
-query error DataFusion error: SQL error: RecursionLimitExceeded
+query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
SELECT pk FROM tab4 WHERE (col3 = 51 AND col0 < 12 OR (col1 > 85.47) AND col1 = 18.10 OR col0 > 53 AND (col3 > 13 OR ((col1 >= 1.85)) AND ((col4 > 13.86 AND col0 < 2) OR col4 > 42.90) OR (col4 > 41.96))) AND (col3 > 62 AND (col3 < 6 AND ((col0 <= 92)) OR ((col4 < 55.45 AND col3 > 80 AND (col0 >= 92 AND ((col3 = 76) AND (col3 IN (SELECT col0 FROM tab4 WHERE (col1 > 73.88) OR ((col3 > 71) AND (col0 < 97))) OR (col3 >= 65) AND ((col3 < 30))) AND (((col1 BETWEEN 61.46 AND 86.35))) AND col3 > [...]
# Datafusion - Datafusion expected results:
# Datafusion - Expected - 9 values hashing to b62312116f93d37c7a952ee38494f224
-query error DataFusion error: SQL error: RecursionLimitExceeded
+query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
SELECT pk FROM tab4 WHERE (col3 = 51 AND col0 < 12 OR (col1 > 85.47) AND col1 = 18.10 OR col0 > 53 AND (col3 > 13 OR ((col1 >= 1.85)) AND ((col4 > 13.86 AND col0 < 2) OR col4 > 42.90) OR (col4 > 41.96))) AND (col3 > 62 AND (col3 < 6 AND ((col0 <= 92)) OR ((col4 < 55.45 AND col3 > 80 AND (col0 >= 92 AND ((col3 = 76) AND (col3 IN (SELECT col0 FROM tab4 WHERE (col1 > 73.88) OR ((col3 > 71) AND (col0 < 97))) OR (col3 >= 65) AND ((col3 < 30))) AND (((col1 BETWEEN 61.46 AND 86.35))) AND col3 > [...]
# Datafusion - Datafusion expected results:
# Datafusion - Expected - 9 values hashing to b62312116f93d37c7a952ee38494f224
-query error DataFusion error: SQL error: RecursionLimitExceeded
+query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
SELECT pk FROM tab4 WHERE (col3 = 51 AND col0 < 12 OR (col1 > 85.47) AND col1 = 18.10 OR col0 > 53 AND (col3 > 13 OR ((col1 >= 1.85)) AND ((col4 > 13.86 AND col0 < 2) OR col4 > 42.90) OR (col4 > 41.96))) AND (col3 > 62 AND (col3 < 6 AND ((col0 <= 92)) OR ((col4 < 55.45 AND col3 > 80 AND (col0 >= 92 AND ((col3 = 76) AND (col3 IN (SELECT col0 FROM tab4 WHERE (col1 > 73.88) OR ((col3 > 71) AND (col0 < 97))) OR (col3 >= 65) AND ((col3 < 30))) AND (((col1 BETWEEN 61.46 AND 86.35))) AND col3 > [...]
query I rowsort label-7605
diff --git a/data/sqlite/index/in/100/slt_good_0.slt b/data/sqlite/index/in/100/slt_good_0.slt
index eca7380..75c4a0d 100644
--- a/data/sqlite/index/in/100/slt_good_0.slt
+++ b/data/sqlite/index/in/100/slt_good_0.slt
@@ -6941,77 +6941,77 @@ SELECT pk FROM tab4 WHERE col1 < 852.19 OR (col3 = 491 OR col3 = 42) AND col1 =
# Datafusion - Datafusion expected results:
# Datafusion - Expected - 19 values hashing to 3e54685f2c72dc9f193c3f4a967761c9
-query error DataFusion error: SQL error: RecursionLimitExceeded
+query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
SELECT pk FROM tab0 WHERE ((col1 <= 601.41 AND (((col0 IS NULL AND (col3 > 768 OR col3 > 89)) AND ((col0 BETWEEN 996 AND 960 OR col4 < 664.34 AND col1 >= 445.23 AND ((col3 > 823 AND ((col3 >= 663)))) AND col0 > 883 AND col4 >= 247.43 OR (col0 = 115))) AND (((col0 > 941 AND col1 > 559.36)) AND (col4 IS NULL OR col0 > 583 AND (col3 > 927) OR col1 > 616.82 OR col0 < 35 OR (col0 > 688 AND (((col0 < 595 AND (col4 > 228.67) OR (col0 = 651) AND (((col1 = 509.82))) AND ((((col0 > 416))) OR col1 [...]
# Datafusion - Datafusion expected results:
# Datafusion - Expected - 19 values hashing to 3e54685f2c72dc9f193c3f4a967761c9
-query error DataFusion error: SQL error: RecursionLimitExceeded
+query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
SELECT pk FROM tab0 WHERE ((col1 <= 601.41 AND (((col0 IS NULL AND (col3 > 768 OR col3 > 89)) AND ((col0 BETWEEN 996 AND 960 OR col4 < 664.34 AND col1 >= 445.23 AND ((col3 > 823 AND ((col3 >= 663)))) AND col0 > 883 AND col4 >= 247.43 OR (col0 = 115))) AND (((col0 > 941 AND col1 > 559.36)) AND (col4 IS NULL OR col0 > 583 AND (col3 > 927) OR col1 > 616.82 OR col0 < 35 OR (col0 > 688 AND (((col0 < 595 AND (col4 > 228.67) OR (col0 = 651) AND (((col1 = 509.82))) AND ((((col0 > 416))) OR col1 [...]
# Datafusion - Datafusion expected results:
# Datafusion - Expected - 19 values hashing to 3e54685f2c72dc9f193c3f4a967761c9
-query error DataFusion error: SQL error: RecursionLimitExceeded
+query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
SELECT pk FROM tab0 WHERE ((col1 <= 601.41 AND (((col0 IS NULL AND (col3 > 768 OR col3 > 89)) AND ((col0 BETWEEN 996 AND 960 OR col4 < 664.34 AND col1 >= 445.23 AND ((col3 > 823 AND ((col3 >= 663)))) AND col0 > 883 AND col4 >= 247.43 OR (col0 = 115))) AND (((col0 > 941 AND col1 > 559.36)) AND (col4 IS NULL OR col0 > 583 AND (col3 > 927) OR col1 > 616.82 OR col0 < 35 OR (col0 > 688 AND (((col0 < 595 AND (col4 > 228.67) OR (col0 = 651) AND (((col1 = 509.82))) AND ((((col0 > 416))) OR col1 [...]
# Datafusion - Datafusion expected results:
# Datafusion - Expected - 19 values hashing to 3e54685f2c72dc9f193c3f4a967761c9
-query error DataFusion error: SQL error: RecursionLimitExceeded
+query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
SELECT pk FROM tab1 WHERE ((col1 <= 601.41 AND (((col0 IS NULL AND (col3 > 768 OR col3 > 89)) AND ((col0 BETWEEN 996 AND 960 OR col4 < 664.34 AND col1 >= 445.23 AND ((col3 > 823 AND ((col3 >= 663)))) AND col0 > 883 AND col4 >= 247.43 OR (col0 = 115))) AND (((col0 > 941 AND col1 > 559.36)) AND (col4 IS NULL OR col0 > 583 AND (col3 > 927) OR col1 > 616.82 OR col0 < 35 OR (col0 > 688 AND (((col0 < 595 AND (col4 > 228.67) OR (col0 = 651) AND (((col1 = 509.82))) AND ((((col0 > 416))) OR col1 [...]
# Datafusion - Datafusion expected results:
# Datafusion - Expected - 19 values hashing to 3e54685f2c72dc9f193c3f4a967761c9
-query error DataFusion error: SQL error: RecursionLimitExceeded
+query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
SELECT pk FROM tab1 WHERE ((col1 <= 601.41 AND (((col0 IS NULL AND (col3 > 768 OR col3 > 89)) AND ((col0 BETWEEN 996 AND 960 OR col4 < 664.34 AND col1 >= 445.23 AND ((col3 > 823 AND ((col3 >= 663)))) AND col0 > 883 AND col4 >= 247.43 OR (col0 = 115))) AND (((col0 > 941 AND col1 > 559.36)) AND (col4 IS NULL OR col0 > 583 AND (col3 > 927) OR col1 > 616.82 OR col0 < 35 OR (col0 > 688 AND (((col0 < 595 AND (col4 > 228.67) OR (col0 = 651) AND (((col1 = 509.82))) AND ((((col0 > 416))) OR col1 [...]
# Datafusion - Datafusion expected results:
# Datafusion - Expected - 19 values hashing to 3e54685f2c72dc9f193c3f4a967761c9
-query error DataFusion error: SQL error: RecursionLimitExceeded
+query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
SELECT pk FROM tab1 WHERE ((col1 <= 601.41 AND (((col0 IS NULL AND (col3 > 768 OR col3 > 89)) AND ((col0 BETWEEN 996 AND 960 OR col4 < 664.34 AND col1 >= 445.23 AND ((col3 > 823 AND ((col3 >= 663)))) AND col0 > 883 AND col4 >= 247.43 OR (col0 = 115))) AND (((col0 > 941 AND col1 > 559.36)) AND (col4 IS NULL OR col0 > 583 AND (col3 > 927) OR col1 > 616.82 OR col0 < 35 OR (col0 > 688 AND (((col0 < 595 AND (col4 > 228.67) OR (col0 = 651) AND (((col1 = 509.82))) AND ((((col0 > 416))) OR col1 [...]
# Datafusion - Datafusion expected results:
# Datafusion - Expected - 19 values hashing to 3e54685f2c72dc9f193c3f4a967761c9
-query error DataFusion error: SQL error: RecursionLimitExceeded
+query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
SELECT pk FROM tab2 WHERE ((col1 <= 601.41 AND (((col0 IS NULL AND (col3 > 768 OR col3 > 89)) AND ((col0 BETWEEN 996 AND 960 OR col4 < 664.34 AND col1 >= 445.23 AND ((col3 > 823 AND ((col3 >= 663)))) AND col0 > 883 AND col4 >= 247.43 OR (col0 = 115))) AND (((col0 > 941 AND col1 > 559.36)) AND (col4 IS NULL OR col0 > 583 AND (col3 > 927) OR col1 > 616.82 OR col0 < 35 OR (col0 > 688 AND (((col0 < 595 AND (col4 > 228.67) OR (col0 = 651) AND (((col1 = 509.82))) AND ((((col0 > 416))) OR col1 [...]
# Datafusion - Datafusion expected results:
# Datafusion - Expected - 19 values hashing to 3e54685f2c72dc9f193c3f4a967761c9
-query error DataFusion error: SQL error: RecursionLimitExceeded
+query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
SELECT pk FROM tab2 WHERE ((col1 <= 601.41 AND (((col0 IS NULL AND (col3 > 768 OR col3 > 89)) AND ((col0 BETWEEN 996 AND 960 OR col4 < 664.34 AND col1 >= 445.23 AND ((col3 > 823 AND ((col3 >= 663)))) AND col0 > 883 AND col4 >= 247.43 OR (col0 = 115))) AND (((col0 > 941 AND col1 > 559.36)) AND (col4 IS NULL OR col0 > 583 AND (col3 > 927) OR col1 > 616.82 OR col0 < 35 OR (col0 > 688 AND (((col0 < 595 AND (col4 > 228.67) OR (col0 = 651) AND (((col1 = 509.82))) AND ((((col0 > 416))) OR col1 [...]
# Datafusion - Datafusion expected results:
# Datafusion - Expected - 19 values hashing to 3e54685f2c72dc9f193c3f4a967761c9
-query error DataFusion error: SQL error: RecursionLimitExceeded
+query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
SELECT pk FROM tab2 WHERE ((col1 <= 601.41 AND (((col0 IS NULL AND (col3 > 768 OR col3 > 89)) AND ((col0 BETWEEN 996 AND 960 OR col4 < 664.34 AND col1 >= 445.23 AND ((col3 > 823 AND ((col3 >= 663)))) AND col0 > 883 AND col4 >= 247.43 OR (col0 = 115))) AND (((col0 > 941 AND col1 > 559.36)) AND (col4 IS NULL OR col0 > 583 AND (col3 > 927) OR col1 > 616.82 OR col0 < 35 OR (col0 > 688 AND (((col0 < 595 AND (col4 > 228.67) OR (col0 = 651) AND (((col1 = 509.82))) AND ((((col0 > 416))) OR col1 [...]
# Datafusion - Datafusion expected results:
# Datafusion - Expected - 19 values hashing to 3e54685f2c72dc9f193c3f4a967761c9
-query error DataFusion error: SQL error: RecursionLimitExceeded
+query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
SELECT pk FROM tab3 WHERE ((col1 <= 601.41 AND (((col0 IS NULL AND (col3 > 768 OR col3 > 89)) AND ((col0 BETWEEN 996 AND 960 OR col4 < 664.34 AND col1 >= 445.23 AND ((col3 > 823 AND ((col3 >= 663)))) AND col0 > 883 AND col4 >= 247.43 OR (col0 = 115))) AND (((col0 > 941 AND col1 > 559.36)) AND (col4 IS NULL OR col0 > 583 AND (col3 > 927) OR col1 > 616.82 OR col0 < 35 OR (col0 > 688 AND (((col0 < 595 AND (col4 > 228.67) OR (col0 = 651) AND (((col1 = 509.82))) AND ((((col0 > 416))) OR col1 [...]
# Datafusion - Datafusion expected results:
# Datafusion - Expected - 19 values hashing to 3e54685f2c72dc9f193c3f4a967761c9
-query error DataFusion error: SQL error: RecursionLimitExceeded
+query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
SELECT pk FROM tab3 WHERE ((col1 <= 601.41 AND (((col0 IS NULL AND (col3 > 768 OR col3 > 89)) AND ((col0 BETWEEN 996 AND 960 OR col4 < 664.34 AND col1 >= 445.23 AND ((col3 > 823 AND ((col3 >= 663)))) AND col0 > 883 AND col4 >= 247.43 OR (col0 = 115))) AND (((col0 > 941 AND col1 > 559.36)) AND (col4 IS NULL OR col0 > 583 AND (col3 > 927) OR col1 > 616.82 OR col0 < 35 OR (col0 > 688 AND (((col0 < 595 AND (col4 > 228.67) OR (col0 = 651) AND (((col1 = 509.82))) AND ((((col0 > 416))) OR col1 [...]
# Datafusion - Datafusion expected results:
# Datafusion - Expected - 19 values hashing to 3e54685f2c72dc9f193c3f4a967761c9
-query error DataFusion error: SQL error: RecursionLimitExceeded
+query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
SELECT pk FROM tab3 WHERE ((col1 <= 601.41 AND (((col0 IS NULL AND (col3 > 768 OR col3 > 89)) AND ((col0 BETWEEN 996 AND 960 OR col4 < 664.34 AND col1 >= 445.23 AND ((col3 > 823 AND ((col3 >= 663)))) AND col0 > 883 AND col4 >= 247.43 OR (col0 = 115))) AND (((col0 > 941 AND col1 > 559.36)) AND (col4 IS NULL OR col0 > 583 AND (col3 > 927) OR col1 > 616.82 OR col0 < 35 OR (col0 > 688 AND (((col0 < 595 AND (col4 > 228.67) OR (col0 = 651) AND (((col1 = 509.82))) AND ((((col0 > 416))) OR col1 [...]
# Datafusion - Datafusion expected results:
# Datafusion - Expected - 19 values hashing to 3e54685f2c72dc9f193c3f4a967761c9
-query error DataFusion error: SQL error: RecursionLimitExceeded
+query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
SELECT pk FROM tab4 WHERE ((col1 <= 601.41 AND (((col0 IS NULL AND (col3 > 768 OR col3 > 89)) AND ((col0 BETWEEN 996 AND 960 OR col4 < 664.34 AND col1 >= 445.23 AND ((col3 > 823 AND ((col3 >= 663)))) AND col0 > 883 AND col4 >= 247.43 OR (col0 = 115))) AND (((col0 > 941 AND col1 > 559.36)) AND (col4 IS NULL OR col0 > 583 AND (col3 > 927) OR col1 > 616.82 OR col0 < 35 OR (col0 > 688 AND (((col0 < 595 AND (col4 > 228.67) OR (col0 = 651) AND (((col1 = 509.82))) AND ((((col0 > 416))) OR col1 [...]
# Datafusion - Datafusion expected results:
# Datafusion - Expected - 19 values hashing to 3e54685f2c72dc9f193c3f4a967761c9
-query error DataFusion error: SQL error: RecursionLimitExceeded
+query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
SELECT pk FROM tab4 WHERE ((col1 <= 601.41 AND (((col0 IS NULL AND (col3 > 768 OR col3 > 89)) AND ((col0 BETWEEN 996 AND 960 OR col4 < 664.34 AND col1 >= 445.23 AND ((col3 > 823 AND ((col3 >= 663)))) AND col0 > 883 AND col4 >= 247.43 OR (col0 = 115))) AND (((col0 > 941 AND col1 > 559.36)) AND (col4 IS NULL OR col0 > 583 AND (col3 > 927) OR col1 > 616.82 OR col0 < 35 OR (col0 > 688 AND (((col0 < 595 AND (col4 > 228.67) OR (col0 = 651) AND (((col1 = 509.82))) AND ((((col0 > 416))) OR col1 [...]
# Datafusion - Datafusion expected results:
# Datafusion - Expected - 19 values hashing to 3e54685f2c72dc9f193c3f4a967761c9
-query error DataFusion error: SQL error: RecursionLimitExceeded
+query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
SELECT pk FROM tab4 WHERE ((col1 <= 601.41 AND (((col0 IS NULL AND (col3 > 768 OR col3 > 89)) AND ((col0 BETWEEN 996 AND 960 OR col4 < 664.34 AND col1 >= 445.23 AND ((col3 > 823 AND ((col3 >= 663)))) AND col0 > 883 AND col4 >= 247.43 OR (col0 = 115))) AND (((col0 > 941 AND col1 > 559.36)) AND (col4 IS NULL OR col0 > 583 AND (col3 > 927) OR col1 > 616.82 OR col0 < 35 OR (col0 > 688 AND (((col0 < 595 AND (col4 > 228.67) OR (col0 = 651) AND (((col1 = 509.82))) AND ((((col0 > 416))) OR col1 [...]
query I rowsort label-1395
diff --git a/data/sqlite/index/in/100/slt_good_3.slt b/data/sqlite/index/in/100/slt_good_3.slt
index fbca054..cda31b7 100644
--- a/data/sqlite/index/in/100/slt_good_3.slt
+++ b/data/sqlite/index/in/100/slt_good_3.slt
@@ -19143,77 +19143,77 @@ SELECT pk FROM tab4 WHERE (col4 <= 706.34 OR col3 < 712 AND ((col0 <= 244)) AND
# Datafusion - Datafusion expected results:
# Datafusion - Expected - 100 values hashing to d7fd31c3916c207fd3117332326c3f37
-query error DataFusion error: SQL error: RecursionLimitExceeded
+query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
SELECT pk FROM tab0 WHERE (col0 > 895 OR col0 < 956 OR col0 > 760 AND ((col3 > 280)) AND col0 = 720 OR (col0 > 305 AND col3 > 70) AND ((col0 < 527 OR (((col0 >= 26)) AND ((col1 < 331.7))) OR (col0 > 903) AND (col1 > 86.48 OR ((col0 > 24)) AND col4 < 758.81 AND col3 <= 241 AND ((col1 = 136.57 AND col3 >= 698 OR ((col0 < 588) AND col1 > 69.3 OR col0 > 173 AND (col3 = 375 OR col3 = 611)))) AND (col4 < 627.53 AND (col3 = 166)) AND (((col3 > 43 OR (col4 > 482.76))) OR col4 = 169.3 AND (col0 I [...]
# Datafusion - Datafusion expected results:
# Datafusion - Expected - 100 values hashing to d7fd31c3916c207fd3117332326c3f37
-query error DataFusion error: SQL error: RecursionLimitExceeded
+query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
SELECT pk FROM tab0 WHERE (col0 > 895 OR col0 < 956 OR col0 > 760 AND ((col3 > 280)) AND col0 = 720 OR (col0 > 305 AND col3 > 70) AND ((col0 < 527 OR (((col0 >= 26)) AND ((col1 < 331.7))) OR (col0 > 903) AND (col1 > 86.48 OR ((col0 > 24)) AND col4 < 758.81 AND col3 <= 241 AND ((col1 = 136.57 AND col3 >= 698 OR ((col0 < 588) AND col1 > 69.3 OR col0 > 173 AND (col3 = 375 OR col3 = 611)))) AND (col4 < 627.53 AND (col3 = 166)) AND (((col3 > 43 OR (col4 > 482.76))) OR col4 = 169.3 AND (col0 I [...]
# Datafusion - Datafusion expected results:
# Datafusion - Expected - 100 values hashing to d7fd31c3916c207fd3117332326c3f37
-query error DataFusion error: SQL error: RecursionLimitExceeded
+query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
SELECT pk FROM tab0 WHERE (col0 > 895 OR col0 < 956 OR col0 > 760 AND ((col3 > 280)) AND col0 = 720 OR (col0 > 305 AND col3 > 70) AND ((col0 < 527 OR (((col0 >= 26)) AND ((col1 < 331.7))) OR (col0 > 903) AND (col1 > 86.48 OR ((col0 > 24)) AND col4 < 758.81 AND col3 <= 241 AND ((col1 = 136.57 AND col3 >= 698 OR ((col0 < 588) AND col1 > 69.3 OR col0 > 173 AND (col3 = 375 OR col3 = 611)))) AND (col4 < 627.53 AND (col3 = 166)) AND (((col3 > 43 OR (col4 > 482.76))) OR col4 = 169.3 AND (col0 I [...]
# Datafusion - Datafusion expected results:
# Datafusion - Expected - 100 values hashing to d7fd31c3916c207fd3117332326c3f37
-query error DataFusion error: SQL error: RecursionLimitExceeded
+query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
SELECT pk FROM tab1 WHERE (col0 > 895 OR col0 < 956 OR col0 > 760 AND ((col3 > 280)) AND col0 = 720 OR (col0 > 305 AND col3 > 70) AND ((col0 < 527 OR (((col0 >= 26)) AND ((col1 < 331.7))) OR (col0 > 903) AND (col1 > 86.48 OR ((col0 > 24)) AND col4 < 758.81 AND col3 <= 241 AND ((col1 = 136.57 AND col3 >= 698 OR ((col0 < 588) AND col1 > 69.3 OR col0 > 173 AND (col3 = 375 OR col3 = 611)))) AND (col4 < 627.53 AND (col3 = 166)) AND (((col3 > 43 OR (col4 > 482.76))) OR col4 = 169.3 AND (col0 I [...]
# Datafusion - Datafusion expected results:
# Datafusion - Expected - 100 values hashing to d7fd31c3916c207fd3117332326c3f37
-query error DataFusion error: SQL error: RecursionLimitExceeded
+query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
SELECT pk FROM tab1 WHERE (col0 > 895 OR col0 < 956 OR col0 > 760 AND ((col3 > 280)) AND col0 = 720 OR (col0 > 305 AND col3 > 70) AND ((col0 < 527 OR (((col0 >= 26)) AND ((col1 < 331.7))) OR (col0 > 903) AND (col1 > 86.48 OR ((col0 > 24)) AND col4 < 758.81 AND col3 <= 241 AND ((col1 = 136.57 AND col3 >= 698 OR ((col0 < 588) AND col1 > 69.3 OR col0 > 173 AND (col3 = 375 OR col3 = 611)))) AND (col4 < 627.53 AND (col3 = 166)) AND (((col3 > 43 OR (col4 > 482.76))) OR col4 = 169.3 AND (col0 I [...]
# Datafusion - Datafusion expected results:
# Datafusion - Expected - 100 values hashing to d7fd31c3916c207fd3117332326c3f37
-query error DataFusion error: SQL error: RecursionLimitExceeded
+query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
SELECT pk FROM tab1 WHERE (col0 > 895 OR col0 < 956 OR col0 > 760 AND ((col3 > 280)) AND col0 = 720 OR (col0 > 305 AND col3 > 70) AND ((col0 < 527 OR (((col0 >= 26)) AND ((col1 < 331.7))) OR (col0 > 903) AND (col1 > 86.48 OR ((col0 > 24)) AND col4 < 758.81 AND col3 <= 241 AND ((col1 = 136.57 AND col3 >= 698 OR ((col0 < 588) AND col1 > 69.3 OR col0 > 173 AND (col3 = 375 OR col3 = 611)))) AND (col4 < 627.53 AND (col3 = 166)) AND (((col3 > 43 OR (col4 > 482.76))) OR col4 = 169.3 AND (col0 I [...]
# Datafusion - Datafusion expected results:
# Datafusion - Expected - 100 values hashing to d7fd31c3916c207fd3117332326c3f37
-query error DataFusion error: SQL error: RecursionLimitExceeded
+query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
SELECT pk FROM tab2 WHERE (col0 > 895 OR col0 < 956 OR col0 > 760 AND ((col3 > 280)) AND col0 = 720 OR (col0 > 305 AND col3 > 70) AND ((col0 < 527 OR (((col0 >= 26)) AND ((col1 < 331.7))) OR (col0 > 903) AND (col1 > 86.48 OR ((col0 > 24)) AND col4 < 758.81 AND col3 <= 241 AND ((col1 = 136.57 AND col3 >= 698 OR ((col0 < 588) AND col1 > 69.3 OR col0 > 173 AND (col3 = 375 OR col3 = 611)))) AND (col4 < 627.53 AND (col3 = 166)) AND (((col3 > 43 OR (col4 > 482.76))) OR col4 = 169.3 AND (col0 I [...]
# Datafusion - Datafusion expected results:
# Datafusion - Expected - 100 values hashing to d7fd31c3916c207fd3117332326c3f37
-query error DataFusion error: SQL error: RecursionLimitExceeded
+query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
SELECT pk FROM tab2 WHERE (col0 > 895 OR col0 < 956 OR col0 > 760 AND ((col3 > 280)) AND col0 = 720 OR (col0 > 305 AND col3 > 70) AND ((col0 < 527 OR (((col0 >= 26)) AND ((col1 < 331.7))) OR (col0 > 903) AND (col1 > 86.48 OR ((col0 > 24)) AND col4 < 758.81 AND col3 <= 241 AND ((col1 = 136.57 AND col3 >= 698 OR ((col0 < 588) AND col1 > 69.3 OR col0 > 173 AND (col3 = 375 OR col3 = 611)))) AND (col4 < 627.53 AND (col3 = 166)) AND (((col3 > 43 OR (col4 > 482.76))) OR col4 = 169.3 AND (col0 I [...]
# Datafusion - Datafusion expected results:
# Datafusion - Expected - 100 values hashing to d7fd31c3916c207fd3117332326c3f37
-query error DataFusion error: SQL error: RecursionLimitExceeded
+query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
SELECT pk FROM tab2 WHERE (col0 > 895 OR col0 < 956 OR col0 > 760 AND ((col3 > 280)) AND col0 = 720 OR (col0 > 305 AND col3 > 70) AND ((col0 < 527 OR (((col0 >= 26)) AND ((col1 < 331.7))) OR (col0 > 903) AND (col1 > 86.48 OR ((col0 > 24)) AND col4 < 758.81 AND col3 <= 241 AND ((col1 = 136.57 AND col3 >= 698 OR ((col0 < 588) AND col1 > 69.3 OR col0 > 173 AND (col3 = 375 OR col3 = 611)))) AND (col4 < 627.53 AND (col3 = 166)) AND (((col3 > 43 OR (col4 > 482.76))) OR col4 = 169.3 AND (col0 I [...]
# Datafusion - Datafusion expected results:
# Datafusion - Expected - 100 values hashing to d7fd31c3916c207fd3117332326c3f37
-query error DataFusion error: SQL error: RecursionLimitExceeded
+query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
SELECT pk FROM tab3 WHERE (col0 > 895 OR col0 < 956 OR col0 > 760 AND ((col3 > 280)) AND col0 = 720 OR (col0 > 305 AND col3 > 70) AND ((col0 < 527 OR (((col0 >= 26)) AND ((col1 < 331.7))) OR (col0 > 903) AND (col1 > 86.48 OR ((col0 > 24)) AND col4 < 758.81 AND col3 <= 241 AND ((col1 = 136.57 AND col3 >= 698 OR ((col0 < 588) AND col1 > 69.3 OR col0 > 173 AND (col3 = 375 OR col3 = 611)))) AND (col4 < 627.53 AND (col3 = 166)) AND (((col3 > 43 OR (col4 > 482.76))) OR col4 = 169.3 AND (col0 I [...]
# Datafusion - Datafusion expected results:
# Datafusion - Expected - 100 values hashing to d7fd31c3916c207fd3117332326c3f37
-query error DataFusion error: SQL error: RecursionLimitExceeded
+query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
SELECT pk FROM tab3 WHERE (col0 > 895 OR col0 < 956 OR col0 > 760 AND ((col3 > 280)) AND col0 = 720 OR (col0 > 305 AND col3 > 70) AND ((col0 < 527 OR (((col0 >= 26)) AND ((col1 < 331.7))) OR (col0 > 903) AND (col1 > 86.48 OR ((col0 > 24)) AND col4 < 758.81 AND col3 <= 241 AND ((col1 = 136.57 AND col3 >= 698 OR ((col0 < 588) AND col1 > 69.3 OR col0 > 173 AND (col3 = 375 OR col3 = 611)))) AND (col4 < 627.53 AND (col3 = 166)) AND (((col3 > 43 OR (col4 > 482.76))) OR col4 = 169.3 AND (col0 I [...]
# Datafusion - Datafusion expected results:
# Datafusion - Expected - 100 values hashing to d7fd31c3916c207fd3117332326c3f37
-query error DataFusion error: SQL error: RecursionLimitExceeded
+query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
SELECT pk FROM tab3 WHERE (col0 > 895 OR col0 < 956 OR col0 > 760 AND ((col3 > 280)) AND col0 = 720 OR (col0 > 305 AND col3 > 70) AND ((col0 < 527 OR (((col0 >= 26)) AND ((col1 < 331.7))) OR (col0 > 903) AND (col1 > 86.48 OR ((col0 > 24)) AND col4 < 758.81 AND col3 <= 241 AND ((col1 = 136.57 AND col3 >= 698 OR ((col0 < 588) AND col1 > 69.3 OR col0 > 173 AND (col3 = 375 OR col3 = 611)))) AND (col4 < 627.53 AND (col3 = 166)) AND (((col3 > 43 OR (col4 > 482.76))) OR col4 = 169.3 AND (col0 I [...]
# Datafusion - Datafusion expected results:
# Datafusion - Expected - 100 values hashing to d7fd31c3916c207fd3117332326c3f37
-query error DataFusion error: SQL error: RecursionLimitExceeded
+query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
SELECT pk FROM tab4 WHERE (col0 > 895 OR col0 < 956 OR col0 > 760 AND ((col3 > 280)) AND col0 = 720 OR (col0 > 305 AND col3 > 70) AND ((col0 < 527 OR (((col0 >= 26)) AND ((col1 < 331.7))) OR (col0 > 903) AND (col1 > 86.48 OR ((col0 > 24)) AND col4 < 758.81 AND col3 <= 241 AND ((col1 = 136.57 AND col3 >= 698 OR ((col0 < 588) AND col1 > 69.3 OR col0 > 173 AND (col3 = 375 OR col3 = 611)))) AND (col4 < 627.53 AND (col3 = 166)) AND (((col3 > 43 OR (col4 > 482.76))) OR col4 = 169.3 AND (col0 I [...]
# Datafusion - Datafusion expected results:
# Datafusion - Expected - 100 values hashing to d7fd31c3916c207fd3117332326c3f37
-query error DataFusion error: SQL error: RecursionLimitExceeded
+query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
SELECT pk FROM tab4 WHERE (col0 > 895 OR col0 < 956 OR col0 > 760 AND ((col3 > 280)) AND col0 = 720 OR (col0 > 305 AND col3 > 70) AND ((col0 < 527 OR (((col0 >= 26)) AND ((col1 < 331.7))) OR (col0 > 903) AND (col1 > 86.48 OR ((col0 > 24)) AND col4 < 758.81 AND col3 <= 241 AND ((col1 = 136.57 AND col3 >= 698 OR ((col0 < 588) AND col1 > 69.3 OR col0 > 173 AND (col3 = 375 OR col3 = 611)))) AND (col4 < 627.53 AND (col3 = 166)) AND (((col3 > 43 OR (col4 > 482.76))) OR col4 = 169.3 AND (col0 I [...]
# Datafusion - Datafusion expected results:
# Datafusion - Expected - 100 values hashing to d7fd31c3916c207fd3117332326c3f37
-query error DataFusion error: SQL error: RecursionLimitExceeded
+query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
SELECT pk FROM tab4 WHERE (col0 > 895 OR col0 < 956 OR col0 > 760 AND ((col3 > 280)) AND col0 = 720 OR (col0 > 305 AND col3 > 70) AND ((col0 < 527 OR (((col0 >= 26)) AND ((col1 < 331.7))) OR (col0 > 903) AND (col1 > 86.48 OR ((col0 > 24)) AND col4 < 758.81 AND col3 <= 241 AND ((col1 = 136.57 AND col3 >= 698 OR ((col0 < 588) AND col1 > 69.3 OR col0 > 173 AND (col3 = 375 OR col3 = 611)))) AND (col4 < 627.53 AND (col3 = 166)) AND (((col3 > 43 OR (col4 > 482.76))) OR col4 = 169.3 AND (col0 I [...]
query I rowsort label-3870
diff --git a/data/sqlite/index/in/1000/slt_good_1.slt b/data/sqlite/index/in/1000/slt_good_1.slt
index 79abeae..857d024 100644
--- a/data/sqlite/index/in/1000/slt_good_1.slt
+++ b/data/sqlite/index/in/1000/slt_good_1.slt
@@ -14470,77 +14470,77 @@ SELECT pk FROM tab4 WHERE ((col0 = 6347 OR (col1 > 7150.71))) AND ((col3 < 1868
# Datafusion - Datafusion expected results:
# Datafusion - Expected - 1000 values hashing to 30a3c33f4078cae93230de944dca2ac9
-query error DataFusion error: SQL error: RecursionLimitExceeded
+query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
SELECT pk FROM tab0 WHERE ((((col4 <= 6261.86 OR (col1 = 5799.50 AND (col3 <= 6016)) OR col1 IS NULL OR (col4 > 2827.19 OR ((col3 > 9422)) OR ((col3 > 5133) AND col0 > 3751 OR col0 > 7395 AND ((col1 >= 4800.18) AND ((col0 < 9365)) AND (((col3 < 8915) AND col4 < 8048.12)) AND col0 <= 9248 OR col3 <= 1238 AND col3 < 1927 OR (col1 < 1785.38 OR col0 < 7149 AND ((col1 IS NULL))) AND col4 >= 6615.97 OR (col3 IS NULL AND col4 > 594.99 OR col0 >= 2771 OR (col0 < 4180 AND (col4 = 7731.51) AND col [...]
# Datafusion - Datafusion expected results:
# Datafusion - Expected - 1000 values hashing to 30a3c33f4078cae93230de944dca2ac9
-query error DataFusion error: SQL error: RecursionLimitExceeded
+query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
SELECT pk FROM tab0 WHERE ((((col4 <= 6261.86 OR (col1 = 5799.50 AND (col3 <= 6016)) OR col1 IS NULL OR (col4 > 2827.19 OR ((col3 > 9422)) OR ((col3 > 5133) AND col0 > 3751 OR col0 > 7395 AND ((col1 >= 4800.18) AND ((col0 < 9365)) AND (((col3 < 8915) AND col4 < 8048.12)) AND col0 <= 9248 OR col3 <= 1238 AND col3 < 1927 OR (col1 < 1785.38 OR col0 < 7149 AND ((col1 IS NULL))) AND col4 >= 6615.97 OR (col3 IS NULL AND col4 > 594.99 OR col0 >= 2771 OR (col0 < 4180 AND (col4 = 7731.51) AND col [...]
# Datafusion - Datafusion expected results:
# Datafusion - Expected - 1000 values hashing to 30a3c33f4078cae93230de944dca2ac9
-query error DataFusion error: SQL error: RecursionLimitExceeded
+query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
SELECT pk FROM tab0 WHERE ((((col4 <= 6261.86 OR (col1 = 5799.50 AND (col3 <= 6016)) OR col1 IS NULL OR (col4 > 2827.19 OR ((col3 > 9422)) OR ((col3 > 5133) AND col0 > 3751 OR col0 > 7395 AND ((col1 >= 4800.18) AND ((col0 < 9365)) AND (((col3 < 8915) AND col4 < 8048.12)) AND col0 <= 9248 OR col3 <= 1238 AND col3 < 1927 OR (col1 < 1785.38 OR col0 < 7149 AND ((col1 IS NULL))) AND col4 >= 6615.97 OR (col3 IS NULL AND col4 > 594.99 OR col0 >= 2771 OR (col0 < 4180 AND (col4 = 7731.51) AND (co [...]
# Datafusion - Datafusion expected results:
# Datafusion - Expected - 1000 values hashing to 30a3c33f4078cae93230de944dca2ac9
-query error DataFusion error: SQL error: RecursionLimitExceeded
+query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
SELECT pk FROM tab1 WHERE ((((col4 <= 6261.86 OR (col1 = 5799.50 AND (col3 <= 6016)) OR col1 IS NULL OR (col4 > 2827.19 OR ((col3 > 9422)) OR ((col3 > 5133) AND col0 > 3751 OR col0 > 7395 AND ((col1 >= 4800.18) AND ((col0 < 9365)) AND (((col3 < 8915) AND col4 < 8048.12)) AND col0 <= 9248 OR col3 <= 1238 AND col3 < 1927 OR (col1 < 1785.38 OR col0 < 7149 AND ((col1 IS NULL))) AND col4 >= 6615.97 OR (col3 IS NULL AND col4 > 594.99 OR col0 >= 2771 OR (col0 < 4180 AND (col4 = 7731.51) AND col [...]
# Datafusion - Datafusion expected results:
# Datafusion - Expected - 1000 values hashing to 30a3c33f4078cae93230de944dca2ac9
-query error DataFusion error: SQL error: RecursionLimitExceeded
+query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
SELECT pk FROM tab1 WHERE ((((col4 <= 6261.86 OR (col1 = 5799.50 AND (col3 <= 6016)) OR col1 IS NULL OR (col4 > 2827.19 OR ((col3 > 9422)) OR ((col3 > 5133) AND col0 > 3751 OR col0 > 7395 AND ((col1 >= 4800.18) AND ((col0 < 9365)) AND (((col3 < 8915) AND col4 < 8048.12)) AND col0 <= 9248 OR col3 <= 1238 AND col3 < 1927 OR (col1 < 1785.38 OR col0 < 7149 AND ((col1 IS NULL))) AND col4 >= 6615.97 OR (col3 IS NULL AND col4 > 594.99 OR col0 >= 2771 OR (col0 < 4180 AND (col4 = 7731.51) AND col [...]
# Datafusion - Datafusion expected results:
# Datafusion - Expected - 1000 values hashing to 30a3c33f4078cae93230de944dca2ac9
-query error DataFusion error: SQL error: RecursionLimitExceeded
+query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
SELECT pk FROM tab1 WHERE ((((col4 <= 6261.86 OR (col1 = 5799.50 AND (col3 <= 6016)) OR col1 IS NULL OR (col4 > 2827.19 OR ((col3 > 9422)) OR ((col3 > 5133) AND col0 > 3751 OR col0 > 7395 AND ((col1 >= 4800.18) AND ((col0 < 9365)) AND (((col3 < 8915) AND col4 < 8048.12)) AND col0 <= 9248 OR col3 <= 1238 AND col3 < 1927 OR (col1 < 1785.38 OR col0 < 7149 AND ((col1 IS NULL))) AND col4 >= 6615.97 OR (col3 IS NULL AND col4 > 594.99 OR col0 >= 2771 OR (col0 < 4180 AND (col4 = 7731.51) AND (co [...]
# Datafusion - Datafusion expected results:
# Datafusion - Expected - 1000 values hashing to 30a3c33f4078cae93230de944dca2ac9
-query error DataFusion error: SQL error: RecursionLimitExceeded
+query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
SELECT pk FROM tab2 WHERE ((((col4 <= 6261.86 OR (col1 = 5799.50 AND (col3 <= 6016)) OR col1 IS NULL OR (col4 > 2827.19 OR ((col3 > 9422)) OR ((col3 > 5133) AND col0 > 3751 OR col0 > 7395 AND ((col1 >= 4800.18) AND ((col0 < 9365)) AND (((col3 < 8915) AND col4 < 8048.12)) AND col0 <= 9248 OR col3 <= 1238 AND col3 < 1927 OR (col1 < 1785.38 OR col0 < 7149 AND ((col1 IS NULL))) AND col4 >= 6615.97 OR (col3 IS NULL AND col4 > 594.99 OR col0 >= 2771 OR (col0 < 4180 AND (col4 = 7731.51) AND col [...]
# Datafusion - Datafusion expected results:
# Datafusion - Expected - 1000 values hashing to 30a3c33f4078cae93230de944dca2ac9
-query error DataFusion error: SQL error: RecursionLimitExceeded
+query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
SELECT pk FROM tab2 WHERE ((((col4 <= 6261.86 OR (col1 = 5799.50 AND (col3 <= 6016)) OR col1 IS NULL OR (col4 > 2827.19 OR ((col3 > 9422)) OR ((col3 > 5133) AND col0 > 3751 OR col0 > 7395 AND ((col1 >= 4800.18) AND ((col0 < 9365)) AND (((col3 < 8915) AND col4 < 8048.12)) AND col0 <= 9248 OR col3 <= 1238 AND col3 < 1927 OR (col1 < 1785.38 OR col0 < 7149 AND ((col1 IS NULL))) AND col4 >= 6615.97 OR (col3 IS NULL AND col4 > 594.99 OR col0 >= 2771 OR (col0 < 4180 AND (col4 = 7731.51) AND col [...]
# Datafusion - Datafusion expected results:
# Datafusion - Expected - 1000 values hashing to 30a3c33f4078cae93230de944dca2ac9
-query error DataFusion error: SQL error: RecursionLimitExceeded
+query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
SELECT pk FROM tab2 WHERE ((((col4 <= 6261.86 OR (col1 = 5799.50 AND (col3 <= 6016)) OR col1 IS NULL OR (col4 > 2827.19 OR ((col3 > 9422)) OR ((col3 > 5133) AND col0 > 3751 OR col0 > 7395 AND ((col1 >= 4800.18) AND ((col0 < 9365)) AND (((col3 < 8915) AND col4 < 8048.12)) AND col0 <= 9248 OR col3 <= 1238 AND col3 < 1927 OR (col1 < 1785.38 OR col0 < 7149 AND ((col1 IS NULL))) AND col4 >= 6615.97 OR (col3 IS NULL AND col4 > 594.99 OR col0 >= 2771 OR (col0 < 4180 AND (col4 = 7731.51) AND (co [...]
# Datafusion - Datafusion expected results:
# Datafusion - Expected - 1000 values hashing to 30a3c33f4078cae93230de944dca2ac9
-query error DataFusion error: SQL error: RecursionLimitExceeded
+query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
SELECT pk FROM tab3 WHERE ((((col4 <= 6261.86 OR (col1 = 5799.50 AND (col3 <= 6016)) OR col1 IS NULL OR (col4 > 2827.19 OR ((col3 > 9422)) OR ((col3 > 5133) AND col0 > 3751 OR col0 > 7395 AND ((col1 >= 4800.18) AND ((col0 < 9365)) AND (((col3 < 8915) AND col4 < 8048.12)) AND col0 <= 9248 OR col3 <= 1238 AND col3 < 1927 OR (col1 < 1785.38 OR col0 < 7149 AND ((col1 IS NULL))) AND col4 >= 6615.97 OR (col3 IS NULL AND col4 > 594.99 OR col0 >= 2771 OR (col0 < 4180 AND (col4 = 7731.51) AND col [...]
# Datafusion - Datafusion expected results:
# Datafusion - Expected - 1000 values hashing to 30a3c33f4078cae93230de944dca2ac9
-query error DataFusion error: SQL error: RecursionLimitExceeded
+query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
SELECT pk FROM tab3 WHERE ((((col4 <= 6261.86 OR (col1 = 5799.50 AND (col3 <= 6016)) OR col1 IS NULL OR (col4 > 2827.19 OR ((col3 > 9422)) OR ((col3 > 5133) AND col0 > 3751 OR col0 > 7395 AND ((col1 >= 4800.18) AND ((col0 < 9365)) AND (((col3 < 8915) AND col4 < 8048.12)) AND col0 <= 9248 OR col3 <= 1238 AND col3 < 1927 OR (col1 < 1785.38 OR col0 < 7149 AND ((col1 IS NULL))) AND col4 >= 6615.97 OR (col3 IS NULL AND col4 > 594.99 OR col0 >= 2771 OR (col0 < 4180 AND (col4 = 7731.51) AND col [...]
# Datafusion - Datafusion expected results:
# Datafusion - Expected - 1000 values hashing to 30a3c33f4078cae93230de944dca2ac9
-query error DataFusion error: SQL error: RecursionLimitExceeded
+query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
SELECT pk FROM tab3 WHERE ((((col4 <= 6261.86 OR (col1 = 5799.50 AND (col3 <= 6016)) OR col1 IS NULL OR (col4 > 2827.19 OR ((col3 > 9422)) OR ((col3 > 5133) AND col0 > 3751 OR col0 > 7395 AND ((col1 >= 4800.18) AND ((col0 < 9365)) AND (((col3 < 8915) AND col4 < 8048.12)) AND col0 <= 9248 OR col3 <= 1238 AND col3 < 1927 OR (col1 < 1785.38 OR col0 < 7149 AND ((col1 IS NULL))) AND col4 >= 6615.97 OR (col3 IS NULL AND col4 > 594.99 OR col0 >= 2771 OR (col0 < 4180 AND (col4 = 7731.51) AND (co [...]
# Datafusion - Datafusion expected results:
# Datafusion - Expected - 1000 values hashing to 30a3c33f4078cae93230de944dca2ac9
-query error DataFusion error: SQL error: RecursionLimitExceeded
+query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
SELECT pk FROM tab4 WHERE ((((col4 <= 6261.86 OR (col1 = 5799.50 AND (col3 <= 6016)) OR col1 IS NULL OR (col4 > 2827.19 OR ((col3 > 9422)) OR ((col3 > 5133) AND col0 > 3751 OR col0 > 7395 AND ((col1 >= 4800.18) AND ((col0 < 9365)) AND (((col3 < 8915) AND col4 < 8048.12)) AND col0 <= 9248 OR col3 <= 1238 AND col3 < 1927 OR (col1 < 1785.38 OR col0 < 7149 AND ((col1 IS NULL))) AND col4 >= 6615.97 OR (col3 IS NULL AND col4 > 594.99 OR col0 >= 2771 OR (col0 < 4180 AND (col4 = 7731.51) AND col [...]
# Datafusion - Datafusion expected results:
# Datafusion - Expected - 1000 values hashing to 30a3c33f4078cae93230de944dca2ac9
-query error DataFusion error: SQL error: RecursionLimitExceeded
+query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
SELECT pk FROM tab4 WHERE ((((col4 <= 6261.86 OR (col1 = 5799.50 AND (col3 <= 6016)) OR col1 IS NULL OR (col4 > 2827.19 OR ((col3 > 9422)) OR ((col3 > 5133) AND col0 > 3751 OR col0 > 7395 AND ((col1 >= 4800.18) AND ((col0 < 9365)) AND (((col3 < 8915) AND col4 < 8048.12)) AND col0 <= 9248 OR col3 <= 1238 AND col3 < 1927 OR (col1 < 1785.38 OR col0 < 7149 AND ((col1 IS NULL))) AND col4 >= 6615.97 OR (col3 IS NULL AND col4 > 594.99 OR col0 >= 2771 OR (col0 < 4180 AND (col4 = 7731.51) AND col [...]
# Datafusion - Datafusion expected results:
# Datafusion - Expected - 1000 values hashing to 30a3c33f4078cae93230de944dca2ac9
-query error DataFusion error: SQL error: RecursionLimitExceeded
+query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
SELECT pk FROM tab4 WHERE ((((col4 <= 6261.86 OR (col1 = 5799.50 AND (col3 <= 6016)) OR col1 IS NULL OR (col4 > 2827.19 OR ((col3 > 9422)) OR ((col3 > 5133) AND col0 > 3751 OR col0 > 7395 AND ((col1 >= 4800.18) AND ((col0 < 9365)) AND (((col3 < 8915) AND col4 < 8048.12)) AND col0 <= 9248 OR col3 <= 1238 AND col3 < 1927 OR (col1 < 1785.38 OR col0 < 7149 AND ((col1 IS NULL))) AND col4 >= 6615.97 OR (col3 IS NULL AND col4 > 594.99 OR col0 >= 2771 OR (col0 < 4180 AND (col4 = 7731.51) AND (co [...]
query I rowsort label-2505
@@ -31914,63 +31914,63 @@ SELECT pk FROM tab4 WHERE col3 = 4323 AND col4 < 6772.93 OR (col0 = 164 OR col0
705 values hashing to 82c00dd88d1c835d0266ca18fb72853d
# Datafusion - Datafusion expected results:
-query error DataFusion error: SQL error: RecursionLimitExceeded
+query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
SELECT pk FROM tab0 WHERE (((col0 < 5669 AND (((col4 = 4845.44))) OR ((((col3 <= 9245) OR ((col0 > 6103)) AND col1 >= 4781.58) AND col3 > 8836 AND col3 IN (3132,5347,444,36,1277,8508) AND col0 > 2625)) OR col4 > 8026.18 AND col3 BETWEEN 5664 AND 4407 AND col4 IN (599.32,9505.58,164.31,3283.20,6709.60,4266.24) AND ((col0 IS NULL) OR (col0 IN (1412,8043) AND col4 >= 4503.92 OR ((((((col3 = 834)) AND (((col4 <= 478.28 AND col0 > 8984 AND (col0 >= 5463 OR col1 < 6793.60 AND col0 >= 3415 AND [...]
# Datafusion - Datafusion expected results:
-query error DataFusion error: SQL error: RecursionLimitExceeded
+query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
SELECT pk FROM tab0 WHERE (((col0 < 5669 AND (((col4 = 4845.44))) OR ((((col3 <= 9245) OR ((col0 > 6103)) AND col1 >= 4781.58) AND col3 > 8836 AND col3 IN (8508,5347,36,444,1277,3132) AND col0 > 2625)) OR col4 > 8026.18 AND col3 BETWEEN 5664 AND 4407 AND col4 IN (3283.20,9505.58,164.31,599.32,4266.24,6709.60) AND ((col0 IS NULL) OR (col0 IN (8043,1412) AND col4 >= 4503.92 OR ((((((col3 = 834)) AND (((col4 <= 478.28 AND col0 > 8984 AND (col0 >= 5463 OR col1 < 6793.60 AND col0 >= 3415 AND [...]
# Datafusion - Datafusion expected results:
-query error DataFusion error: SQL error: RecursionLimitExceeded
+query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
SELECT pk FROM tab0 WHERE (((col0 < 5669 AND (((col4 = 4845.44))) OR ((((col3 <= 9245) OR ((col0 > 6103)) AND col1 >= 4781.58) AND col3 > 8836 AND (col3 = 3132 OR col3 = 5347 OR col3 = 444 OR col3 = 36 OR col3 = 1277 OR col3 = 8508) AND col0 > 2625)) OR col4 > 8026.18 AND col3 BETWEEN 5664 AND 4407 AND (col4 = 599.32 OR col4 = 9505.58 OR col4 = 164.31 OR col4 = 3283.20 OR col4 = 6709.60 OR col4 = 4266.24) AND ((col0 IS NULL) OR ((col0 = 1412 OR col0 = 8043) AND col4 >= 4503.92 OR ((((((c [...]
# Datafusion - Datafusion expected results:
-query error DataFusion error: SQL error: RecursionLimitExceeded
+query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
SELECT pk FROM tab1 WHERE (((col0 < 5669 AND (((col4 = 4845.44))) OR ((((col3 <= 9245) OR ((col0 > 6103)) AND col1 >= 4781.58) AND col3 > 8836 AND col3 IN (3132,5347,444,36,1277,8508) AND col0 > 2625)) OR col4 > 8026.18 AND col3 BETWEEN 5664 AND 4407 AND col4 IN (599.32,9505.58,164.31,3283.20,6709.60,4266.24) AND ((col0 IS NULL) OR (col0 IN (1412,8043) AND col4 >= 4503.92 OR ((((((col3 = 834)) AND (((col4 <= 478.28 AND col0 > 8984 AND (col0 >= 5463 OR col1 < 6793.60 AND col0 >= 3415 AND [...]
# Datafusion - Datafusion expected results:
-query error DataFusion error: SQL error: RecursionLimitExceeded
+query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
SELECT pk FROM tab1 WHERE (((col0 < 5669 AND (((col4 = 4845.44))) OR ((((col3 <= 9245) OR ((col0 > 6103)) AND col1 >= 4781.58) AND col3 > 8836 AND col3 IN (8508,5347,36,444,1277,3132) AND col0 > 2625)) OR col4 > 8026.18 AND col3 BETWEEN 5664 AND 4407 AND col4 IN (3283.20,9505.58,164.31,599.32,4266.24,6709.60) AND ((col0 IS NULL) OR (col0 IN (8043,1412) AND col4 >= 4503.92 OR ((((((col3 = 834)) AND (((col4 <= 478.28 AND col0 > 8984 AND (col0 >= 5463 OR col1 < 6793.60 AND col0 >= 3415 AND [...]
# Datafusion - Datafusion expected results:
-query error DataFusion error: SQL error: RecursionLimitExceeded
+query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
SELECT pk FROM tab1 WHERE (((col0 < 5669 AND (((col4 = 4845.44))) OR ((((col3 <= 9245) OR ((col0 > 6103)) AND col1 >= 4781.58) AND col3 > 8836 AND (col3 = 3132 OR col3 = 5347 OR col3 = 444 OR col3 = 36 OR col3 = 1277 OR col3 = 8508) AND col0 > 2625)) OR col4 > 8026.18 AND col3 BETWEEN 5664 AND 4407 AND (col4 = 599.32 OR col4 = 9505.58 OR col4 = 164.31 OR col4 = 3283.20 OR col4 = 6709.60 OR col4 = 4266.24) AND ((col0 IS NULL) OR ((col0 = 1412 OR col0 = 8043) AND col4 >= 4503.92 OR ((((((c [...]
# Datafusion - Datafusion expected results:
-query error DataFusion error: SQL error: RecursionLimitExceeded
+query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
SELECT pk FROM tab2 WHERE (((col0 < 5669 AND (((col4 = 4845.44))) OR ((((col3 <= 9245) OR ((col0 > 6103)) AND col1 >= 4781.58) AND col3 > 8836 AND col3 IN (3132,5347,444,36,1277,8508) AND col0 > 2625)) OR col4 > 8026.18 AND col3 BETWEEN 5664 AND 4407 AND col4 IN (599.32,9505.58,164.31,3283.20,6709.60,4266.24) AND ((col0 IS NULL) OR (col0 IN (1412,8043) AND col4 >= 4503.92 OR ((((((col3 = 834)) AND (((col4 <= 478.28 AND col0 > 8984 AND (col0 >= 5463 OR col1 < 6793.60 AND col0 >= 3415 AND [...]
# Datafusion - Datafusion expected results:
-query error DataFusion error: SQL error: RecursionLimitExceeded
+query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
SELECT pk FROM tab2 WHERE (((col0 < 5669 AND (((col4 = 4845.44))) OR ((((col3 <= 9245) OR ((col0 > 6103)) AND col1 >= 4781.58) AND col3 > 8836 AND col3 IN (8508,5347,36,444,1277,3132) AND col0 > 2625)) OR col4 > 8026.18 AND col3 BETWEEN 5664 AND 4407 AND col4 IN (3283.20,9505.58,164.31,599.32,4266.24,6709.60) AND ((col0 IS NULL) OR (col0 IN (8043,1412) AND col4 >= 4503.92 OR ((((((col3 = 834)) AND (((col4 <= 478.28 AND col0 > 8984 AND (col0 >= 5463 OR col1 < 6793.60 AND col0 >= 3415 AND [...]
# Datafusion - Datafusion expected results:
-query error DataFusion error: SQL error: RecursionLimitExceeded
+query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
SELECT pk FROM tab2 WHERE (((col0 < 5669 AND (((col4 = 4845.44))) OR ((((col3 <= 9245) OR ((col0 > 6103)) AND col1 >= 4781.58) AND col3 > 8836 AND (col3 = 3132 OR col3 = 5347 OR col3 = 444 OR col3 = 36 OR col3 = 1277 OR col3 = 8508) AND col0 > 2625)) OR col4 > 8026.18 AND col3 BETWEEN 5664 AND 4407 AND (col4 = 599.32 OR col4 = 9505.58 OR col4 = 164.31 OR col4 = 3283.20 OR col4 = 6709.60 OR col4 = 4266.24) AND ((col0 IS NULL) OR ((col0 = 1412 OR col0 = 8043) AND col4 >= 4503.92 OR ((((((c [...]
# Datafusion - Datafusion expected results:
-query error DataFusion error: SQL error: RecursionLimitExceeded
+query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
SELECT pk FROM tab3 WHERE (((col0 < 5669 AND (((col4 = 4845.44))) OR ((((col3 <= 9245) OR ((col0 > 6103)) AND col1 >= 4781.58) AND col3 > 8836 AND col3 IN (3132,5347,444,36,1277,8508) AND col0 > 2625)) OR col4 > 8026.18 AND col3 BETWEEN 5664 AND 4407 AND col4 IN (599.32,9505.58,164.31,3283.20,6709.60,4266.24) AND ((col0 IS NULL) OR (col0 IN (1412,8043) AND col4 >= 4503.92 OR ((((((col3 = 834)) AND (((col4 <= 478.28 AND col0 > 8984 AND (col0 >= 5463 OR col1 < 6793.60 AND col0 >= 3415 AND [...]
# Datafusion - Datafusion expected results:
-query error DataFusion error: SQL error: RecursionLimitExceeded
+query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
SELECT pk FROM tab3 WHERE (((col0 < 5669 AND (((col4 = 4845.44))) OR ((((col3 <= 9245) OR ((col0 > 6103)) AND col1 >= 4781.58) AND col3 > 8836 AND col3 IN (8508,5347,36,444,1277,3132) AND col0 > 2625)) OR col4 > 8026.18 AND col3 BETWEEN 5664 AND 4407 AND col4 IN (3283.20,9505.58,164.31,599.32,4266.24,6709.60) AND ((col0 IS NULL) OR (col0 IN (8043,1412) AND col4 >= 4503.92 OR ((((((col3 = 834)) AND (((col4 <= 478.28 AND col0 > 8984 AND (col0 >= 5463 OR col1 < 6793.60 AND col0 >= 3415 AND [...]
# Datafusion - Datafusion expected results:
-query error DataFusion error: SQL error: RecursionLimitExceeded
+query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
SELECT pk FROM tab3 WHERE (((col0 < 5669 AND (((col4 = 4845.44))) OR ((((col3 <= 9245) OR ((col0 > 6103)) AND col1 >= 4781.58) AND col3 > 8836 AND (col3 = 3132 OR col3 = 5347 OR col3 = 444 OR col3 = 36 OR col3 = 1277 OR col3 = 8508) AND col0 > 2625)) OR col4 > 8026.18 AND col3 BETWEEN 5664 AND 4407 AND (col4 = 599.32 OR col4 = 9505.58 OR col4 = 164.31 OR col4 = 3283.20 OR col4 = 6709.60 OR col4 = 4266.24) AND ((col0 IS NULL) OR ((col0 = 1412 OR col0 = 8043) AND col4 >= 4503.92 OR ((((((c [...]
# Datafusion - Datafusion expected results:
-query error DataFusion error: SQL error: RecursionLimitExceeded
+query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
SELECT pk FROM tab4 WHERE (((col0 < 5669 AND (((col4 = 4845.44))) OR ((((col3 <= 9245) OR ((col0 > 6103)) AND col1 >= 4781.58) AND col3 > 8836 AND col3 IN (3132,5347,444,36,1277,8508) AND col0 > 2625)) OR col4 > 8026.18 AND col3 BETWEEN 5664 AND 4407 AND col4 IN (599.32,9505.58,164.31,3283.20,6709.60,4266.24) AND ((col0 IS NULL) OR (col0 IN (1412,8043) AND col4 >= 4503.92 OR ((((((col3 = 834)) AND (((col4 <= 478.28 AND col0 > 8984 AND (col0 >= 5463 OR col1 < 6793.60 AND col0 >= 3415 AND [...]
# Datafusion - Datafusion expected results:
-query error DataFusion error: SQL error: RecursionLimitExceeded
+query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
SELECT pk FROM tab4 WHERE (((col0 < 5669 AND (((col4 = 4845.44))) OR ((((col3 <= 9245) OR ((col0 > 6103)) AND col1 >= 4781.58) AND col3 > 8836 AND col3 IN (8508,5347,36,444,1277,3132) AND col0 > 2625)) OR col4 > 8026.18 AND col3 BETWEEN 5664 AND 4407 AND col4 IN (3283.20,9505.58,164.31,599.32,4266.24,6709.60) AND ((col0 IS NULL) OR (col0 IN (8043,1412) AND col4 >= 4503.92 OR ((((((col3 = 834)) AND (((col4 <= 478.28 AND col0 > 8984 AND (col0 >= 5463 OR col1 < 6793.60 AND col0 >= 3415 AND [...]
# Datafusion - Datafusion expected results:
-query error DataFusion error: SQL error: RecursionLimitExceeded
+query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
SELECT pk FROM tab4 WHERE (((col0 < 5669 AND (((col4 = 4845.44))) OR ((((col3 <= 9245) OR ((col0 > 6103)) AND col1 >= 4781.58) AND col3 > 8836 AND (col3 = 3132 OR col3 = 5347 OR col3 = 444 OR col3 = 36 OR col3 = 1277 OR col3 = 8508) AND col0 > 2625)) OR col4 > 8026.18 AND col3 BETWEEN 5664 AND 4407 AND (col4 = 599.32 OR col4 = 9505.58 OR col4 = 164.31 OR col4 = 3283.20 OR col4 = 6709.60 OR col4 = 4266.24) AND ((col0 IS NULL) OR ((col0 = 1412 OR col0 = 8043) AND col4 >= 4503.92 OR ((((((c [...]
query I rowsort label-6240
diff --git a/data/sqlite/index/orderby_nosort/10/slt_good_4.slt b/data/sqlite/index/orderby_nosort/10/slt_good_4.slt
index 53ecbb1..22b5816 100644
--- a/data/sqlite/index/orderby_nosort/10/slt_good_4.slt
+++ b/data/sqlite/index/orderby_nosort/10/slt_good_4.slt
@@ -8725,243 +8725,243 @@ SELECT pk, col0 FROM tab4 WHERE col3 IN (2,23,8,95,19) OR (col0 > 49 AND (col0 <
----
# Datafusion - Datafusion expected results:
-query error DataFusion error: SQL error: RecursionLimitExceeded
+query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
SELECT pk FROM tab0 WHERE col3 = 91 AND (((((((((col1 IN (SELECT col4 FROM tab0 WHERE ((col4 IS NULL)))))) AND col1 IS NULL AND (col0 > 11) AND ((((col3 IN (69,57,80,63)))) OR col3 = 31 AND col3 BETWEEN 48 AND 31) AND (col0 = 41 OR (col0 <= 71) OR ((col1 > 13.41) AND col0 IN (10,89) OR ((col0 < 62 OR ((col1 = 13.60 OR ((col0 < 68 OR (col4 > 97.53 OR ((((col4 > 9.20 AND col3 < 18 AND col0 < 1 AND col0 < 66)))) AND (col1 = 78.86) AND (col3 IS NULL OR (col1 BETWEEN 61.33 AND 78.14 OR (col3 [...]
# Datafusion - Datafusion expected results:
-query error DataFusion error: SQL error: RecursionLimitExceeded
+query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
SELECT pk FROM tab1 WHERE col3 = 91 AND (((((((((col1 IN (SELECT col4 FROM tab1 WHERE ((col4 IS NULL)))))) AND col1 IS NULL AND (col0 > 11) AND ((((col3 IN (69,57,80,63)))) OR col3 = 31 AND col3 BETWEEN 48 AND 31) AND (col0 = 41 OR (col0 <= 71) OR ((col1 > 13.41) AND col0 IN (10,89) OR ((col0 < 62 OR ((col1 = 13.60 OR ((col0 < 68 OR (col4 > 97.53 OR ((((col4 > 9.20 AND col3 < 18 AND col0 < 1 AND col0 < 66)))) AND (col1 = 78.86) AND (col3 IS NULL OR (col1 BETWEEN 61.33 AND 78.14 OR (col3 [...]
# Datafusion - Datafusion expected results:
-query error DataFusion error: SQL error: RecursionLimitExceeded
+query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
SELECT pk FROM tab2 WHERE col3 = 91 AND (((((((((col1 IN (SELECT col4 FROM tab2 WHERE ((col4 IS NULL)))))) AND col1 IS NULL AND (col0 > 11) AND ((((col3 IN (69,57,80,63)))) OR col3 = 31 AND col3 BETWEEN 48 AND 31) AND (col0 = 41 OR (col0 <= 71) OR ((col1 > 13.41) AND col0 IN (10,89) OR ((col0 < 62 OR ((col1 = 13.60 OR ((col0 < 68 OR (col4 > 97.53 OR ((((col4 > 9.20 AND col3 < 18 AND col0 < 1 AND col0 < 66)))) AND (col1 = 78.86) AND (col3 IS NULL OR (col1 BETWEEN 61.33 AND 78.14 OR (col3 [...]
# Datafusion - Datafusion expected results:
-query error DataFusion error: SQL error: RecursionLimitExceeded
+query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
SELECT pk FROM tab3 WHERE col3 = 91 AND (((((((((col1 IN (SELECT col4 FROM tab3 WHERE ((col4 IS NULL)))))) AND col1 IS NULL AND (col0 > 11) AND ((((col3 IN (69,57,80,63)))) OR col3 = 31 AND col3 BETWEEN 48 AND 31) AND (col0 = 41 OR (col0 <= 71) OR ((col1 > 13.41) AND col0 IN (10,89) OR ((col0 < 62 OR ((col1 = 13.60 OR ((col0 < 68 OR (col4 > 97.53 OR ((((col4 > 9.20 AND col3 < 18 AND col0 < 1 AND col0 < 66)))) AND (col1 = 78.86) AND (col3 IS NULL OR (col1 BETWEEN 61.33 AND 78.14 OR (col3 [...]
# Datafusion - Datafusion expected results:
-query error DataFusion error: SQL error: RecursionLimitExceeded
+query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
SELECT pk FROM tab4 WHERE col3 = 91 AND (((((((((col1 IN (SELECT col4 FROM tab4 WHERE ((col4 IS NULL)))))) AND col1 IS NULL AND (col0 > 11) AND ((((col3 IN (69,57,80,63)))) OR col3 = 31 AND col3 BETWEEN 48 AND 31) AND (col0 = 41 OR (col0 <= 71) OR ((col1 > 13.41) AND col0 IN (10,89) OR ((col0 < 62 OR ((col1 = 13.60 OR ((col0 < 68 OR (col4 > 97.53 OR ((((col4 > 9.20 AND col3 < 18 AND col0 < 1 AND col0 < 66)))) AND (col1 = 78.86) AND (col3 IS NULL OR (col1 BETWEEN 61.33 AND 78.14 OR (col3 [...]
# Datafusion - Datafusion expected results:
-query error DataFusion error: SQL error: RecursionLimitExceeded
+query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
SELECT pk FROM tab0 WHERE col3 = 91 AND (((((((((col1 IN (SELECT col4 FROM tab0 WHERE ((col4 IS NULL)))))) AND col1 IS NULL AND (col0 > 11) AND ((((col3 IN (69,57,80,63)))) OR col3 = 31 AND col3 BETWEEN 48 AND 31) AND (col0 = 41 OR (col0 <= 71) OR ((col1 > 13.41) AND col0 IN (10,89) OR ((col0 < 62 OR ((col1 = 13.60 OR ((col0 < 68 OR (col4 > 97.53 OR ((((col4 > 9.20 AND col3 < 18 AND col0 < 1 AND col0 < 66)))) AND (col1 = 78.86) AND (col3 IS NULL OR (col1 BETWEEN 61.33 AND 78.14 OR (col3 [...]
# Datafusion - Datafusion expected results:
-query error DataFusion error: SQL error: RecursionLimitExceeded
+query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
SELECT pk FROM tab1 WHERE col3 = 91 AND (((((((((col1 IN (SELECT col4 FROM tab1 WHERE ((col4 IS NULL)))))) AND col1 IS NULL AND (col0 > 11) AND ((((col3 IN (69,57,80,63)))) OR col3 = 31 AND col3 BETWEEN 48 AND 31) AND (col0 = 41 OR (col0 <= 71) OR ((col1 > 13.41) AND col0 IN (10,89) OR ((col0 < 62 OR ((col1 = 13.60 OR ((col0 < 68 OR (col4 > 97.53 OR ((((col4 > 9.20 AND col3 < 18 AND col0 < 1 AND col0 < 66)))) AND (col1 = 78.86) AND (col3 IS NULL OR (col1 BETWEEN 61.33 AND 78.14 OR (col3 [...]
# Datafusion - Datafusion expected results:
-query error DataFusion error: SQL error: RecursionLimitExceeded
+query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
SELECT pk FROM tab2 WHERE col3 = 91 AND (((((((((col1 IN (SELECT col4 FROM tab2 WHERE ((col4 IS NULL)))))) AND col1 IS NULL AND (col0 > 11) AND ((((col3 IN (69,57,80,63)))) OR col3 = 31 AND col3 BETWEEN 48 AND 31) AND (col0 = 41 OR (col0 <= 71) OR ((col1 > 13.41) AND col0 IN (10,89) OR ((col0 < 62 OR ((col1 = 13.60 OR ((col0 < 68 OR (col4 > 97.53 OR ((((col4 > 9.20 AND col3 < 18 AND col0 < 1 AND col0 < 66)))) AND (col1 = 78.86) AND (col3 IS NULL OR (col1 BETWEEN 61.33 AND 78.14 OR (col3 [...]
# Datafusion - Datafusion expected results:
-query error DataFusion error: SQL error: RecursionLimitExceeded
+query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
SELECT pk FROM tab3 WHERE col3 = 91 AND (((((((((col1 IN (SELECT col4 FROM tab3 WHERE ((col4 IS NULL)))))) AND col1 IS NULL AND (col0 > 11) AND ((((col3 IN (69,57,80,63)))) OR col3 = 31 AND col3 BETWEEN 48 AND 31) AND (col0 = 41 OR (col0 <= 71) OR ((col1 > 13.41) AND col0 IN (10,89) OR ((col0 < 62 OR ((col1 = 13.60 OR ((col0 < 68 OR (col4 > 97.53 OR ((((col4 > 9.20 AND col3 < 18 AND col0 < 1 AND col0 < 66)))) AND (col1 = 78.86) AND (col3 IS NULL OR (col1 BETWEEN 61.33 AND 78.14 OR (col3 [...]
# Datafusion - Datafusion expected results:
-query error DataFusion error: SQL error: RecursionLimitExceeded
+query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
SELECT pk FROM tab4 WHERE col3 = 91 AND (((((((((col1 IN (SELECT col4 FROM tab4 WHERE ((col4 IS NULL)))))) AND col1 IS NULL AND (col0 > 11) AND ((((col3 IN (69,57,80,63)))) OR col3 = 31 AND col3 BETWEEN 48 AND 31) AND (col0 = 41 OR (col0 <= 71) OR ((col1 > 13.41) AND col0 IN (10,89) OR ((col0 < 62 OR ((col1 = 13.60 OR ((col0 < 68 OR (col4 > 97.53 OR ((((col4 > 9.20 AND col3 < 18 AND col0 < 1 AND col0 < 66)))) AND (col1 = 78.86) AND (col3 IS NULL OR (col1 BETWEEN 61.33 AND 78.14 OR (col3 [...]
# Datafusion - Datafusion expected results:
-query error DataFusion error: SQL error: RecursionLimitExceeded
+query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
SELECT pk, col0 FROM tab0 WHERE col3 = 91 AND (((((((((col1 IN (SELECT col4 FROM tab0 WHERE ((col4 IS NULL)))))) AND col1 IS NULL AND (col0 > 11) AND ((((col3 IN (69,57,80,63)))) OR col3 = 31 AND col3 BETWEEN 48 AND 31) AND (col0 = 41 OR (col0 <= 71) OR ((col1 > 13.41) AND col0 IN (10,89) OR ((col0 < 62 OR ((col1 = 13.60 OR ((col0 < 68 OR (col4 > 97.53 OR ((((col4 > 9.20 AND col3 < 18 AND col0 < 1 AND col0 < 66)))) AND (col1 = 78.86) AND (col3 IS NULL OR (col1 BETWEEN 61.33 AND 78.14 OR [...]
# Datafusion - Datafusion expected results:
-query error DataFusion error: SQL error: RecursionLimitExceeded
+query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
SELECT pk, col0 FROM tab1 WHERE col3 = 91 AND (((((((((col1 IN (SELECT col4 FROM tab1 WHERE ((col4 IS NULL)))))) AND col1 IS NULL AND (col0 > 11) AND ((((col3 IN (69,57,80,63)))) OR col3 = 31 AND col3 BETWEEN 48 AND 31) AND (col0 = 41 OR (col0 <= 71) OR ((col1 > 13.41) AND col0 IN (10,89) OR ((col0 < 62 OR ((col1 = 13.60 OR ((col0 < 68 OR (col4 > 97.53 OR ((((col4 > 9.20 AND col3 < 18 AND col0 < 1 AND col0 < 66)))) AND (col1 = 78.86) AND (col3 IS NULL OR (col1 BETWEEN 61.33 AND 78.14 OR [...]
# Datafusion - Datafusion expected results:
-query error DataFusion error: SQL error: RecursionLimitExceeded
+query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
SELECT pk, col0 FROM tab2 WHERE col3 = 91 AND (((((((((col1 IN (SELECT col4 FROM tab2 WHERE ((col4 IS NULL)))))) AND col1 IS NULL AND (col0 > 11) AND ((((col3 IN (69,57,80,63)))) OR col3 = 31 AND col3 BETWEEN 48 AND 31) AND (col0 = 41 OR (col0 <= 71) OR ((col1 > 13.41) AND col0 IN (10,89) OR ((col0 < 62 OR ((col1 = 13.60 OR ((col0 < 68 OR (col4 > 97.53 OR ((((col4 > 9.20 AND col3 < 18 AND col0 < 1 AND col0 < 66)))) AND (col1 = 78.86) AND (col3 IS NULL OR (col1 BETWEEN 61.33 AND 78.14 OR [...]
# Datafusion - Datafusion expected results:
-query error DataFusion error: SQL error: RecursionLimitExceeded
+query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
SELECT pk, col0 FROM tab3 WHERE col3 = 91 AND (((((((((col1 IN (SELECT col4 FROM tab3 WHERE ((col4 IS NULL)))))) AND col1 IS NULL AND (col0 > 11) AND ((((col3 IN (69,57,80,63)))) OR col3 = 31 AND col3 BETWEEN 48 AND 31) AND (col0 = 41 OR (col0 <= 71) OR ((col1 > 13.41) AND col0 IN (10,89) OR ((col0 < 62 OR ((col1 = 13.60 OR ((col0 < 68 OR (col4 > 97.53 OR ((((col4 > 9.20 AND col3 < 18 AND col0 < 1 AND col0 < 66)))) AND (col1 = 78.86) AND (col3 IS NULL OR (col1 BETWEEN 61.33 AND 78.14 OR [...]
# Datafusion - Datafusion expected results:
-query error DataFusion error: SQL error: RecursionLimitExceeded
+query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
SELECT pk, col0 FROM tab4 WHERE col3 = 91 AND (((((((((col1 IN (SELECT col4 FROM tab4 WHERE ((col4 IS NULL)))))) AND col1 IS NULL AND (col0 > 11) AND ((((col3 IN (69,57,80,63)))) OR col3 = 31 AND col3 BETWEEN 48 AND 31) AND (col0 = 41 OR (col0 <= 71) OR ((col1 > 13.41) AND col0 IN (10,89) OR ((col0 < 62 OR ((col1 = 13.60 OR ((col0 < 68 OR (col4 > 97.53 OR ((((col4 > 9.20 AND col3 < 18 AND col0 < 1 AND col0 < 66)))) AND (col1 = 78.86) AND (col3 IS NULL OR (col1 BETWEEN 61.33 AND 78.14 OR [...]
# Datafusion - Datafusion expected results:
-query error DataFusion error: SQL error: RecursionLimitExceeded
+query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
SELECT pk, col0 FROM tab0 WHERE col3 = 91 AND (((((((((col1 IN (SELECT col4 FROM tab0 WHERE ((col4 IS NULL)))))) AND col1 IS NULL AND (col0 > 11) AND ((((col3 IN (69,57,80,63)))) OR col3 = 31 AND col3 BETWEEN 48 AND 31) AND (col0 = 41 OR (col0 <= 71) OR ((col1 > 13.41) AND col0 IN (10,89) OR ((col0 < 62 OR ((col1 = 13.60 OR ((col0 < 68 OR (col4 > 97.53 OR ((((col4 > 9.20 AND col3 < 18 AND col0 < 1 AND col0 < 66)))) AND (col1 = 78.86) AND (col3 IS NULL OR (col1 BETWEEN 61.33 AND 78.14 OR [...]
# Datafusion - Datafusion expected results:
-query error DataFusion error: SQL error: RecursionLimitExceeded
+query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
SELECT pk, col0 FROM tab1 WHERE col3 = 91 AND (((((((((col1 IN (SELECT col4 FROM tab1 WHERE ((col4 IS NULL)))))) AND col1 IS NULL AND (col0 > 11) AND ((((col3 IN (69,57,80,63)))) OR col3 = 31 AND col3 BETWEEN 48 AND 31) AND (col0 = 41 OR (col0 <= 71) OR ((col1 > 13.41) AND col0 IN (10,89) OR ((col0 < 62 OR ((col1 = 13.60 OR ((col0 < 68 OR (col4 > 97.53 OR ((((col4 > 9.20 AND col3 < 18 AND col0 < 1 AND col0 < 66)))) AND (col1 = 78.86) AND (col3 IS NULL OR (col1 BETWEEN 61.33 AND 78.14 OR [...]
# Datafusion - Datafusion expected results:
-query error DataFusion error: SQL error: RecursionLimitExceeded
+query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
SELECT pk, col0 FROM tab2 WHERE col3 = 91 AND (((((((((col1 IN (SELECT col4 FROM tab2 WHERE ((col4 IS NULL)))))) AND col1 IS NULL AND (col0 > 11) AND ((((col3 IN (69,57,80,63)))) OR col3 = 31 AND col3 BETWEEN 48 AND 31) AND (col0 = 41 OR (col0 <= 71) OR ((col1 > 13.41) AND col0 IN (10,89) OR ((col0 < 62 OR ((col1 = 13.60 OR ((col0 < 68 OR (col4 > 97.53 OR ((((col4 > 9.20 AND col3 < 18 AND col0 < 1 AND col0 < 66)))) AND (col1 = 78.86) AND (col3 IS NULL OR (col1 BETWEEN 61.33 AND 78.14 OR [...]
# Datafusion - Datafusion expected results:
-query error DataFusion error: SQL error: RecursionLimitExceeded
+query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
SELECT pk, col0 FROM tab3 WHERE col3 = 91 AND (((((((((col1 IN (SELECT col4 FROM tab3 WHERE ((col4 IS NULL)))))) AND col1 IS NULL AND (col0 > 11) AND ((((col3 IN (69,57,80,63)))) OR col3 = 31 AND col3 BETWEEN 48 AND 31) AND (col0 = 41 OR (col0 <= 71) OR ((col1 > 13.41) AND col0 IN (10,89) OR ((col0 < 62 OR ((col1 = 13.60 OR ((col0 < 68 OR (col4 > 97.53 OR ((((col4 > 9.20 AND col3 < 18 AND col0 < 1 AND col0 < 66)))) AND (col1 = 78.86) AND (col3 IS NULL OR (col1 BETWEEN 61.33 AND 78.14 OR [...]
# Datafusion - Datafusion expected results:
-query error DataFusion error: SQL error: RecursionLimitExceeded
+query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
SELECT pk, col0 FROM tab4 WHERE col3 = 91 AND (((((((((col1 IN (SELECT col4 FROM tab4 WHERE ((col4 IS NULL)))))) AND col1 IS NULL AND (col0 > 11) AND ((((col3 IN (69,57,80,63)))) OR col3 = 31 AND col3 BETWEEN 48 AND 31) AND (col0 = 41 OR (col0 <= 71) OR ((col1 > 13.41) AND col0 IN (10,89) OR ((col0 < 62 OR ((col1 = 13.60 OR ((col0 < 68 OR (col4 > 97.53 OR ((((col4 > 9.20 AND col3 < 18 AND col0 < 1 AND col0 < 66)))) AND (col1 = 78.86) AND (col3 IS NULL OR (col1 BETWEEN 61.33 AND 78.14 OR [...]
# Datafusion - Datafusion expected results:
-query error DataFusion error: SQL error: RecursionLimitExceeded
+query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
SELECT pk, col0 FROM tab0 WHERE col3 = 91 AND (((((((((col1 IN (SELECT col4 FROM tab0 WHERE ((col4 IS NULL)))))) AND col1 IS NULL AND (col0 > 11) AND ((((col3 IN (69,57,80,63)))) OR col3 = 31 AND col3 BETWEEN 48 AND 31) AND (col0 = 41 OR (col0 <= 71) OR ((col1 > 13.41) AND col0 IN (10,89) OR ((col0 < 62 OR ((col1 = 13.60 OR ((col0 < 68 OR (col4 > 97.53 OR ((((col4 > 9.20 AND col3 < 18 AND col0 < 1 AND col0 < 66)))) AND (col1 = 78.86) AND (col3 IS NULL OR (col1 BETWEEN 61.33 AND 78.14 OR [...]
# Datafusion - Datafusion expected results:
-query error DataFusion error: SQL error: RecursionLimitExceeded
+query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
SELECT pk, col0 FROM tab1 WHERE col3 = 91 AND (((((((((col1 IN (SELECT col4 FROM tab1 WHERE ((col4 IS NULL)))))) AND col1 IS NULL AND (col0 > 11) AND ((((col3 IN (69,57,80,63)))) OR col3 = 31 AND col3 BETWEEN 48 AND 31) AND (col0 = 41 OR (col0 <= 71) OR ((col1 > 13.41) AND col0 IN (10,89) OR ((col0 < 62 OR ((col1 = 13.60 OR ((col0 < 68 OR (col4 > 97.53 OR ((((col4 > 9.20 AND col3 < 18 AND col0 < 1 AND col0 < 66)))) AND (col1 = 78.86) AND (col3 IS NULL OR (col1 BETWEEN 61.33 AND 78.14 OR [...]
# Datafusion - Datafusion expected results:
-query error DataFusion error: SQL error: RecursionLimitExceeded
+query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
SELECT pk, col0 FROM tab2 WHERE col3 = 91 AND (((((((((col1 IN (SELECT col4 FROM tab2 WHERE ((col4 IS NULL)))))) AND col1 IS NULL AND (col0 > 11) AND ((((col3 IN (69,57,80,63)))) OR col3 = 31 AND col3 BETWEEN 48 AND 31) AND (col0 = 41 OR (col0 <= 71) OR ((col1 > 13.41) AND col0 IN (10,89) OR ((col0 < 62 OR ((col1 = 13.60 OR ((col0 < 68 OR (col4 > 97.53 OR ((((col4 > 9.20 AND col3 < 18 AND col0 < 1 AND col0 < 66)))) AND (col1 = 78.86) AND (col3 IS NULL OR (col1 BETWEEN 61.33 AND 78.14 OR [...]
# Datafusion - Datafusion expected results:
-query error DataFusion error: SQL error: RecursionLimitExceeded
+query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
SELECT pk, col0 FROM tab3 WHERE col3 = 91 AND (((((((((col1 IN (SELECT col4 FROM tab3 WHERE ((col4 IS NULL)))))) AND col1 IS NULL AND (col0 > 11) AND ((((col3 IN (69,57,80,63)))) OR col3 = 31 AND col3 BETWEEN 48 AND 31) AND (col0 = 41 OR (col0 <= 71) OR ((col1 > 13.41) AND col0 IN (10,89) OR ((col0 < 62 OR ((col1 = 13.60 OR ((col0 < 68 OR (col4 > 97.53 OR ((((col4 > 9.20 AND col3 < 18 AND col0 < 1 AND col0 < 66)))) AND (col1 = 78.86) AND (col3 IS NULL OR (col1 BETWEEN 61.33 AND 78.14 OR [...]
# Datafusion - Datafusion expected results:
-query error DataFusion error: SQL error: RecursionLimitExceeded
+query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
SELECT pk, col0 FROM tab4 WHERE col3 = 91 AND (((((((((col1 IN (SELECT col4 FROM tab4 WHERE ((col4 IS NULL)))))) AND col1 IS NULL AND (col0 > 11) AND ((((col3 IN (69,57,80,63)))) OR col3 = 31 AND col3 BETWEEN 48 AND 31) AND (col0 = 41 OR (col0 <= 71) OR ((col1 > 13.41) AND col0 IN (10,89) OR ((col0 < 62 OR ((col1 = 13.60 OR ((col0 < 68 OR (col4 > 97.53 OR ((((col4 > 9.20 AND col3 < 18 AND col0 < 1 AND col0 < 66)))) AND (col1 = 78.86) AND (col3 IS NULL OR (col1 BETWEEN 61.33 AND 78.14 OR [...]
# Datafusion - Datafusion expected results:
-query error DataFusion error: SQL error: RecursionLimitExceeded
+query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
SELECT pk, col0 FROM tab0 WHERE col3 = 91 AND (((((((((col1 IN (SELECT col4 FROM tab0 WHERE ((col4 IS NULL)))))) AND col1 IS NULL AND (col0 > 11) AND ((((col3 IN (69,57,80,63)))) OR col3 = 31 AND col3 BETWEEN 48 AND 31) AND (col0 = 41 OR (col0 <= 71) OR ((col1 > 13.41) AND col0 IN (10,89) OR ((col0 < 62 OR ((col1 = 13.60 OR ((col0 < 68 OR (col4 > 97.53 OR ((((col4 > 9.20 AND col3 < 18 AND col0 < 1 AND col0 < 66)))) AND (col1 = 78.86) AND (col3 IS NULL OR (col1 BETWEEN 61.33 AND 78.14 OR [...]
# Datafusion - Datafusion expected results:
-query error DataFusion error: SQL error: RecursionLimitExceeded
+query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
SELECT pk, col0 FROM tab1 WHERE col3 = 91 AND (((((((((col1 IN (SELECT col4 FROM tab1 WHERE ((col4 IS NULL)))))) AND col1 IS NULL AND (col0 > 11) AND ((((col3 IN (69,57,80,63)))) OR col3 = 31 AND col3 BETWEEN 48 AND 31) AND (col0 = 41 OR (col0 <= 71) OR ((col1 > 13.41) AND col0 IN (10,89) OR ((col0 < 62 OR ((col1 = 13.60 OR ((col0 < 68 OR (col4 > 97.53 OR ((((col4 > 9.20 AND col3 < 18 AND col0 < 1 AND col0 < 66)))) AND (col1 = 78.86) AND (col3 IS NULL OR (col1 BETWEEN 61.33 AND 78.14 OR [...]
# Datafusion - Datafusion expected results:
-query error DataFusion error: SQL error: RecursionLimitExceeded
+query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
SELECT pk, col0 FROM tab2 WHERE col3 = 91 AND (((((((((col1 IN (SELECT col4 FROM tab2 WHERE ((col4 IS NULL)))))) AND col1 IS NULL AND (col0 > 11) AND ((((col3 IN (69,57,80,63)))) OR col3 = 31 AND col3 BETWEEN 48 AND 31) AND (col0 = 41 OR (col0 <= 71) OR ((col1 > 13.41) AND col0 IN (10,89) OR ((col0 < 62 OR ((col1 = 13.60 OR ((col0 < 68 OR (col4 > 97.53 OR ((((col4 > 9.20 AND col3 < 18 AND col0 < 1 AND col0 < 66)))) AND (col1 = 78.86) AND (col3 IS NULL OR (col1 BETWEEN 61.33 AND 78.14 OR [...]
# Datafusion - Datafusion expected results:
-query error DataFusion error: SQL error: RecursionLimitExceeded
+query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
SELECT pk, col0 FROM tab3 WHERE col3 = 91 AND (((((((((col1 IN (SELECT col4 FROM tab3 WHERE ((col4 IS NULL)))))) AND col1 IS NULL AND (col0 > 11) AND ((((col3 IN (69,57,80,63)))) OR col3 = 31 AND col3 BETWEEN 48 AND 31) AND (col0 = 41 OR (col0 <= 71) OR ((col1 > 13.41) AND col0 IN (10,89) OR ((col0 < 62 OR ((col1 = 13.60 OR ((col0 < 68 OR (col4 > 97.53 OR ((((col4 > 9.20 AND col3 < 18 AND col0 < 1 AND col0 < 66)))) AND (col1 = 78.86) AND (col3 IS NULL OR (col1 BETWEEN 61.33 AND 78.14 OR [...]
# Datafusion - Datafusion expected results:
-query error DataFusion error: SQL error: RecursionLimitExceeded
+query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
SELECT pk, col0 FROM tab4 WHERE col3 = 91 AND (((((((((col1 IN (SELECT col4 FROM tab4 WHERE ((col4 IS NULL)))))) AND col1 IS NULL AND (col0 > 11) AND ((((col3 IN (69,57,80,63)))) OR col3 = 31 AND col3 BETWEEN 48 AND 31) AND (col0 = 41 OR (col0 <= 71) OR ((col1 > 13.41) AND col0 IN (10,89) OR ((col0 < 62 OR ((col1 = 13.60 OR ((col0 < 68 OR (col4 > 97.53 OR ((((col4 > 9.20 AND col3 < 18 AND col0 < 1 AND col0 < 66)))) AND (col1 = 78.86) AND (col3 IS NULL OR (col1 BETWEEN 61.33 AND 78.14 OR [...]
# Datafusion - Datafusion expected results:
-query error DataFusion error: SQL error: RecursionLimitExceeded
+query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
SELECT pk, col0 FROM tab0 WHERE col3 = 91 AND (((((((((col1 IN (SELECT col4 FROM tab0 WHERE ((col4 IS NULL)))))) AND col1 IS NULL AND (col0 > 11) AND ((((col3 IN (69,57,80,63)))) OR col3 = 31 AND col3 BETWEEN 48 AND 31) AND (col0 = 41 OR (col0 <= 71) OR ((col1 > 13.41) AND col0 IN (10,89) OR ((col0 < 62 OR ((col1 = 13.60 OR ((col0 < 68 OR (col4 > 97.53 OR ((((col4 > 9.20 AND col3 < 18 AND col0 < 1 AND col0 < 66)))) AND (col1 = 78.86) AND (col3 IS NULL OR (col1 BETWEEN 61.33 AND 78.14 OR [...]
# Datafusion - Datafusion expected results:
-query error DataFusion error: SQL error: RecursionLimitExceeded
+query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
SELECT pk, col0 FROM tab1 WHERE col3 = 91 AND (((((((((col1 IN (SELECT col4 FROM tab1 WHERE ((col4 IS NULL)))))) AND col1 IS NULL AND (col0 > 11) AND ((((col3 IN (69,57,80,63)))) OR col3 = 31 AND col3 BETWEEN 48 AND 31) AND (col0 = 41 OR (col0 <= 71) OR ((col1 > 13.41) AND col0 IN (10,89) OR ((col0 < 62 OR ((col1 = 13.60 OR ((col0 < 68 OR (col4 > 97.53 OR ((((col4 > 9.20 AND col3 < 18 AND col0 < 1 AND col0 < 66)))) AND (col1 = 78.86) AND (col3 IS NULL OR (col1 BETWEEN 61.33 AND 78.14 OR [...]
# Datafusion - Datafusion expected results:
-query error DataFusion error: SQL error: RecursionLimitExceeded
+query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
SELECT pk, col0 FROM tab2 WHERE col3 = 91 AND (((((((((col1 IN (SELECT col4 FROM tab2 WHERE ((col4 IS NULL)))))) AND col1 IS NULL AND (col0 > 11) AND ((((col3 IN (69,57,80,63)))) OR col3 = 31 AND col3 BETWEEN 48 AND 31) AND (col0 = 41 OR (col0 <= 71) OR ((col1 > 13.41) AND col0 IN (10,89) OR ((col0 < 62 OR ((col1 = 13.60 OR ((col0 < 68 OR (col4 > 97.53 OR ((((col4 > 9.20 AND col3 < 18 AND col0 < 1 AND col0 < 66)))) AND (col1 = 78.86) AND (col3 IS NULL OR (col1 BETWEEN 61.33 AND 78.14 OR [...]
# Datafusion - Datafusion expected results:
-query error DataFusion error: SQL error: RecursionLimitExceeded
+query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
SELECT pk, col0 FROM tab3 WHERE col3 = 91 AND (((((((((col1 IN (SELECT col4 FROM tab3 WHERE ((col4 IS NULL)))))) AND col1 IS NULL AND (col0 > 11) AND ((((col3 IN (69,57,80,63)))) OR col3 = 31 AND col3 BETWEEN 48 AND 31) AND (col0 = 41 OR (col0 <= 71) OR ((col1 > 13.41) AND col0 IN (10,89) OR ((col0 < 62 OR ((col1 = 13.60 OR ((col0 < 68 OR (col4 > 97.53 OR ((((col4 > 9.20 AND col3 < 18 AND col0 < 1 AND col0 < 66)))) AND (col1 = 78.86) AND (col3 IS NULL OR (col1 BETWEEN 61.33 AND 78.14 OR [...]
# Datafusion - Datafusion expected results:
-query error DataFusion error: SQL error: RecursionLimitExceeded
+query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
SELECT pk, col0 FROM tab4 WHERE col3 = 91 AND (((((((((col1 IN (SELECT col4 FROM tab4 WHERE ((col4 IS NULL)))))) AND col1 IS NULL AND (col0 > 11) AND ((((col3 IN (69,57,80,63)))) OR col3 = 31 AND col3 BETWEEN 48 AND 31) AND (col0 = 41 OR (col0 <= 71) OR ((col1 > 13.41) AND col0 IN (10,89) OR ((col0 < 62 OR ((col1 = 13.60 OR ((col0 < 68 OR (col4 > 97.53 OR ((((col4 > 9.20 AND col3 < 18 AND col0 < 1 AND col0 < 66)))) AND (col1 = 78.86) AND (col3 IS NULL OR (col1 BETWEEN 61.33 AND 78.14 OR [...]
# Datafusion - Datafusion expected results:
-query error DataFusion error: SQL error: RecursionLimitExceeded
+query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
SELECT pk, col0 FROM tab0 WHERE col3 = 91 AND (((((((((col1 IN (SELECT col4 FROM tab0 WHERE ((col4 IS NULL)))))) AND col1 IS NULL AND (col0 > 11) AND ((((col3 IN (69,57,80,63)))) OR col3 = 31 AND col3 BETWEEN 48 AND 31) AND (col0 = 41 OR (col0 <= 71) OR ((col1 > 13.41) AND col0 IN (10,89) OR ((col0 < 62 OR ((col1 = 13.60 OR ((col0 < 68 OR (col4 > 97.53 OR ((((col4 > 9.20 AND col3 < 18 AND col0 < 1 AND col0 < 66)))) AND (col1 = 78.86) AND (col3 IS NULL OR (col1 BETWEEN 61.33 AND 78.14 OR [...]
# Datafusion - Datafusion expected results:
-query error DataFusion error: SQL error: RecursionLimitExceeded
+query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
SELECT pk, col0 FROM tab1 WHERE col3 = 91 AND (((((((((col1 IN (SELECT col4 FROM tab1 WHERE ((col4 IS NULL)))))) AND col1 IS NULL AND (col0 > 11) AND ((((col3 IN (69,57,80,63)))) OR col3 = 31 AND col3 BETWEEN 48 AND 31) AND (col0 = 41 OR (col0 <= 71) OR ((col1 > 13.41) AND col0 IN (10,89) OR ((col0 < 62 OR ((col1 = 13.60 OR ((col0 < 68 OR (col4 > 97.53 OR ((((col4 > 9.20 AND col3 < 18 AND col0 < 1 AND col0 < 66)))) AND (col1 = 78.86) AND (col3 IS NULL OR (col1 BETWEEN 61.33 AND 78.14 OR [...]
# Datafusion - Datafusion expected results:
-query error DataFusion error: SQL error: RecursionLimitExceeded
+query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
SELECT pk, col0 FROM tab2 WHERE col3 = 91 AND (((((((((col1 IN (SELECT col4 FROM tab2 WHERE ((col4 IS NULL)))))) AND col1 IS NULL AND (col0 > 11) AND ((((col3 IN (69,57,80,63)))) OR col3 = 31 AND col3 BETWEEN 48 AND 31) AND (col0 = 41 OR (col0 <= 71) OR ((col1 > 13.41) AND col0 IN (10,89) OR ((col0 < 62 OR ((col1 = 13.60 OR ((col0 < 68 OR (col4 > 97.53 OR ((((col4 > 9.20 AND col3 < 18 AND col0 < 1 AND col0 < 66)))) AND (col1 = 78.86) AND (col3 IS NULL OR (col1 BETWEEN 61.33 AND 78.14 OR [...]
# Datafusion - Datafusion expected results:
-query error DataFusion error: SQL error: RecursionLimitExceeded
+query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
SELECT pk, col0 FROM tab3 WHERE col3 = 91 AND (((((((((col1 IN (SELECT col4 FROM tab3 WHERE ((col4 IS NULL)))))) AND col1 IS NULL AND (col0 > 11) AND ((((col3 IN (69,57,80,63)))) OR col3 = 31 AND col3 BETWEEN 48 AND 31) AND (col0 = 41 OR (col0 <= 71) OR ((col1 > 13.41) AND col0 IN (10,89) OR ((col0 < 62 OR ((col1 = 13.60 OR ((col0 < 68 OR (col4 > 97.53 OR ((((col4 > 9.20 AND col3 < 18 AND col0 < 1 AND col0 < 66)))) AND (col1 = 78.86) AND (col3 IS NULL OR (col1 BETWEEN 61.33 AND 78.14 OR [...]
# Datafusion - Datafusion expected results:
-query error DataFusion error: SQL error: RecursionLimitExceeded
+query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
SELECT pk, col0 FROM tab4 WHERE col3 = 91 AND (((((((((col1 IN (SELECT col4 FROM tab4 WHERE ((col4 IS NULL)))))) AND col1 IS NULL AND (col0 > 11) AND ((((col3 IN (69,57,80,63)))) OR col3 = 31 AND col3 BETWEEN 48 AND 31) AND (col0 = 41 OR (col0 <= 71) OR ((col1 > 13.41) AND col0 IN (10,89) OR ((col0 < 62 OR ((col1 = 13.60 OR ((col0 < 68 OR (col4 > 97.53 OR ((((col4 > 9.20 AND col3 < 18 AND col0 < 1 AND col0 < 66)))) AND (col1 = 78.86) AND (col3 IS NULL OR (col1 BETWEEN 61.33 AND 78.14 OR [...]
# Datafusion - Datafusion expected results:
-query error DataFusion error: SQL error: RecursionLimitExceeded
+query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
SELECT pk, col0 FROM tab0 WHERE col3 = 91 AND (((((((((col1 IN (SELECT col4 FROM tab0 WHERE ((col4 IS NULL)))))) AND col1 IS NULL AND (col0 > 11) AND ((((col3 IN (69,57,80,63)))) OR col3 = 31 AND col3 BETWEEN 48 AND 31) AND (col0 = 41 OR (col0 <= 71) OR ((col1 > 13.41) AND col0 IN (10,89) OR ((col0 < 62 OR ((col1 = 13.60 OR ((col0 < 68 OR (col4 > 97.53 OR ((((col4 > 9.20 AND col3 < 18 AND col0 < 1 AND col0 < 66)))) AND (col1 = 78.86) AND (col3 IS NULL OR (col1 BETWEEN 61.33 AND 78.14 OR [...]
# Datafusion - Datafusion expected results:
-query error DataFusion error: SQL error: RecursionLimitExceeded
+query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
SELECT pk, col0 FROM tab1 WHERE col3 = 91 AND (((((((((col1 IN (SELECT col4 FROM tab1 WHERE ((col4 IS NULL)))))) AND col1 IS NULL AND (col0 > 11) AND ((((col3 IN (69,57,80,63)))) OR col3 = 31 AND col3 BETWEEN 48 AND 31) AND (col0 = 41 OR (col0 <= 71) OR ((col1 > 13.41) AND col0 IN (10,89) OR ((col0 < 62 OR ((col1 = 13.60 OR ((col0 < 68 OR (col4 > 97.53 OR ((((col4 > 9.20 AND col3 < 18 AND col0 < 1 AND col0 < 66)))) AND (col1 = 78.86) AND (col3 IS NULL OR (col1 BETWEEN 61.33 AND 78.14 OR [...]
# Datafusion - Datafusion expected results:
-query error DataFusion error: SQL error: RecursionLimitExceeded
+query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
SELECT pk, col0 FROM tab2 WHERE col3 = 91 AND (((((((((col1 IN (SELECT col4 FROM tab2 WHERE ((col4 IS NULL)))))) AND col1 IS NULL AND (col0 > 11) AND ((((col3 IN (69,57,80,63)))) OR col3 = 31 AND col3 BETWEEN 48 AND 31) AND (col0 = 41 OR (col0 <= 71) OR ((col1 > 13.41) AND col0 IN (10,89) OR ((col0 < 62 OR ((col1 = 13.60 OR ((col0 < 68 OR (col4 > 97.53 OR ((((col4 > 9.20 AND col3 < 18 AND col0 < 1 AND col0 < 66)))) AND (col1 = 78.86) AND (col3 IS NULL OR (col1 BETWEEN 61.33 AND 78.14 OR [...]
# Datafusion - Datafusion expected results:
-query error DataFusion error: SQL error: RecursionLimitExceeded
+query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
SELECT pk, col0 FROM tab3 WHERE col3 = 91 AND (((((((((col1 IN (SELECT col4 FROM tab3 WHERE ((col4 IS NULL)))))) AND col1 IS NULL AND (col0 > 11) AND ((((col3 IN (69,57,80,63)))) OR col3 = 31 AND col3 BETWEEN 48 AND 31) AND (col0 = 41 OR (col0 <= 71) OR ((col1 > 13.41) AND col0 IN (10,89) OR ((col0 < 62 OR ((col1 = 13.60 OR ((col0 < 68 OR (col4 > 97.53 OR ((((col4 > 9.20 AND col3 < 18 AND col0 < 1 AND col0 < 66)))) AND (col1 = 78.86) AND (col3 IS NULL OR (col1 BETWEEN 61.33 AND 78.14 OR [...]
# Datafusion - Datafusion expected results:
-query error DataFusion error: SQL error: RecursionLimitExceeded
+query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
SELECT pk, col0 FROM tab4 WHERE col3 = 91 AND (((((((((col1 IN (SELECT col4 FROM tab4 WHERE ((col4 IS NULL)))))) AND col1 IS NULL AND (col0 > 11) AND ((((col3 IN (69,57,80,63)))) OR col3 = 31 AND col3 BETWEEN 48 AND 31) AND (col0 = 41 OR (col0 <= 71) OR ((col1 > 13.41) AND col0 IN (10,89) OR ((col0 < 62 OR ((col1 = 13.60 OR ((col0 < 68 OR (col4 > 97.53 OR ((((col4 > 9.20 AND col3 < 18 AND col0 < 1 AND col0 < 66)))) AND (col1 = 78.86) AND (col3 IS NULL OR (col1 BETWEEN 61.33 AND 78.14 OR [...]
# Datafusion - Datafusion expected results:
-query error DataFusion error: SQL error: RecursionLimitExceeded
+query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
SELECT pk, col0 FROM tab0 WHERE col3 = 91 AND (((((((((col1 IN (SELECT col4 FROM tab0 WHERE ((col4 IS NULL)))))) AND col1 IS NULL AND (col0 > 11) AND ((((col3 IN (69,57,80,63)))) OR col3 = 31 AND col3 BETWEEN 48 AND 31) AND (col0 = 41 OR (col0 <= 71) OR ((col1 > 13.41) AND col0 IN (10,89) OR ((col0 < 62 OR ((col1 = 13.60 OR ((col0 < 68 OR (col4 > 97.53 OR ((((col4 > 9.20 AND col3 < 18 AND col0 < 1 AND col0 < 66)))) AND (col1 = 78.86) AND (col3 IS NULL OR (col1 BETWEEN 61.33 AND 78.14 OR [...]
# Datafusion - Datafusion expected results:
-query error DataFusion error: SQL error: RecursionLimitExceeded
+query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
SELECT pk, col0 FROM tab1 WHERE col3 = 91 AND (((((((((col1 IN (SELECT col4 FROM tab1 WHERE ((col4 IS NULL)))))) AND col1 IS NULL AND (col0 > 11) AND ((((col3 IN (69,57,80,63)))) OR col3 = 31 AND col3 BETWEEN 48 AND 31) AND (col0 = 41 OR (col0 <= 71) OR ((col1 > 13.41) AND col0 IN (10,89) OR ((col0 < 62 OR ((col1 = 13.60 OR ((col0 < 68 OR (col4 > 97.53 OR ((((col4 > 9.20 AND col3 < 18 AND col0 < 1 AND col0 < 66)))) AND (col1 = 78.86) AND (col3 IS NULL OR (col1 BETWEEN 61.33 AND 78.14 OR [...]
# Datafusion - Datafusion expected results:
-query error DataFusion error: SQL error: RecursionLimitExceeded
+query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
SELECT pk, col0 FROM tab2 WHERE col3 = 91 AND (((((((((col1 IN (SELECT col4 FROM tab2 WHERE ((col4 IS NULL)))))) AND col1 IS NULL AND (col0 > 11) AND ((((col3 IN (69,57,80,63)))) OR col3 = 31 AND col3 BETWEEN 48 AND 31) AND (col0 = 41 OR (col0 <= 71) OR ((col1 > 13.41) AND col0 IN (10,89) OR ((col0 < 62 OR ((col1 = 13.60 OR ((col0 < 68 OR (col4 > 97.53 OR ((((col4 > 9.20 AND col3 < 18 AND col0 < 1 AND col0 < 66)))) AND (col1 = 78.86) AND (col3 IS NULL OR (col1 BETWEEN 61.33 AND 78.14 OR [...]
# Datafusion - Datafusion expected results:
-query error DataFusion error: SQL error: RecursionLimitExceeded
+query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
SELECT pk, col0 FROM tab3 WHERE col3 = 91 AND (((((((((col1 IN (SELECT col4 FROM tab3 WHERE ((col4 IS NULL)))))) AND col1 IS NULL AND (col0 > 11) AND ((((col3 IN (69,57,80,63)))) OR col3 = 31 AND col3 BETWEEN 48 AND 31) AND (col0 = 41 OR (col0 <= 71) OR ((col1 > 13.41) AND col0 IN (10,89) OR ((col0 < 62 OR ((col1 = 13.60 OR ((col0 < 68 OR (col4 > 97.53 OR ((((col4 > 9.20 AND col3 < 18 AND col0 < 1 AND col0 < 66)))) AND (col1 = 78.86) AND (col3 IS NULL OR (col1 BETWEEN 61.33 AND 78.14 OR [...]
# Datafusion - Datafusion expected results:
-query error DataFusion error: SQL error: RecursionLimitExceeded
+query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
SELECT pk, col0 FROM tab4 WHERE col3 = 91 AND (((((((((col1 IN (SELECT col4 FROM tab4 WHERE ((col4 IS NULL)))))) AND col1 IS NULL AND (col0 > 11) AND ((((col3 IN (69,57,80,63)))) OR col3 = 31 AND col3 BETWEEN 48 AND 31) AND (col0 = 41 OR (col0 <= 71) OR ((col1 > 13.41) AND col0 IN (10,89) OR ((col0 < 62 OR ((col1 = 13.60 OR ((col0 < 68 OR (col4 > 97.53 OR ((((col4 > 9.20 AND col3 < 18 AND col0 < 1 AND col0 < 66)))) AND (col1 = 78.86) AND (col3 IS NULL OR (col1 BETWEEN 61.33 AND 78.14 OR [...]
# Datafusion - Datafusion expected results:
-query error DataFusion error: SQL error: RecursionLimitExceeded
+query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
SELECT pk, col0 FROM tab0 WHERE col3 = 91 AND (((((((((col1 IN (SELECT col4 FROM tab0 WHERE ((col4 IS NULL)))))) AND col1 IS NULL AND (col0 > 11) AND ((((col3 IN (69,57,80,63)))) OR col3 = 31 AND col3 BETWEEN 48 AND 31) AND (col0 = 41 OR (col0 <= 71) OR ((col1 > 13.41) AND col0 IN (10,89) OR ((col0 < 62 OR ((col1 = 13.60 OR ((col0 < 68 OR (col4 > 97.53 OR ((((col4 > 9.20 AND col3 < 18 AND col0 < 1 AND col0 < 66)))) AND (col1 = 78.86) AND (col3 IS NULL OR (col1 BETWEEN 61.33 AND 78.14 OR [...]
# Datafusion - Datafusion expected results:
-query error DataFusion error: SQL error: RecursionLimitExceeded
+query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
SELECT pk, col0 FROM tab1 WHERE col3 = 91 AND (((((((((col1 IN (SELECT col4 FROM tab1 WHERE ((col4 IS NULL)))))) AND col1 IS NULL AND (col0 > 11) AND ((((col3 IN (69,57,80,63)))) OR col3 = 31 AND col3 BETWEEN 48 AND 31) AND (col0 = 41 OR (col0 <= 71) OR ((col1 > 13.41) AND col0 IN (10,89) OR ((col0 < 62 OR ((col1 = 13.60 OR ((col0 < 68 OR (col4 > 97.53 OR ((((col4 > 9.20 AND col3 < 18 AND col0 < 1 AND col0 < 66)))) AND (col1 = 78.86) AND (col3 IS NULL OR (col1 BETWEEN 61.33 AND 78.14 OR [...]
# Datafusion - Datafusion expected results:
-query error DataFusion error: SQL error: RecursionLimitExceeded
+query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
SELECT pk, col0 FROM tab2 WHERE col3 = 91 AND (((((((((col1 IN (SELECT col4 FROM tab2 WHERE ((col4 IS NULL)))))) AND col1 IS NULL AND (col0 > 11) AND ((((col3 IN (69,57,80,63)))) OR col3 = 31 AND col3 BETWEEN 48 AND 31) AND (col0 = 41 OR (col0 <= 71) OR ((col1 > 13.41) AND col0 IN (10,89) OR ((col0 < 62 OR ((col1 = 13.60 OR ((col0 < 68 OR (col4 > 97.53 OR ((((col4 > 9.20 AND col3 < 18 AND col0 < 1 AND col0 < 66)))) AND (col1 = 78.86) AND (col3 IS NULL OR (col1 BETWEEN 61.33 AND 78.14 OR [...]
# Datafusion - Datafusion expected results:
-query error DataFusion error: SQL error: RecursionLimitExceeded
+query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
SELECT pk, col0 FROM tab3 WHERE col3 = 91 AND (((((((((col1 IN (SELECT col4 FROM tab3 WHERE ((col4 IS NULL)))))) AND col1 IS NULL AND (col0 > 11) AND ((((col3 IN (69,57,80,63)))) OR col3 = 31 AND col3 BETWEEN 48 AND 31) AND (col0 = 41 OR (col0 <= 71) OR ((col1 > 13.41) AND col0 IN (10,89) OR ((col0 < 62 OR ((col1 = 13.60 OR ((col0 < 68 OR (col4 > 97.53 OR ((((col4 > 9.20 AND col3 < 18 AND col0 < 1 AND col0 < 66)))) AND (col1 = 78.86) AND (col3 IS NULL OR (col1 BETWEEN 61.33 AND 78.14 OR [...]
# Datafusion - Datafusion expected results:
-query error DataFusion error: SQL error: RecursionLimitExceeded
+query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
SELECT pk, col0 FROM tab4 WHERE col3 = 91 AND (((((((((col1 IN (SELECT col4 FROM tab4 WHERE ((col4 IS NULL)))))) AND col1 IS NULL AND (col0 > 11) AND ((((col3 IN (69,57,80,63)))) OR col3 = 31 AND col3 BETWEEN 48 AND 31) AND (col0 = 41 OR (col0 <= 71) OR ((col1 > 13.41) AND col0 IN (10,89) OR ((col0 < 62 OR ((col1 = 13.60 OR ((col0 < 68 OR (col4 > 97.53 OR ((((col4 > 9.20 AND col3 < 18 AND col0 < 1 AND col0 < 66)))) AND (col1 = 78.86) AND (col3 IS NULL OR (col1 BETWEEN 61.33 AND 78.14 OR [...]
# Datafusion - Datafusion expected results:
-query error DataFusion error: SQL error: RecursionLimitExceeded
+query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
SELECT pk, col0 FROM tab0 WHERE col3 = 91 AND (((((((((col1 IN (SELECT col4 FROM tab0 WHERE ((col4 IS NULL)))))) AND col1 IS NULL AND (col0 > 11) AND ((((col3 IN (69,57,80,63)))) OR col3 = 31 AND col3 BETWEEN 48 AND 31) AND (col0 = 41 OR (col0 <= 71) OR ((col1 > 13.41) AND col0 IN (10,89) OR ((col0 < 62 OR ((col1 = 13.60 OR ((col0 < 68 OR (col4 > 97.53 OR ((((col4 > 9.20 AND col3 < 18 AND col0 < 1 AND col0 < 66)))) AND (col1 = 78.86) AND (col3 IS NULL OR (col1 BETWEEN 61.33 AND 78.14 OR [...]
# Datafusion - Datafusion expected results:
-query error DataFusion error: SQL error: RecursionLimitExceeded
+query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
SELECT pk, col0 FROM tab1 WHERE col3 = 91 AND (((((((((col1 IN (SELECT col4 FROM tab1 WHERE ((col4 IS NULL)))))) AND col1 IS NULL AND (col0 > 11) AND ((((col3 IN (69,57,80,63)))) OR col3 = 31 AND col3 BETWEEN 48 AND 31) AND (col0 = 41 OR (col0 <= 71) OR ((col1 > 13.41) AND col0 IN (10,89) OR ((col0 < 62 OR ((col1 = 13.60 OR ((col0 < 68 OR (col4 > 97.53 OR ((((col4 > 9.20 AND col3 < 18 AND col0 < 1 AND col0 < 66)))) AND (col1 = 78.86) AND (col3 IS NULL OR (col1 BETWEEN 61.33 AND 78.14 OR [...]
# Datafusion - Datafusion expected results:
-query error DataFusion error: SQL error: RecursionLimitExceeded
+query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
SELECT pk, col0 FROM tab2 WHERE col3 = 91 AND (((((((((col1 IN (SELECT col4 FROM tab2 WHERE ((col4 IS NULL)))))) AND col1 IS NULL AND (col0 > 11) AND ((((col3 IN (69,57,80,63)))) OR col3 = 31 AND col3 BETWEEN 48 AND 31) AND (col0 = 41 OR (col0 <= 71) OR ((col1 > 13.41) AND col0 IN (10,89) OR ((col0 < 62 OR ((col1 = 13.60 OR ((col0 < 68 OR (col4 > 97.53 OR ((((col4 > 9.20 AND col3 < 18 AND col0 < 1 AND col0 < 66)))) AND (col1 = 78.86) AND (col3 IS NULL OR (col1 BETWEEN 61.33 AND 78.14 OR [...]
# Datafusion - Datafusion expected results:
-query error DataFusion error: SQL error: RecursionLimitExceeded
+query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
SELECT pk, col0 FROM tab3 WHERE col3 = 91 AND (((((((((col1 IN (SELECT col4 FROM tab3 WHERE ((col4 IS NULL)))))) AND col1 IS NULL AND (col0 > 11) AND ((((col3 IN (69,57,80,63)))) OR col3 = 31 AND col3 BETWEEN 48 AND 31) AND (col0 = 41 OR (col0 <= 71) OR ((col1 > 13.41) AND col0 IN (10,89) OR ((col0 < 62 OR ((col1 = 13.60 OR ((col0 < 68 OR (col4 > 97.53 OR ((((col4 > 9.20 AND col3 < 18 AND col0 < 1 AND col0 < 66)))) AND (col1 = 78.86) AND (col3 IS NULL OR (col1 BETWEEN 61.33 AND 78.14 OR [...]
# Datafusion - Datafusion expected results:
-query error DataFusion error: SQL error: RecursionLimitExceeded
+query error DataFusion error: SQL error: RecursionLimitExceeded \(current limit: 50\)
SELECT pk, col0 FROM tab4 WHERE col3 = 91 AND (((((((((col1 IN (SELECT col4 FROM tab4 WHERE ((col4 IS NULL)))))) AND col1 IS NULL AND (col0 > 11) AND ((((col3 IN (69,57,80,63)))) OR col3 = 31 AND col3 BETWEEN 48 AND 31) AND (col0 = 41 OR (col0 <= 71) OR ((col1 > 13.41) AND col0 IN (10,89) OR ((col0 < 62 OR ((col1 = 13.60 OR ((col0 < 68 OR (col4 > 97.53 OR ((((col4 > 9.20 AND col3 < 18 AND col0 < 1 AND col0 < 66)))) AND (col1 = 78.86) AND (col3 IS NULL OR (col1 BETWEEN 61.33 AND 78.14 OR [...]
query I nosort label-1560-1-desc
diff --git a/data/sqlite/index/random/10/slt_good_4.slt b/data/sqlite/index/random/10/slt_good_4.slt
index befe696..c9de2e0 100644
--- a/data/sqlite/index/random/10/slt_good_4.slt
+++ b/data/sqlite/index/random/10/slt_good_4.slt
@@ -32779,25 +32779,40 @@ SELECT DISTINCT + 79 * + COUNT ( * ) FROM tab4 WHERE NOT NULL IS NOT NULL
----
790
-# Datafusion - Datafusion expected results:
-query error DataFusion error: Arrow error: Divide by zero error
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] III[I][I][I][I]
+# Datafusion - [Actual ] II[R][T]I[R][T]
+query IIRTIRT rowsort label-5420
SELECT * FROM tab0 WHERE NULL >= - 43 - 12 / ( - 19 / col0 )
+----
-# Datafusion - Datafusion expected results:
-query error DataFusion error: Arrow error: Divide by zero error
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] III[I][I][I][I]
+# Datafusion - [Actual ] II[R][T]I[R][T]
+query IIRTIRT rowsort label-5420
SELECT * FROM tab1 WHERE NULL >= - 43 - 12 / ( - 19 / col0 )
+----
-# Datafusion - Datafusion expected results:
-query error DataFusion error: Arrow error: Divide by zero error
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] III[I][I][I][I]
+# Datafusion - [Actual ] II[R][T]I[R][T]
+query IIRTIRT rowsort label-5420
SELECT * FROM tab2 WHERE NULL >= - 43 - 12 / ( - 19 / col0 )
+----
-# Datafusion - Datafusion expected results:
-query error DataFusion error: Arrow error: Divide by zero error
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] III[I][I][I][I]
+# Datafusion - [Actual ] II[R][T]I[R][T]
+query IIRTIRT rowsort label-5420
SELECT * FROM tab3 WHERE NULL >= - 43 - 12 / ( - 19 / col0 )
+----
-# Datafusion - Datafusion expected results:
-query error DataFusion error: Arrow error: Divide by zero error
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] III[I][I][I][I]
+# Datafusion - [Actual ] II[R][T]I[R][T]
+query IIRTIRT rowsort label-5420
SELECT * FROM tab4 WHERE NULL >= - 43 - 12 / ( - 19 / col0 )
+----
# Datafusion - Types were automatically converted from:
# Datafusion - [Expected] [I]
diff --git a/data/sqlite/random/aggregates/slt_good_0.slt b/data/sqlite/random/aggregates/slt_good_0.slt
index 879c92c..45d1bbb 100644
--- a/data/sqlite/random/aggregates/slt_good_0.slt
+++ b/data/sqlite/random/aggregates/slt_good_0.slt
@@ -10271,10 +10271,13 @@ query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) BETWEEN col0 AND ( NULL )
----
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-1698
SELECT ALL + + CAST ( NULL AS FLOAT8 ) + COUNT ( * ) * - + 78 * AVG ( DISTINCT + 97 ) AS col0 FROM tab0 AS cor0
+----
+NULL
query I rowsort
SELECT ALL 26 + + col2 FROM tab1 AS cor0 WHERE NOT NULL = NULL
@@ -21815,10 +21818,13 @@ SELECT DISTINCT col0 * + + 50 * + + CAST ( NULL AS FLOAT8 ) AS col1 FROM tab2
----
NULL
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-3603
SELECT - AVG ( DISTINCT - 60 ) + CAST ( NULL AS INTEGER ) FROM tab0
+----
+NULL
query I rowsort label-3604
SELECT 48 + - COUNT ( * ) col2 FROM tab0
diff --git a/data/sqlite/random/aggregates/slt_good_1.slt b/data/sqlite/random/aggregates/slt_good_1.slt
index 87722f4..e8c9828 100644
--- a/data/sqlite/random/aggregates/slt_good_1.slt
+++ b/data/sqlite/random/aggregates/slt_good_1.slt
@@ -45045,9 +45045,9 @@ SELECT DISTINCT - col2, - col0 AS col1 FROM tab0 AS cor0
-99
-97
-# Datafusion - Datafusion expected results:
-query error DataFusion error: Arrow error: Divide by zero error
+query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( + col1 ) / - + 0 = NULL
+----
query I rowsort label-7583
SELECT DISTINCT + + CAST ( + col0 AS INTEGER ) * - + col0 AS col1 FROM tab2 cor0
diff --git a/data/sqlite/random/aggregates/slt_good_100.slt b/data/sqlite/random/aggregates/slt_good_100.slt
index 884ace1..1d46d2e 100644
--- a/data/sqlite/random/aggregates/slt_good_100.slt
+++ b/data/sqlite/random/aggregates/slt_good_100.slt
@@ -19689,10 +19689,13 @@ SELECT DISTINCT + 79 * + ( + ( COUNT ( * ) ) ) FROM tab0 AS cor0
----
237
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-3246
SELECT ALL ( + CAST ( NULL AS INTEGER ) ) * - AVG ( DISTINCT 37 ) FROM tab1 AS cor0
+----
+NULL
query I rowsort label-3247
SELECT DISTINCT COUNT ( ALL - - col2 ) AS col2 FROM tab2 cor0
@@ -26465,11 +26468,14 @@ SELECT DISTINCT - col2 AS col2, CAST ( - col0 AS INTEGER ) + + 58 FROM tab0
-99
-39
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - 32
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] I[I]
+# Datafusion - [Actual ] I[R]
+query IR rowsort label-4361
SELECT DISTINCT + 32 AS col0, CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) + - MIN ( ALL 59 ) * - AVG ( DISTINCT 64 ) AS col2 FROM tab2
+----
+32
+NULL
query I rowsort
SELECT + col2 * - col2 * - col0 FROM tab2
diff --git a/data/sqlite/random/aggregates/slt_good_101.slt b/data/sqlite/random/aggregates/slt_good_101.slt
index b63ed25..e746dc7 100644
--- a/data/sqlite/random/aggregates/slt_good_101.slt
+++ b/data/sqlite/random/aggregates/slt_good_101.slt
@@ -3764,10 +3764,13 @@ SELECT DISTINCT + col2 * - col2 AS col1, col0 AS col0 FROM tab1
query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(14\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\.
SELECT ALL COUNT ( * ) AS col2, 14 AS col2 FROM tab2
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-606
SELECT ALL AVG ( DISTINCT - - 40 ) + - CAST ( NULL AS INTEGER ) + + MIN ( 41 ) AS col0 FROM tab2 AS cor0
+----
+NULL
query I rowsort label-607
SELECT - col2 / + - col2 FROM tab2 AS cor0
diff --git a/data/sqlite/random/aggregates/slt_good_102.slt b/data/sqlite/random/aggregates/slt_good_102.slt
index a971806..ae6add9 100644
--- a/data/sqlite/random/aggregates/slt_good_102.slt
+++ b/data/sqlite/random/aggregates/slt_good_102.slt
@@ -1209,11 +1209,14 @@ SELECT DISTINCT - COUNT ( - 62 ) * + 71 * - 7 + + 16 FROM tab0 AS cor0
----
1507
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-# Datafusion - Expected - -65
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]I
+# Datafusion - [Actual ] [R]I
+query RI rowsort label-193
SELECT - + 65 * - - MIN ( DISTINCT - - col0 ) + CAST ( NULL AS INTEGER ) / SUM ( ALL - 6 ) + + AVG ( DISTINCT - + col2 ), - 65 AS col2 FROM tab2 AS cor0
+----
+NULL
+-65
query I rowsort
SELECT - col1 AS col1 FROM tab1 WHERE + - col2 / + - 58 <= NULL
@@ -19736,10 +19739,13 @@ SELECT 3 / + ( + col1 ) AS col0 FROM tab1
0
0
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-3225
SELECT AVG ( DISTINCT + 0 ) * + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
+----
+NULL
query I rowsort
SELECT col0 * - + col2 + col1 AS col1 FROM tab0 cor0
diff --git a/data/sqlite/random/aggregates/slt_good_103.slt b/data/sqlite/random/aggregates/slt_good_103.slt
index b134298..716579f 100644
--- a/data/sqlite/random/aggregates/slt_good_103.slt
+++ b/data/sqlite/random/aggregates/slt_good_103.slt
@@ -5054,10 +5054,13 @@ SELECT ALL + 37 * + col0 FROM tab1 AS cor0
3145
3367
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-830
SELECT - COUNT ( * ) + AVG ( DISTINCT - col2 ) + MIN ( - col1 ) * + + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
+----
+NULL
query I rowsort label-831
SELECT ALL + COUNT ( * ) + - - 0 FROM tab2 cor0
@@ -31658,11 +31661,14 @@ query III rowsort label-5214
SELECT ALL * FROM tab1 AS cor0 WHERE ( + 87 / CAST ( NULL AS INTEGER ) IN ( col1, 31, col0 ) )
----
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - 88
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] I[I]
+# Datafusion - [Actual ] I[R]
+query IR rowsort label-5215
SELECT ALL 88 AS col0, ( AVG ( DISTINCT + 39 ) ) * - SUM ( DISTINCT 52 ) + - + CAST ( NULL AS INTEGER ) FROM tab0 cor0
+----
+88
+NULL
query II rowsort label-5216
SELECT - col0 / col1, - ( - ( - col0 ) ) * - + col0 AS col1 FROM tab0
@@ -36236,11 +36242,9 @@ SELECT DISTINCT 34 / ( + col2 / CAST ( NULL AS INTEGER ) ) - 7 / 93 col2 FROM ta
----
NULL
-# Postgresql - Postgres error: db error: ERROR: division by zero
-# Datafusion - Datafusion expected results:
-skipif postgres
-query error DataFusion error: Arrow error: Divide by zero error
+query I rowsort
SELECT ALL + 28 FROM tab1 WHERE NULL BETWEEN ( 58 / - 0 + - col2 ) AND NULL
+----
query I rowsort
SELECT DISTINCT col1 + col2 * - col0 AS col1 FROM tab2
@@ -36606,10 +36610,13 @@ SELECT ALL 65 / + + 66 * + col0 + - ( col1 ) FROM tab2
-67
-77
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-6034
SELECT AVG ( DISTINCT - - 41 ) * - MAX ( DISTINCT - col2 ) + + 69 * CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
+----
+NULL
query I rowsort label-6035
SELECT ALL + - COUNT ( * ) + - 40 FROM tab1 AS cor0
diff --git a/data/sqlite/random/aggregates/slt_good_104.slt b/data/sqlite/random/aggregates/slt_good_104.slt
index 88c34f2..42d5c2c 100644
--- a/data/sqlite/random/aggregates/slt_good_104.slt
+++ b/data/sqlite/random/aggregates/slt_good_104.slt
@@ -11404,10 +11404,13 @@ SELECT DISTINCT + col2 * - col2 * + - 25 AS col0 FROM tab2 AS cor0
40000
84100
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-1876
SELECT DISTINCT CAST ( NULL AS INTEGER ) / + AVG ( DISTINCT 7 ) AS col0 FROM tab0 cor0
+----
+NULL
query I rowsort label-1877
SELECT ( + 68 ) / + 71 AS col2 FROM tab1 AS cor0
@@ -12561,10 +12564,13 @@ SELECT DISTINCT - + MAX ( col0 ) * + 49, 77 + - + 1 AS col2 FROM tab2 cor0
-3675
76
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-2063
SELECT DISTINCT - CAST ( NULL AS FLOAT8 ) + - COUNT ( * ) * - AVG ( DISTINCT 2 ) FROM tab1 AS cor0
+----
+NULL
query I rowsort label-2064
SELECT - SUM ( ALL + 28 ) FROM tab1 AS cor0
diff --git a/data/sqlite/random/aggregates/slt_good_105.slt b/data/sqlite/random/aggregates/slt_good_105.slt
index 0adc046..38ca515 100644
--- a/data/sqlite/random/aggregates/slt_good_105.slt
+++ b/data/sqlite/random/aggregates/slt_good_105.slt
@@ -40122,10 +40122,13 @@ NULL
NULL
NULL
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-6579
SELECT AVG ( DISTINCT - - col2 ) + + CAST ( NULL AS FLOAT8 ) AS col2 FROM tab0 cor0
+----
+NULL
query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL > ( - 90 )
diff --git a/data/sqlite/random/aggregates/slt_good_106.slt b/data/sqlite/random/aggregates/slt_good_106.slt
index 2ae31b7..269618b 100644
--- a/data/sqlite/random/aggregates/slt_good_106.slt
+++ b/data/sqlite/random/aggregates/slt_good_106.slt
@@ -48087,10 +48087,13 @@ SELECT ALL + + 33 + - + CAST ( + COUNT ( * ) AS INTEGER ) FROM tab0 AS cor0
----
30
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-7961
SELECT AVG ( DISTINCT - + 50 ) * - CAST ( NULL AS INTEGER ) + - 20 FROM tab1
+----
+NULL
query I rowsort
SELECT col2 FROM tab1 WHERE - ( 25 ) + + col0 < + ( + + 29 ) * 8
@@ -53749,11 +53752,14 @@ query III rowsort
SELECT * FROM tab1 WHERE NOT + col0 * - col1 < NULL AND NOT + col1 IS NOT NULL
----
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-# Datafusion - Expected - 47
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]I
+# Datafusion - [Actual ] [R]I
+query RI rowsort label-8879
SELECT + AVG ( DISTINCT + CAST ( - - ( + col2 ) AS FLOAT8 ) ) * + - CAST ( NULL AS FLOAT8 ), 47 AS col0 FROM tab2 AS cor0
+----
+NULL
+47
query I rowsort
SELECT 53 * col0 AS col2 FROM tab2 cor0
diff --git a/data/sqlite/random/aggregates/slt_good_107.slt b/data/sqlite/random/aggregates/slt_good_107.slt
index 22e112c..c100c0f 100644
--- a/data/sqlite/random/aggregates/slt_good_107.slt
+++ b/data/sqlite/random/aggregates/slt_good_107.slt
@@ -52632,10 +52632,13 @@ query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NOT - 72 * + + col2 + - 29 + ( - col0 ) BETWEEN - col2 AND + col1 )
----
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-8767
SELECT DISTINCT COUNT ( - col2 ) + AVG ( DISTINCT - 9 ) + + + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
+----
+NULL
query I rowsort label-8768
SELECT - MIN ( col2 ) FROM tab0 AS cor0
diff --git a/data/sqlite/random/aggregates/slt_good_109.slt b/data/sqlite/random/aggregates/slt_good_109.slt
index f3dc56d..07b4e8f 100644
--- a/data/sqlite/random/aggregates/slt_good_109.slt
+++ b/data/sqlite/random/aggregates/slt_good_109.slt
@@ -3902,10 +3902,13 @@ SELECT COUNT ( * ) AS col0 FROM tab0 WHERE NOT ( + col1 ) <> NULL
----
0
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-635
SELECT DISTINCT + CAST ( NULL AS INTEGER ) - + 22 * AVG ( DISTINCT - CAST ( NULL AS INTEGER ) ) FROM tab2 WHERE NOT + col0 IN ( col0 )
+----
+NULL
query III rowsort label-636
SELECT * FROM tab1 WHERE NOT + col0 + - CAST ( NULL AS INTEGER ) BETWEEN ( NULL ) AND col2 * col2
@@ -19021,11 +19024,14 @@ SELECT DISTINCT + col0 + - 8 AS col1 FROM tab0
79
89
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - 93
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] I[I]
+# Datafusion - [Actual ] I[R]
+query IR rowsort label-3141
SELECT ALL 93 AS col1, AVG ( DISTINCT - 79 ) + - CAST ( NULL AS FLOAT8 ) FROM tab1
+----
+93
+NULL
query I rowsort label-3142
SELECT + COUNT ( + - CAST ( NULL AS FLOAT8 ) ) FROM tab1 WHERE NULL IS NOT NULL
@@ -53547,9 +53553,9 @@ SELECT ALL 74 * - CAST ( + col2 AS INTEGER ) AS col2 FROM tab1
-5032
-7104
-# Datafusion - Datafusion expected results:
-query error DataFusion error: Arrow error: Divide by zero error
+query I rowsort
SELECT DISTINCT col1 FROM tab1 WHERE NOT col0 * 94 + + col1 / ( + col1 * 0 ) <> NULL
+----
query I rowsort label-8850
SELECT ALL + MAX ( DISTINCT + 89 ) col2 FROM tab1
diff --git a/data/sqlite/random/aggregates/slt_good_11.slt b/data/sqlite/random/aggregates/slt_good_11.slt
index 4f26801..a7a5143 100644
--- a/data/sqlite/random/aggregates/slt_good_11.slt
+++ b/data/sqlite/random/aggregates/slt_good_11.slt
@@ -8851,10 +8851,13 @@ SELECT col1 / - + col2 * col1 FROM tab1
0
0
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-1436
SELECT AVG ( DISTINCT - + ( 38 ) ) / SUM ( + + ( - 21 ) ) / - 78 * - + CAST ( NULL AS INTEGER ) col2 FROM tab0
+----
+NULL
query I rowsort
SELECT ALL + col1 + + - 70 FROM tab0
@@ -25557,12 +25560,10 @@ SELECT + 19 + + col0 + + + col2 AS col0 FROM tab1
166
178
-# Postgresql - Postgres error: db error: ERROR: division by zero
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - 95
-skipif postgres
-query error DataFusion error: Arrow error: Divide by zero error
+query I rowsort label-4186
SELECT DISTINCT - ( - + 95 ) + - COUNT ( * ) AS col0 FROM tab1 WHERE NOT + col1 / - 26 * col0 + 58 / + 0 / - col2 - + col1 < NULL
+----
+95
query I rowsort
SELECT DISTINCT col1 * + col2 + + ( + - 65 ) * + col0 AS col2 FROM tab1
diff --git a/data/sqlite/random/aggregates/slt_good_110.slt b/data/sqlite/random/aggregates/slt_good_110.slt
index 48367b0..15adf05 100644
--- a/data/sqlite/random/aggregates/slt_good_110.slt
+++ b/data/sqlite/random/aggregates/slt_good_110.slt
@@ -45277,10 +45277,13 @@ SELECT DISTINCT col2 + + 31 + + col1 FROM tab0
159
62
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-7496
SELECT - 29 * - AVG ( DISTINCT + 29 ) + + CAST ( NULL AS FLOAT8 ) FROM tab2
+----
+NULL
query I rowsort
SELECT + col2 + col0 + + col0 * + 92 + col2 * - + col1 AS col1 FROM tab0
diff --git a/data/sqlite/random/aggregates/slt_good_111.slt b/data/sqlite/random/aggregates/slt_good_111.slt
index d99e3d7..211435b 100644
--- a/data/sqlite/random/aggregates/slt_good_111.slt
+++ b/data/sqlite/random/aggregates/slt_good_111.slt
@@ -19158,10 +19158,13 @@ SELECT ALL 75 - + col2 AS col1 FROM tab2
35
52
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-3133
SELECT CAST ( NULL AS INTEGER ) / + ( + AVG ( DISTINCT 52 ) ) FROM tab1
+----
+NULL
query I rowsort label-3134
SELECT 74 / 30 FROM tab1
@@ -37105,10 +37108,13 @@ SELECT ALL - COUNT ( * ) * - MIN ( DISTINCT - col0 ) AS col0 FROM tab2
----
-225
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-6069
SELECT - ( + AVG ( DISTINCT + 69 ) ) * + CAST ( NULL AS INTEGER ) AS col1 FROM tab2
+----
+NULL
query I rowsort
SELECT DISTINCT + col2 AS col0 FROM tab2 AS cor0 WHERE NOT col0 * 89 > NULL
diff --git a/data/sqlite/random/aggregates/slt_good_112.slt b/data/sqlite/random/aggregates/slt_good_112.slt
index a62c890..99db912 100644
--- a/data/sqlite/random/aggregates/slt_good_112.slt
+++ b/data/sqlite/random/aggregates/slt_good_112.slt
@@ -5855,10 +5855,13 @@ query III rowsort
SELECT * FROM tab1 WHERE + col1 * - - 47 < 44
----
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-981
SELECT - + AVG ( DISTINCT - 2 ) + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
+----
+NULL
query I rowsort label-982
SELECT + - col2 + 64 * + col2 * CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
@@ -14970,10 +14973,13 @@ SELECT ALL - ( 5 ) FROM tab1
-5
-5
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-2481
SELECT DISTINCT AVG ( DISTINCT - 78 ) + CAST ( NULL AS INTEGER ) - 89 AS col1 FROM tab2
+----
+NULL
query III rowsort
SELECT * FROM tab0 WHERE - - col0 NOT IN ( - ( + + 86 ) )
@@ -46151,10 +46157,13 @@ SELECT ALL ( 33 ) AS col2 FROM tab0 cor0
33
33
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-7609
SELECT - COUNT ( * ) * - + 57 / - CAST ( NULL AS INTEGER ) + AVG ( DISTINCT + 88 ) FROM tab1 AS cor0
+----
+NULL
query II rowsort
SELECT DISTINCT col1, 10 FROM tab0
diff --git a/data/sqlite/random/aggregates/slt_good_113.slt b/data/sqlite/random/aggregates/slt_good_113.slt
index d716768..eac823d 100644
--- a/data/sqlite/random/aggregates/slt_good_113.slt
+++ b/data/sqlite/random/aggregates/slt_good_113.slt
@@ -623,10 +623,13 @@ SELECT ALL - col0 * + col2 + - + 18 FROM tab2 AS cor0
-2578
-4368
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-98
SELECT ALL + 70 * + ( - AVG ( DISTINCT - + CAST ( NULL AS INTEGER ) ) ) / + CAST ( NULL AS FLOAT8 ) AS col1 FROM tab0 AS cor0
+----
+NULL
query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 NOT BETWEEN + col1 / + col1 AND - ( - 19 ) * - col1 + - - 45 + + col0
@@ -16088,10 +16091,13 @@ SELECT - COUNT ( * ) + - 61 FROM tab0 AS cor0
----
-64
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-2666
SELECT ALL + 42 / - CAST ( NULL AS FLOAT8 ) * - AVG ( DISTINCT + + 24 ) AS col1 FROM tab0 AS cor0
+----
+NULL
query I rowsort
SELECT + + col2 * - + col2 AS col2 FROM tab1 cor0
diff --git a/data/sqlite/random/aggregates/slt_good_114.slt b/data/sqlite/random/aggregates/slt_good_114.slt
index 06c9495..86260b5 100644
--- a/data/sqlite/random/aggregates/slt_good_114.slt
+++ b/data/sqlite/random/aggregates/slt_good_114.slt
@@ -40964,10 +40964,13 @@ SELECT + col2 * - - 77 * col1 AS col0 FROM tab2 AS cor0
299222
90321
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-6788
SELECT - + CAST ( NULL AS INTEGER ) / + AVG ( DISTINCT - - col1 ) FROM tab1 AS cor0
+----
+NULL
query I rowsort
SELECT + ( + 87 ) FROM tab0
@@ -45820,10 +45823,13 @@ SELECT + col1, 89 + + col1 AS col2 FROM tab1
5
94
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-7595
SELECT DISTINCT - AVG ( DISTINCT + - 89 ) + CAST ( NULL AS INTEGER ) FROM tab1
+----
+NULL
query I rowsort label-7596
SELECT + MIN ( DISTINCT + CAST ( NULL AS INTEGER ) ) FROM tab2
diff --git a/data/sqlite/random/aggregates/slt_good_115.slt b/data/sqlite/random/aggregates/slt_good_115.slt
index 590612e..903ad03 100644
--- a/data/sqlite/random/aggregates/slt_good_115.slt
+++ b/data/sqlite/random/aggregates/slt_good_115.slt
@@ -60218,10 +60218,13 @@ SELECT DISTINCT col0 * 77 AS col1 FROM tab0
6699
7469
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-9971
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + AVG ( DISTINCT + 88 ) AS col0 FROM tab2 WHERE NOT - col2 + + + col1 IS NOT NULL
+----
+NULL
query I rowsort
SELECT ALL + 82 + + 31 FROM tab0
diff --git a/data/sqlite/random/aggregates/slt_good_116.slt b/data/sqlite/random/aggregates/slt_good_116.slt
index 5815b33..de917c1 100644
--- a/data/sqlite/random/aggregates/slt_good_116.slt
+++ b/data/sqlite/random/aggregates/slt_good_116.slt
@@ -58570,10 +58570,13 @@ SELECT DISTINCT * FROM tab1 WHERE - + col2 + - 32 NOT IN ( - col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-9673
SELECT CAST ( NULL AS INTEGER ) / - 21 + - - AVG ( DISTINCT 42 ) + - SUM ( - col1 ) col1 FROM tab0
+----
+NULL
query I rowsort label-9674
SELECT - 32 + - CAST ( NULL AS INTEGER ) - + 27 * - col1 col2 FROM tab1
diff --git a/data/sqlite/random/aggregates/slt_good_117.slt b/data/sqlite/random/aggregates/slt_good_117.slt
index 7b22db6..88551fb 100644
--- a/data/sqlite/random/aggregates/slt_good_117.slt
+++ b/data/sqlite/random/aggregates/slt_good_117.slt
@@ -16895,10 +16895,13 @@ query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL <= 21
----
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-2787
SELECT DISTINCT AVG ( DISTINCT + 73 ) + CAST ( NULL AS FLOAT8 ) AS col2 FROM tab0 AS cor0 WHERE NOT ( + col0 * 97 >= NULL )
+----
+NULL
query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( - 60 + - - col0 ) IS NOT NULL
@@ -22516,10 +22519,10 @@ SELECT * FROM tab0 AS cor0 WHERE col2 >= - col2 * col2 + - col1 * - ( col0 )
1
99
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+query I rowsort label-3715
SELECT ALL + CAST ( AVG ( DISTINCT + - 81 ) AS INTEGER ) * SUM ( DISTINCT + col0 + col1 ) + - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) AS col2 FROM tab0 AS cor0
+----
+NULL
query I rowsort
SELECT DISTINCT col1 AS col1 FROM tab2 AS cor0 WHERE + 84 NOT IN ( 5 )
diff --git a/data/sqlite/random/aggregates/slt_good_118.slt b/data/sqlite/random/aggregates/slt_good_118.slt
index 85e19ef..ab58a3a 100644
--- a/data/sqlite/random/aggregates/slt_good_118.slt
+++ b/data/sqlite/random/aggregates/slt_good_118.slt
@@ -3550,10 +3550,13 @@ SELECT ALL COUNT ( 83 ) / COUNT ( * ) - - 99 FROM tab0 WHERE NOT + col1 - + + co
----
100
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-600
SELECT ALL AVG ( DISTINCT + - 10 ) * + MAX ( + 51 ) * + CAST ( NULL AS INTEGER ) FROM tab0
+----
+NULL
query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND 35
@@ -3752,10 +3755,13 @@ query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( - col2 + - 80 ) IS NOT NULL
----
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-635
SELECT ALL CAST ( NULL AS INTEGER ) * - AVG ( DISTINCT - - col2 ) AS col2 FROM tab1 AS cor0
+----
+NULL
query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN + col1 AND NULL
@@ -35069,11 +35075,14 @@ SELECT + SUM ( - col2 ) AS col2 FROM tab2 AS cor0
----
-121
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-# Datafusion - Expected - 67
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]I
+# Datafusion - [Actual ] [R]I
+query RI rowsort label-5850
SELECT CAST ( NULL AS INTEGER ) + - AVG ( DISTINCT - 76 ) AS col0, + 67 FROM tab0 AS cor0
+----
+NULL
+67
query I rowsort
SELECT + col2 + - - col0 AS col1 FROM tab2
@@ -52425,10 +52434,13 @@ query I rowsort
SELECT ALL - + 80 AS col2 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN + col1 AND - col0
----
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-8732
SELECT - AVG ( DISTINCT - 3 ) * - CAST ( NULL AS INTEGER ) * 37 AS col2 FROM tab0 AS cor0
+----
+NULL
query I rowsort label-8733
SELECT + COUNT ( * ) * - 76 FROM tab2 AS cor0 WHERE NOT + col1 * 8 IS NULL
diff --git a/data/sqlite/random/aggregates/slt_good_119.slt b/data/sqlite/random/aggregates/slt_good_119.slt
index 054d225..029dd67 100644
--- a/data/sqlite/random/aggregates/slt_good_119.slt
+++ b/data/sqlite/random/aggregates/slt_good_119.slt
@@ -14348,10 +14348,13 @@ SELECT DISTINCT + MAX ( - 4 ) FROM tab0 AS cor0
----
-4
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-2345
SELECT + 80 - - - AVG ( DISTINCT 92 ) + - - CAST ( NULL AS INTEGER ) * - 11 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
+----
+NULL
query I rowsort label-2346
SELECT ALL - - 26 / col0 FROM tab1 AS cor0
diff --git a/data/sqlite/random/aggregates/slt_good_120.slt b/data/sqlite/random/aggregates/slt_good_120.slt
index ad6325c..4ce40bd 100644
--- a/data/sqlite/random/aggregates/slt_good_120.slt
+++ b/data/sqlite/random/aggregates/slt_good_120.slt
@@ -12727,10 +12727,13 @@ SELECT + - CAST ( NULL AS INTEGER ) + + + COUNT ( * ) - COUNT ( * ) FROM tab2 AS
----
NULL
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-2091
SELECT ALL - CAST ( NULL AS INTEGER ) * + AVG ( DISTINCT + 12 ) FROM tab1 AS cor0
+----
+NULL
query I rowsort label-2092
SELECT + 26 / + + col1 AS col1 FROM tab2 cor0
diff --git a/data/sqlite/random/aggregates/slt_good_122.slt b/data/sqlite/random/aggregates/slt_good_122.slt
index 4c4d3e3..b8c21e3 100644
--- a/data/sqlite/random/aggregates/slt_good_122.slt
+++ b/data/sqlite/random/aggregates/slt_good_122.slt
@@ -60280,10 +60280,13 @@ SELECT - 40 + col1 + - 92 FROM tab0 AS cor0
-131
-51
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-9950
SELECT - SUM ( - - 46 ) / CAST ( NULL AS INTEGER ) + - ( + - ( - MAX ( ALL - 91 ) ) ) + - AVG ( DISTINCT 58 ) AS col2 FROM tab0 cor0
+----
+NULL
query I rowsort
SELECT DISTINCT - 64 - col0 + - 35 AS col0 FROM tab0 AS cor0
diff --git a/data/sqlite/random/aggregates/slt_good_123.slt b/data/sqlite/random/aggregates/slt_good_123.slt
index 8d5ebc2..b2a63b1 100644
--- a/data/sqlite/random/aggregates/slt_good_123.slt
+++ b/data/sqlite/random/aggregates/slt_good_123.slt
@@ -19196,11 +19196,9 @@ SELECT DISTINCT + col2 + + ( - 35 ) AS col1 FROM tab0 cor0
12
64
-# Postgresql - Postgres error: db error: ERROR: division by zero
-# Datafusion - Datafusion expected results:
-skipif postgres
-query error DataFusion error: Arrow error: Divide by zero error
+query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL = 38 / 0
+----
query II rowsort
SELECT 84 AS col0, + col0 AS col1 FROM tab2
@@ -37154,10 +37152,13 @@ SELECT * FROM tab0 cor0 WHERE NOT CAST ( - 9 AS FLOAT8 ) + + + col0 - - + col1 =
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-6113
SELECT - - CAST ( NULL AS INTEGER ) * - AVG ( DISTINCT 5 ) AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) BETWEEN + - col1 AND NULL
+----
+NULL
query I rowsort label-6114
SELECT COUNT ( * ) * - 66 AS col0 FROM tab2
diff --git a/data/sqlite/random/aggregates/slt_good_124.slt b/data/sqlite/random/aggregates/slt_good_124.slt
index 60a562f..0f50edb 100644
--- a/data/sqlite/random/aggregates/slt_good_124.slt
+++ b/data/sqlite/random/aggregates/slt_good_124.slt
@@ -2820,10 +2820,13 @@ query I rowsort
SELECT DISTINCT - - col2 FROM tab0 WHERE NOT + ( + + 66 ) >= NULL
----
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-455
SELECT + AVG ( DISTINCT - 59 ) + 87 - - CAST ( NULL AS INTEGER ) AS col2 FROM tab1
+----
+NULL
query I rowsort label-456
SELECT DISTINCT + + ( - 15 ) * - COUNT ( * ) AS col2 FROM tab1 AS cor0
@@ -8052,10 +8055,13 @@ SELECT col2 * - - 26 + - col0 AS col1 FROM tab1 AS cor0
1677
2445
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-1333
SELECT DISTINCT + 52 / - AVG ( DISTINCT + ( - 92 ) ) + + + CAST ( NULL AS INTEGER ) col0 FROM tab1 AS cor0
+----
+NULL
query I rowsort label-1334
SELECT - col1 + + col2 * + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
@@ -40030,9 +40036,9 @@ SELECT ALL + MAX ( ALL - 45 ) * COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-135
-# Datafusion - Datafusion expected results:
-query error DataFusion error: Arrow error: Divide by zero error
+query III rowsort
SELECT * FROM tab1 WHERE NOT ( NULL ) NOT BETWEEN col0 / - - 0 AND ( - ( - col1 ) )
+----
query II rowsort
SELECT + 18 AS col0, col2 AS col2 FROM tab0
@@ -58233,10 +58239,10 @@ SELECT + - 38 AS col0 FROM tab2 AS cor0
-38
-38
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - 0
-query error DataFusion error: Arrow error: Divide by zero error
+query I rowsort label-9599
SELECT + - COUNT ( ALL col0 ) * COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND - col1 / + - ( + 0 )
+----
+0
query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT - col0 * - 7 + - col2 / - ( ( - col1 ) ) + - col0 NOT BETWEEN ( NULL ) AND 63
diff --git a/data/sqlite/random/aggregates/slt_good_125.slt b/data/sqlite/random/aggregates/slt_good_125.slt
index 10e2f83..355a4f4 100644
--- a/data/sqlite/random/aggregates/slt_good_125.slt
+++ b/data/sqlite/random/aggregates/slt_good_125.slt
@@ -43091,10 +43091,13 @@ NULL
NULL
NULL
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-7111
SELECT + 51 * + + AVG ( DISTINCT + - CAST ( NULL AS INTEGER ) ) + CAST ( NULL AS INTEGER ) AS col1 FROM tab1
+----
+NULL
query I rowsort
SELECT + 59 + 99 FROM tab2
diff --git a/data/sqlite/random/aggregates/slt_good_127.slt b/data/sqlite/random/aggregates/slt_good_127.slt
index 66f7c61..90b0766 100644
--- a/data/sqlite/random/aggregates/slt_good_127.slt
+++ b/data/sqlite/random/aggregates/slt_good_127.slt
@@ -44564,9 +44564,9 @@ SELECT ALL - COUNT ( * ) * + 3 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
-27
-# Datafusion - Datafusion expected results:
-query error DataFusion error: Arrow error: Divide by zero error
+query I rowsort
SELECT 97 AS col0 FROM tab0 AS cor0 WHERE NULL BETWEEN - col1 / - 0 AND NULL
+----
query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col0 + + 38 IS NULL
@@ -50310,9 +50310,9 @@ SELECT ALL + 10 * + col1 + + + col0 + - col0 * + col2, col0 / - - ( - 11 ) AS co
120
-1
-# Datafusion - Datafusion expected results:
-query error DataFusion error: Arrow error: Divide by zero error
+query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL >= - col1 / - + 0
+----
query I rowsort
SELECT ALL col1 - - + col0 + - 85 * col2 AS col1 FROM tab1 AS cor0
diff --git a/data/sqlite/random/aggregates/slt_good_128.slt b/data/sqlite/random/aggregates/slt_good_128.slt
index b145384..e1b0649 100644
--- a/data/sqlite/random/aggregates/slt_good_128.slt
+++ b/data/sqlite/random/aggregates/slt_good_128.slt
@@ -42964,10 +42964,13 @@ SELECT * FROM tab1 WHERE NOT 63 > col0 - + col0 - - col1 * - - 57 - + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-7041
SELECT ALL - AVG ( DISTINCT - + col1 ) + - + ( + CAST ( NULL AS INTEGER ) ) * COUNT ( DISTINCT 3 ) + COUNT ( * ) FROM tab1 WHERE NOT NULL IS NULL
+----
+NULL
query III rowsort
SELECT * FROM tab1 WHERE NOT + + 16 / + 55 NOT IN ( + + col0 )
diff --git a/data/sqlite/random/aggregates/slt_good_13.slt b/data/sqlite/random/aggregates/slt_good_13.slt
index d6bec6b..46434bd 100644
--- a/data/sqlite/random/aggregates/slt_good_13.slt
+++ b/data/sqlite/random/aggregates/slt_good_13.slt
@@ -49740,10 +49740,13 @@ SELECT col1 AS col1, 83 FROM tab0
81
83
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-8255
SELECT + AVG ( DISTINCT - - col2 ) * + CAST ( NULL AS INTEGER ) FROM tab2
+----
+NULL
query I rowsort
SELECT 67 + col0 AS col1 FROM tab0
diff --git a/data/sqlite/random/aggregates/slt_good_15.slt b/data/sqlite/random/aggregates/slt_good_15.slt
index c7a4603..ada97ab 100644
--- a/data/sqlite/random/aggregates/slt_good_15.slt
+++ b/data/sqlite/random/aggregates/slt_good_15.slt
@@ -27674,10 +27674,13 @@ SELECT ( + MIN ( DISTINCT + 86 ) ) AS col0, - COUNT ( * ) AS col1 FROM tab2 cor0
86
-3
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-4518
SELECT + COUNT ( * ) * - + AVG ( DISTINCT - col2 ) + + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 WHERE NOT NULL IS NULL
+----
+NULL
query I rowsort
SELECT + 99 * + - col2 FROM tab2
@@ -59417,10 +59420,13 @@ SELECT DISTINCT - CAST ( + COUNT ( * ) AS INTEGER ) col0 FROM tab2
----
-3
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-9753
SELECT ALL - - COUNT ( * ) - - AVG ( DISTINCT - col0 ) + - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 cor0
+----
+NULL
query I rowsort
SELECT ALL + col0 * + + 11 AS col0 FROM tab1 AS cor0
diff --git a/data/sqlite/random/aggregates/slt_good_16.slt b/data/sqlite/random/aggregates/slt_good_16.slt
index 17619bc..4929462 100644
--- a/data/sqlite/random/aggregates/slt_good_16.slt
+++ b/data/sqlite/random/aggregates/slt_good_16.slt
@@ -6843,10 +6843,13 @@ SELECT + col1 - ( ( + + col0 ) ) FROM tab0
-96
66
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-1125
SELECT CAST ( NULL AS INTEGER ) - CAST ( + + COUNT ( * ) AS INTEGER ) - ( - - COUNT ( * ) ) * + AVG ( DISTINCT 64 ) + - - CAST ( NULL AS INTEGER ) AS col0 FROM tab2
+----
+NULL
query I rowsort
SELECT col1 * 97 - + + col0 FROM tab2
@@ -22907,10 +22910,13 @@ query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( + 45 * - col0 ) IS NOT NULL
----
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-3759
SELECT - CAST ( NULL AS INTEGER ) * + - COUNT ( * ) + - AVG ( DISTINCT - + 77 ) FROM tab2 AS cor0
+----
+NULL
query I rowsort label-3760
SELECT DISTINCT 73 + + + ( + COUNT ( * ) ) FROM tab1 AS cor0 WHERE NOT - ( + + col1 ) BETWEEN NULL AND NULL
@@ -34642,10 +34648,13 @@ query I rowsort
SELECT + col2 - + col1 AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-5715
SELECT - AVG ( DISTINCT - 48 ) * - ( - CAST ( NULL AS FLOAT8 ) ) FROM tab1 AS cor0
+----
+NULL
query I rowsort label-5716
SELECT DISTINCT - COUNT ( * ) + COUNT ( DISTINCT + col2 ) FROM tab1 AS cor0
diff --git a/data/sqlite/random/aggregates/slt_good_17.slt b/data/sqlite/random/aggregates/slt_good_17.slt
index 4f429ce..d0545e4 100644
--- a/data/sqlite/random/aggregates/slt_good_17.slt
+++ b/data/sqlite/random/aggregates/slt_good_17.slt
@@ -13891,10 +13891,13 @@ SELECT - - col1 + + 59 + + - col2 * - col1 FROM tab2 AS cor0
3216
4012
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-2270
SELECT + CAST ( NULL AS FLOAT8 ) + + AVG ( DISTINCT CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
+----
+NULL
query I rowsort
SELECT ALL col2 * - col0 * - + col0 + + + 56 AS col0 FROM tab0 AS cor0
diff --git a/data/sqlite/random/aggregates/slt_good_18.slt b/data/sqlite/random/aggregates/slt_good_18.slt
index 1e5af61..946196e 100644
--- a/data/sqlite/random/aggregates/slt_good_18.slt
+++ b/data/sqlite/random/aggregates/slt_good_18.slt
@@ -39260,9 +39260,9 @@ SELECT DISTINCT ( - 59 ) * 90 FROM tab2
----
-5310
-# Datafusion - Datafusion expected results:
-query error DataFusion error: Arrow error: Divide by zero error
+query III rowsort label-6501
SELECT * FROM tab0 AS cor0 WHERE NOT - 0 / + col0 * + + col1 + - col0 + - - 18 + - col1 <= + + CAST ( NULL AS INTEGER ) + - ( + col2 ) / 0 AND NOT ( NULL ) BETWEEN + col0 AND + + 21
+----
query I rowsort
SELECT + + col1 + - 19 * - + col0 col2 FROM tab2 AS cor0
diff --git a/data/sqlite/random/aggregates/slt_good_19.slt b/data/sqlite/random/aggregates/slt_good_19.slt
index 9a14bab..85fae8b 100644
--- a/data/sqlite/random/aggregates/slt_good_19.slt
+++ b/data/sqlite/random/aggregates/slt_good_19.slt
@@ -29045,10 +29045,13 @@ SELECT - + 46 + - 97 col0 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 5d22e9b37e9805edddb9e73cd1fddaac
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-4783
SELECT ALL - ( + AVG ( DISTINCT - - 95 ) ) / CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
+----
+NULL
query I rowsort
SELECT + col0 * col1 + - col1 AS col1 FROM tab0 cor0
@@ -50627,10 +50630,13 @@ SELECT COUNT ( - - col2 ) + - - MIN ( - col0 ) AS col2 FROM tab2 AS cor0
----
-72
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-8337
SELECT + 58 * - + CAST ( NULL AS INTEGER ) + + - AVG ( col0 ) + - - AVG ( DISTINCT 90 ) FROM tab1 AS cor0
+----
+NULL
query I rowsort label-8338
SELECT DISTINCT 60 * ( + - COUNT ( * ) ) + + + 94 FROM tab0 AS cor0
diff --git a/data/sqlite/random/aggregates/slt_good_21.slt b/data/sqlite/random/aggregates/slt_good_21.slt
index 5b0b219..a3654be 100644
--- a/data/sqlite/random/aggregates/slt_good_21.slt
+++ b/data/sqlite/random/aggregates/slt_good_21.slt
@@ -321,11 +321,9 @@ SELECT DISTINCT + AVG ( - col2 ) / + CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL
-# Postgresql - Postgres error: db error: ERROR: division by zero
-# Datafusion - Datafusion expected results:
-skipif postgres
-query error DataFusion error: Arrow error: Divide by zero error
+query I rowsort
SELECT DISTINCT + 33 + col1 col0 FROM tab0 WHERE NOT 35 / 0 = ( NULL )
+----
query I rowsort label-50
SELECT 16 / - 19 FROM tab2
@@ -58299,10 +58297,13 @@ SELECT ALL - COUNT ( * ) AS col1, + 87 FROM tab2 cor0
-3
87
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-9608
SELECT + + COUNT ( * ) / - - AVG ( DISTINCT col1 ) + + + CAST ( NULL AS INTEGER ) FROM tab2 cor0
+----
+NULL
query I rowsort label-9609
SELECT ALL - COUNT ( * ) AS col1 FROM tab0 WHERE NOT - + 59 * + col2 IS NULL
diff --git a/data/sqlite/random/aggregates/slt_good_23.slt b/data/sqlite/random/aggregates/slt_good_23.slt
index 9fb638c..63dbfc7 100644
--- a/data/sqlite/random/aggregates/slt_good_23.slt
+++ b/data/sqlite/random/aggregates/slt_good_23.slt
@@ -37162,10 +37162,13 @@ query III rowsort label-6132
SELECT * FROM tab2 WHERE NULL >= - col1 * - CAST ( + + col1 AS INTEGER )
----
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-6133
SELECT ALL COUNT ( * ) + AVG ( DISTINCT 75 ) + + CAST ( NULL AS INTEGER ) AS col2 FROM tab2
+----
+NULL
query I rowsort
SELECT DISTINCT - col0 AS col1 FROM tab2 WHERE NOT + - 46 IS NULL
@@ -56795,10 +56798,13 @@ SELECT DISTINCT MAX ( DISTINCT col2 ) * 75 FROM tab1
----
7200
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-9380
SELECT ALL CAST ( NULL AS FLOAT8 ) * AVG ( DISTINCT ( - 57 ) ) FROM tab0
+----
+NULL
query I rowsort
SELECT DISTINCT col1 AS col0 FROM tab2 WHERE NOT - col2 <> col0 - - 82
diff --git a/data/sqlite/random/aggregates/slt_good_24.slt b/data/sqlite/random/aggregates/slt_good_24.slt
index 843dd19..5772eac 100644
--- a/data/sqlite/random/aggregates/slt_good_24.slt
+++ b/data/sqlite/random/aggregates/slt_good_24.slt
@@ -20115,10 +20115,13 @@ SELECT ALL - CAST ( - - col0 AS INTEGER ) + + col2 FROM tab2
-23
-24
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-3325
SELECT DISTINCT - - 61 * + AVG ( DISTINCT - 72 ) - - MIN ( + 55 ) + - CAST ( NULL AS INTEGER ) col2 FROM tab1 AS cor0
+----
+NULL
query I rowsort label-3326
SELECT ALL - + COUNT ( * ) / - 27 FROM tab0 AS cor0
diff --git a/data/sqlite/random/aggregates/slt_good_25.slt b/data/sqlite/random/aggregates/slt_good_25.slt
index 7550d5a..2c63169 100644
--- a/data/sqlite/random/aggregates/slt_good_25.slt
+++ b/data/sqlite/random/aggregates/slt_good_25.slt
@@ -2000,11 +2000,9 @@ SELECT - - COUNT ( * ) * - + CAST ( - COUNT ( * ) AS INTEGER ) + + COUNT ( * ) -
----
14
-# Postgresql - Postgres error: db error: ERROR: division by zero
-# Datafusion - Datafusion expected results:
-skipif postgres
-query error DataFusion error: Arrow error: Divide by zero error
+query I rowsort label-324
SELECT DISTINCT + col2 FROM tab0 AS cor0 WHERE NOT ( + + 14 / + 0 * + 90 - + 84 / + 67 ) < ( NULL ) AND NOT CAST ( col2 AS INTEGER ) = NULL
+----
query I rowsort
SELECT ALL + - 42 * - + 27 * - ( col0 ) AS col1 FROM tab0 AS cor0
@@ -16330,10 +16328,13 @@ SELECT DISTINCT + 96 + - + ( col0 ) AS col1 FROM tab1 AS cor0
45
5
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-2705
SELECT - AVG ( DISTINCT - col1 ) / - COUNT ( * ) + - + ( + COUNT ( * ) ) + + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
+----
+NULL
query I rowsort label-2706
SELECT col1 / 54 AS col1 FROM tab2
@@ -18936,10 +18937,13 @@ query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NULL NOT BETWEEN col0 AND - 89
----
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-3137
SELECT CAST ( NULL AS INTEGER ) + - AVG ( DISTINCT 43 ) FROM tab2 AS cor0 WHERE NOT ( + CAST ( NULL AS INTEGER ) IS NOT NULL )
+----
+NULL
query I rowsort label-3138
SELECT 6 / + - ( - 82 ) AS col0 FROM tab0 AS cor0
@@ -40571,10 +40575,13 @@ SELECT + 20 * col0 FROM tab2
1500
920
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-6732
SELECT + AVG ( DISTINCT - 49 ) * + CAST ( NULL AS FLOAT8 ) FROM tab0
+----
+NULL
query II rowsort
SELECT + col0 + - + col1 col0, - 70 FROM tab2 AS cor0
@@ -56928,10 +56935,13 @@ SELECT + - ( + col1 ) col2 FROM tab2 AS cor0
-67
-77
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-9417
SELECT 56 / - + AVG ( DISTINCT 87 ) * + CAST ( NULL AS INTEGER ) FROM tab2 cor0
+----
+NULL
query I rowsort
SELECT col1 * - 66 col2 FROM tab2 AS cor0
diff --git a/data/sqlite/random/aggregates/slt_good_26.slt b/data/sqlite/random/aggregates/slt_good_26.slt
index 737feb7..91e497f 100644
--- a/data/sqlite/random/aggregates/slt_good_26.slt
+++ b/data/sqlite/random/aggregates/slt_good_26.slt
@@ -40464,10 +40464,13 @@ SELECT DISTINCT - 45 + - SUM ( DISTINCT + 83 ) AS col1 FROM tab1 cor0
----
-128
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-6676
SELECT DISTINCT - CAST ( COUNT ( * ) AS INTEGER ) - - CAST ( NULL AS INTEGER ) * + - SUM ( + + col1 ) + - AVG ( DISTINCT + 57 ) FROM tab2 cor0
+----
+NULL
query I rowsort
SELECT 31 + + col2 AS col2 FROM tab0 WHERE NULL IS NOT NULL
diff --git a/data/sqlite/random/aggregates/slt_good_27.slt b/data/sqlite/random/aggregates/slt_good_27.slt
index a43aa47..0c24926 100644
--- a/data/sqlite/random/aggregates/slt_good_27.slt
+++ b/data/sqlite/random/aggregates/slt_good_27.slt
@@ -16835,10 +16835,13 @@ SELECT MIN ( DISTINCT - 80 ) FROM tab2
----
-80
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-2778
SELECT + AVG ( DISTINCT - + 13 ) + - CAST ( NULL AS FLOAT8 ) FROM tab2 cor0
+----
+NULL
query I rowsort
SELECT ALL + + 76 * - 24 + col2 AS col0 FROM tab0 AS cor0
diff --git a/data/sqlite/random/aggregates/slt_good_29.slt b/data/sqlite/random/aggregates/slt_good_29.slt
index 295ccb6..ec6818d 100644
--- a/data/sqlite/random/aggregates/slt_good_29.slt
+++ b/data/sqlite/random/aggregates/slt_good_29.slt
@@ -35639,10 +35639,13 @@ query I rowsort
SELECT ALL 58 col0 FROM tab0 WHERE - col1 + + + ( col0 ) NOT BETWEEN NULL AND NULL
----
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-5858
SELECT DISTINCT + AVG ( DISTINCT + CAST ( NULL AS FLOAT8 ) ) + + MAX ( - col2 ) / + 81 * ( - COUNT ( * ) ) + - CAST ( NULL AS INTEGER ) FROM tab0
+----
+NULL
query I rowsort
SELECT + col1 * - col1 * + + col2 AS col2 FROM tab0
@@ -51194,10 +51197,13 @@ SELECT + col1 + - 42 FROM tab1
-37
5
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-8431
SELECT DISTINCT - AVG ( DISTINCT CAST ( NULL AS INTEGER ) ) * - CAST ( NULL AS INTEGER ) + + + 74 AS col0 FROM tab0
+----
+NULL
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + 55 * - 96 IS NOT NULL
diff --git a/data/sqlite/random/aggregates/slt_good_30.slt b/data/sqlite/random/aggregates/slt_good_30.slt
index 9f884ec..73c57b7 100644
--- a/data/sqlite/random/aggregates/slt_good_30.slt
+++ b/data/sqlite/random/aggregates/slt_good_30.slt
@@ -8733,10 +8733,13 @@ SELECT DISTINCT - COUNT ( DISTINCT - col2 ) AS col2 FROM tab2 cor0
----
-3
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-1436
SELECT - 22 + AVG ( DISTINCT CAST ( - + 23 AS INTEGER ) ) * CAST ( NULL AS INTEGER ) AS col0 FROM tab2
+----
+NULL
query I rowsort label-1437
SELECT - COUNT ( ALL + 37 ) + COUNT ( * ) AS col0 FROM tab0
@@ -51043,10 +51046,13 @@ query I rowsort label-8431
SELECT ALL - + col1 col2 FROM tab0 AS cor0 WHERE NOT col1 + + + col2 BETWEEN + - col0 AND CAST ( NULL AS INTEGER )
----
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-8432
SELECT DISTINCT + AVG ( DISTINCT + - 33 ) + - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
+----
+NULL
query I rowsort
SELECT DISTINCT 49 FROM tab2 AS cor0 WHERE NOT col0 IS NOT NULL
diff --git a/data/sqlite/random/aggregates/slt_good_31.slt b/data/sqlite/random/aggregates/slt_good_31.slt
index c74496c..9ba802a 100644
--- a/data/sqlite/random/aggregates/slt_good_31.slt
+++ b/data/sqlite/random/aggregates/slt_good_31.slt
@@ -14526,10 +14526,13 @@ SELECT * FROM tab0 AS cor0 WHERE - col1 <> - + 83
query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2" at position 0 and "cor0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\.
SELECT ALL col2, ( + col2 ) FROM tab1 AS cor0
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-2383
SELECT DISTINCT + + COUNT ( * ) + + + CAST ( NULL AS INTEGER ) + - AVG ( DISTINCT + + col0 ) FROM tab2 AS cor0
+----
+NULL
query I rowsort
SELECT DISTINCT col2 + 90 + - col2 FROM tab0
@@ -19806,10 +19809,10 @@ SELECT ALL - col2 + col1 - + - col1 FROM tab0
115
32
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - 0
-query error DataFusion error: Arrow error: Divide by zero error
+query I rowsort label-3259
SELECT COUNT ( * ) AS col1 FROM tab2 WHERE NULL <> - + col2 / - 0
+----
+0
query III rowsort
SELECT ALL * FROM tab2 WHERE NULL <= ( col0 )
diff --git a/data/sqlite/random/aggregates/slt_good_32.slt b/data/sqlite/random/aggregates/slt_good_32.slt
index 18b1466..00b86fa 100644
--- a/data/sqlite/random/aggregates/slt_good_32.slt
+++ b/data/sqlite/random/aggregates/slt_good_32.slt
@@ -45054,10 +45054,13 @@ NULL
NULL
NULL
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-7441
SELECT - CAST ( NULL AS INTEGER ) + AVG ( DISTINCT + 24 ) AS col1 FROM tab2
+----
+NULL
query I rowsort
SELECT DISTINCT col2 * + 17 * - - col1 * + 53 AS col2 FROM tab2
diff --git a/data/sqlite/random/aggregates/slt_good_33.slt b/data/sqlite/random/aggregates/slt_good_33.slt
index 682a2a1..9c2be80 100644
--- a/data/sqlite/random/aggregates/slt_good_33.slt
+++ b/data/sqlite/random/aggregates/slt_good_33.slt
@@ -35733,10 +35733,13 @@ NULL
NULL
NULL
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-5937
SELECT + AVG ( DISTINCT + 75 ) - + CAST ( NULL AS INTEGER ) * CAST ( + 66 AS INTEGER ) FROM tab0 cor0
+----
+NULL
query I rowsort label-5938
SELECT + COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE + CAST ( NULL AS FLOAT8 ) < NULL
diff --git a/data/sqlite/random/aggregates/slt_good_34.slt b/data/sqlite/random/aggregates/slt_good_34.slt
index a45a211..837e076 100644
--- a/data/sqlite/random/aggregates/slt_good_34.slt
+++ b/data/sqlite/random/aggregates/slt_good_34.slt
@@ -28154,9 +28154,9 @@ SELECT SUM ( - col2 ) AS col2 FROM tab2 AS cor0 WHERE NULL IN ( - ( - - col0 ),
----
NULL
-# Datafusion - Datafusion expected results:
-query error DataFusion error: Arrow error: Divide by zero error
+query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL = ( + - col0 ) / - 0
+----
query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 - + + 35 IS NULL
diff --git a/data/sqlite/random/aggregates/slt_good_35.slt b/data/sqlite/random/aggregates/slt_good_35.slt
index 2b775da..0e361df 100644
--- a/data/sqlite/random/aggregates/slt_good_35.slt
+++ b/data/sqlite/random/aggregates/slt_good_35.slt
@@ -13272,9 +13272,9 @@ SELECT DISTINCT + 56 + - COUNT ( * ) FROM tab2
----
53
-# Datafusion - Datafusion expected results:
-query error DataFusion error: Arrow error: Divide by zero error
+query III rowsort label-2218
SELECT ALL * FROM tab1 WHERE NOT NULL > col1 / - CAST ( + 71 AS INTEGER ) / - + 0 - - 68
+----
query I rowsort label-2219
SELECT DISTINCT - col2 * - CAST ( col1 AS INTEGER ) - - col2 FROM tab1 AS cor0
@@ -45110,10 +45110,13 @@ query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 > NULL
----
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-7510
SELECT + CAST ( NULL AS INTEGER ) * AVG ( DISTINCT - - col2 ) - + 66 FROM tab0
+----
+NULL
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( + 25 * ( + col1 ) ) IS NOT NULL
@@ -54924,10 +54927,13 @@ SELECT DISTINCT - CAST ( + - 68 AS INTEGER ) + - 80 FROM tab1
----
-12
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-9159
SELECT ALL - CAST ( NULL AS INTEGER ) / + AVG ( DISTINCT - - col2 ) col1 FROM tab2
+----
+NULL
query I rowsort label-9160
SELECT + + COUNT ( * ) FROM tab0 WHERE 79 * + + 49 > NULL
diff --git a/data/sqlite/random/aggregates/slt_good_38.slt b/data/sqlite/random/aggregates/slt_good_38.slt
index 84cf98e..c6a4ba9 100644
--- a/data/sqlite/random/aggregates/slt_good_38.slt
+++ b/data/sqlite/random/aggregates/slt_good_38.slt
@@ -41535,11 +41535,9 @@ SELECT DISTINCT + 13 * + + COUNT ( * ) FROM tab1
----
39
-# Postgresql - Postgres error: db error: ERROR: division by zero
-# Datafusion - Datafusion expected results:
-skipif postgres
-query error DataFusion error: Arrow error: Divide by zero error
+query IIIIII rowsort
SELECT ALL * FROM tab0, tab1 AS cor0 WHERE - + 22 / - 0 NOT BETWEEN NULL AND NULL
+----
query I rowsort label-6862
SELECT COUNT ( * ) / + + COUNT ( * ) col0 FROM tab2
@@ -50046,10 +50044,13 @@ SELECT ALL 48 * - 94 * - col0 * 14 AS col2 FROM tab0
6127296
947520
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-8291
SELECT - CAST ( NULL AS INTEGER ) / + AVG ( DISTINCT + - 23 ) FROM tab2
+----
+NULL
query I rowsort
SELECT 26 col1 FROM tab0 AS cor0
diff --git a/data/sqlite/random/aggregates/slt_good_39.slt b/data/sqlite/random/aggregates/slt_good_39.slt
index 9235ddc..d1b69aa 100644
--- a/data/sqlite/random/aggregates/slt_good_39.slt
+++ b/data/sqlite/random/aggregates/slt_good_39.slt
@@ -16135,10 +16135,13 @@ query I rowsort label-2649
SELECT + + col0 AS col0 FROM tab2 WHERE - CAST ( NULL AS INTEGER ) * 74 IS NOT NULL
----
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-2650
SELECT - AVG ( DISTINCT - - col2 ) + + - CAST ( NULL AS INTEGER ) * COUNT ( * ) AS col1 FROM tab0
+----
+NULL
query I rowsort
SELECT DISTINCT 41 * + + col0 FROM tab0
@@ -24846,10 +24849,13 @@ SELECT ALL - col2 * 84 * + 99 FROM tab1
-565488
-798336
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-4066
SELECT ALL + AVG ( DISTINCT + 79 ) + + CAST ( NULL AS INTEGER ) FROM tab0
+----
+NULL
query I rowsort label-4067
SELECT + + 39 + + - MAX ( ALL - 5 ) FROM tab0, tab1 AS cor0 WHERE NULL > NULL
diff --git a/data/sqlite/random/aggregates/slt_good_4.slt b/data/sqlite/random/aggregates/slt_good_4.slt
index 6a18d5b..8256df9 100644
--- a/data/sqlite/random/aggregates/slt_good_4.slt
+++ b/data/sqlite/random/aggregates/slt_good_4.slt
@@ -8622,10 +8622,13 @@ query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 * - - 70 IS NULL
----
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-1392
SELECT + - CAST ( NULL AS INTEGER ) + + AVG ( DISTINCT + 22 ) * + 54 col1 FROM tab0 AS cor0
+----
+NULL
query I rowsort label-1393
SELECT DISTINCT + col2 / + 78 * + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) + - col0 AS col0 FROM tab2 WHERE - - col1 + - 18 IS NOT NULL
@@ -28473,10 +28476,13 @@ query III rowsort
SELECT * FROM tab0 WHERE NOT + 80 IS NOT NULL
----
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-4650
SELECT DISTINCT + AVG ( DISTINCT + - 91 ) - - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
+----
+NULL
query II rowsort
SELECT DISTINCT 56, - col2 col1 FROM tab2 AS cor0
diff --git a/data/sqlite/random/aggregates/slt_good_42.slt b/data/sqlite/random/aggregates/slt_good_42.slt
index 0e9272a..e879b39 100644
--- a/data/sqlite/random/aggregates/slt_good_42.slt
+++ b/data/sqlite/random/aggregates/slt_good_42.slt
@@ -47753,10 +47753,13 @@ SELECT DISTINCT + 81 FROM tab1 WHERE NULL IS NULL
----
81
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-7905
SELECT AVG ( DISTINCT + col2 ) / - CAST ( + ( - + COUNT ( * ) ) AS INTEGER ) + + - CAST ( NULL AS INTEGER ) AS col0 FROM tab0
+----
+NULL
query III rowsort
SELECT * FROM tab1 WHERE NOT NULL BETWEEN NULL AND 26
diff --git a/data/sqlite/random/aggregates/slt_good_44.slt b/data/sqlite/random/aggregates/slt_good_44.slt
index b3dbf88..9e42b7b 100644
--- a/data/sqlite/random/aggregates/slt_good_44.slt
+++ b/data/sqlite/random/aggregates/slt_good_44.slt
@@ -56347,10 +56347,13 @@ SELECT 12 * + col1 + - - col0 AS col1 FROM tab2
879
988
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-9291
SELECT CAST ( NULL AS INTEGER ) + + - AVG ( DISTINCT - - col1 ) / - AVG ( DISTINCT + - col0 ) FROM tab0
+----
+NULL
query I rowsort label-9292
SELECT DISTINCT - - col0 / + 10 FROM tab1 AS cor0
diff --git a/data/sqlite/random/aggregates/slt_good_45.slt b/data/sqlite/random/aggregates/slt_good_45.slt
index e5c518a..d23a3d3 100644
--- a/data/sqlite/random/aggregates/slt_good_45.slt
+++ b/data/sqlite/random/aggregates/slt_good_45.slt
@@ -37887,10 +37887,13 @@ query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 54 NOT BETWEEN + col2 AND NULL
----
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-6250
SELECT - - CAST ( NULL AS INTEGER ) + - AVG ( DISTINCT - - 56 ) * COUNT ( * ) FROM tab0 AS cor0
+----
+NULL
query I rowsort label-6251
SELECT ALL - + COUNT ( * ) * - COUNT ( * ) col1 FROM tab2 cor0
diff --git a/data/sqlite/random/aggregates/slt_good_46.slt b/data/sqlite/random/aggregates/slt_good_46.slt
index 8dc2bb4..32f166d 100644
--- a/data/sqlite/random/aggregates/slt_good_46.slt
+++ b/data/sqlite/random/aggregates/slt_good_46.slt
@@ -11474,10 +11474,13 @@ SELECT ALL * FROM tab2 AS cor0 WHERE + col2 > + + ( - 6 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-1887
SELECT ALL AVG ( DISTINCT 88 ) * - CAST ( NULL AS FLOAT8 ) FROM tab1 AS cor0
+----
+NULL
query I rowsort label-1888
SELECT ALL CAST ( + col0 AS INTEGER ) + col0 * + col0 * col1 col1 FROM tab0 AS cor0 WHERE NOT 44 * col1 IS NULL
@@ -26581,10 +26584,13 @@ SELECT 59 * + - ( + + 76 ) FROM tab2 AS cor0
-4484
-4484
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-4392
SELECT + AVG ( DISTINCT - - col2 ) / - - CAST ( NULL AS INTEGER ) AS col2 FROM tab2
+----
+NULL
query I rowsort label-4393
SELECT ALL + COUNT ( * ) FROM tab1 cor0 CROSS JOIN tab0 AS cor1
@@ -33071,10 +33077,13 @@ SELECT COUNT ( * ) col0 FROM tab2 AS cor0 WHERE col1 BETWEEN NULL AND - - 70
----
0
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-5451
SELECT + - CAST ( - + 0 AS INTEGER ) * - CAST ( NULL AS INTEGER ) + AVG ( DISTINCT - - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2 AS cor0
+----
+NULL
query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( - col2 / + ( - 87 ) ) = NULL
@@ -41938,10 +41947,13 @@ SELECT DISTINCT + COUNT ( ALL + 28 ) AS col0 FROM tab0 AS cor0
----
3
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-6907
SELECT DISTINCT + AVG ( DISTINCT - - 51 ) + - - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
+----
+NULL
query I rowsort
SELECT + - col1 * - 67 - + col1 AS col0 FROM tab0 AS cor0
diff --git a/data/sqlite/random/aggregates/slt_good_48.slt b/data/sqlite/random/aggregates/slt_good_48.slt
index 6b2fa40..a916f85 100644
--- a/data/sqlite/random/aggregates/slt_good_48.slt
+++ b/data/sqlite/random/aggregates/slt_good_48.slt
@@ -27643,10 +27643,13 @@ SELECT DISTINCT col0 * col0 + + + ( - col0 ), ( - + ( + col0 ) ) AS col0 FROM ta
9312
-97
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-4555
SELECT ALL - - AVG ( DISTINCT CAST ( NULL AS INTEGER ) ) * + 91 + COUNT ( * ) + CAST ( NULL AS INTEGER ) + + - COUNT ( col2 ) col0 FROM tab2 cor0
+----
+NULL
query I rowsort
SELECT + col1 * + col1 + - + 7 FROM tab0 cor0
@@ -47314,10 +47317,13 @@ SELECT + 48 * - - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
144
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-7792
SELECT - AVG ( DISTINCT ( + + 34 ) ) * - - MAX ( - - 18 ) * 6 * + CAST ( NULL AS FLOAT8 ) * - - 59 + - 79 FROM tab1
+----
+NULL
query I rowsort
SELECT ALL + col2 + 24 * - - col2 col0 FROM tab0
diff --git a/data/sqlite/random/aggregates/slt_good_49.slt b/data/sqlite/random/aggregates/slt_good_49.slt
index ec7d43f..67e6b69 100644
--- a/data/sqlite/random/aggregates/slt_good_49.slt
+++ b/data/sqlite/random/aggregates/slt_good_49.slt
@@ -14267,10 +14267,13 @@ query I rowsort
SELECT ALL 91 * + - 41 * - col2 - col0 AS col1 FROM tab1 AS cor0 WHERE NOT - col2 * - col0 * + + 68 IS NOT NULL
----
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-2342
SELECT CAST ( NULL AS INTEGER ) / - AVG ( DISTINCT - - col0 ) AS col2 FROM tab2 AS cor0
+----
+NULL
query I rowsort
SELECT - + ( - ( + 82 ) ) * - col1 AS col2 FROM tab0 cor0
diff --git a/data/sqlite/random/aggregates/slt_good_5.slt b/data/sqlite/random/aggregates/slt_good_5.slt
index fa3c358..e6e4cb2 100644
--- a/data/sqlite/random/aggregates/slt_good_5.slt
+++ b/data/sqlite/random/aggregates/slt_good_5.slt
@@ -19047,10 +19047,13 @@ SELECT DISTINCT 9 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-3128
SELECT ALL + AVG ( DISTINCT + 97 ) + + + CAST ( NULL AS INTEGER ) FROM tab0
+----
+NULL
query I rowsort
SELECT 86 + - col0 + col0 AS col2 FROM tab1
@@ -23000,11 +23003,14 @@ SELECT ALL ( - 10 ) AS col2 FROM tab1
-10
-10
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - -3
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] I[I]
+# Datafusion - [Actual ] I[R]
+query IR rowsort label-3789
SELECT DISTINCT - - ( - COUNT ( ALL 99 ) ), 86 + - CAST ( NULL AS INTEGER ) - COUNT ( * ) * + - AVG ( DISTINCT + 81 ) AS col1 FROM tab1 AS cor0
+----
+-3
+NULL
query I rowsort label-3790
SELECT + CAST ( - - col1 AS INTEGER ) FROM tab2 AS cor0
@@ -38610,10 +38616,13 @@ SELECT ALL + col0 / - col0 AS col2, + col0 FROM tab2
-1
75
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-6333
SELECT - AVG ( DISTINCT - ( 7 ) ) * CAST ( NULL AS INTEGER ) / + - COUNT ( * ) FROM tab0
+----
+NULL
query I rowsort label-6334
SELECT col0 FROM tab0 WHERE NOT CAST ( + - 48 AS INTEGER ) IS NOT NULL
diff --git a/data/sqlite/random/aggregates/slt_good_52.slt b/data/sqlite/random/aggregates/slt_good_52.slt
index 7d3c376..0e988e5 100644
--- a/data/sqlite/random/aggregates/slt_good_52.slt
+++ b/data/sqlite/random/aggregates/slt_good_52.slt
@@ -25359,10 +25359,13 @@ SELECT - COUNT ( * ) + - MAX ( ALL - col0 ) FROM tab0
----
12
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-4204
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + - AVG ( DISTINCT + 87 ) * + COUNT ( * ) AS col2 FROM tab2
+----
+NULL
query I rowsort
SELECT + col1 + ( + col2 ) * col1 * - 80 * - col2 FROM tab2
diff --git a/data/sqlite/random/aggregates/slt_good_53.slt b/data/sqlite/random/aggregates/slt_good_53.slt
index 5194282..5eed3c1 100644
--- a/data/sqlite/random/aggregates/slt_good_53.slt
+++ b/data/sqlite/random/aggregates/slt_good_53.slt
@@ -24132,10 +24132,13 @@ SELECT DISTINCT + COUNT ( ALL CAST ( col1 AS INTEGER ) ) AS col2 FROM tab0 AS co
----
3
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-3978
SELECT ALL - + CAST ( NULL AS INTEGER ) * AVG ( DISTINCT - ( - + col1 ) ) AS col1 FROM tab2 AS cor0
+----
+NULL
query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col0 + col0 * - - 96 * + - col0 NOT BETWEEN - col2 AND - 75
@@ -59217,9 +59220,9 @@ SELECT - SUM ( - 43 ) AS col2 FROM tab1
----
129
-# Datafusion - Datafusion expected results:
-query error DataFusion error: Arrow error: Divide by zero error
+query III rowsort
SELECT * FROM tab0 WHERE NOT NULL BETWEEN col2 / + 0 AND ( NULL )
+----
query I rowsort
SELECT DISTINCT col1 + 54 AS col1 FROM tab1
diff --git a/data/sqlite/random/aggregates/slt_good_54.slt b/data/sqlite/random/aggregates/slt_good_54.slt
index 7acb822..190c21e 100644
--- a/data/sqlite/random/aggregates/slt_good_54.slt
+++ b/data/sqlite/random/aggregates/slt_good_54.slt
@@ -9105,10 +9105,13 @@ SELECT + COUNT ( * ) FROM tab0 WHERE ( NULL ) <> NULL
----
0
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-1509
SELECT + AVG ( DISTINCT 41 ) + + + 9 + MAX ( + col0 ) * - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
+----
+NULL
query II rowsort
SELECT DISTINCT col0 AS col0, - 80 - 61 * - 17 FROM tab2 cor0 WHERE NOT 78 + + col2 NOT BETWEEN - col1 AND ( col0 / - 22 / 3 )
@@ -31360,10 +31363,13 @@ SELECT DISTINCT - ( col2 ) + 51, 16 col1 FROM tab2 AS cor0
28
16
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-5176
SELECT - COUNT ( * ) + - 85 - + ( - CAST ( NULL AS INTEGER ) ) - + MAX ( - col1 ) / MAX ( + col2 ) + AVG ( DISTINCT col2 + col2 ) FROM tab2 AS cor0
+----
+NULL
query I rowsort
SELECT - col0 + 78 FROM tab1 AS cor0
@@ -41123,10 +41129,13 @@ SELECT col1 * + 74 FROM tab0 AS cor0
5994
74
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-6778
SELECT ALL - CAST ( NULL AS FLOAT8 ) * + 92 * + + AVG ( DISTINCT + 47 ) FROM tab2 AS cor0
+----
+NULL
query I rowsort
SELECT col1 * - - col1 + + col2 AS col0 FROM tab0 AS cor0
@@ -55247,10 +55256,13 @@ SELECT - + 27 col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 90b76caf54a4e48ee4a9784f52997a6a
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-9090
SELECT 65 * + MIN ( DISTINCT + col2 ) / + + AVG ( DISTINCT - CAST ( NULL AS INTEGER ) ) - + 45 / + CAST ( NULL AS INTEGER ) / + SUM ( ALL + + col1 ) FROM tab0 AS cor0
+----
+NULL
query I rowsort label-9091
SELECT ALL + ( - SUM ( ALL + 7 ) ) FROM tab1 AS cor0
diff --git a/data/sqlite/random/aggregates/slt_good_55.slt b/data/sqlite/random/aggregates/slt_good_55.slt
index 04e6cdb..e83fb3f 100644
--- a/data/sqlite/random/aggregates/slt_good_55.slt
+++ b/data/sqlite/random/aggregates/slt_good_55.slt
@@ -10460,10 +10460,13 @@ SELECT DISTINCT COUNT ( * ) + 37 FROM tab0 AS cor0
----
40
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-1741
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) - - COUNT ( * ) * AVG ( DISTINCT col1 ) FROM tab2 cor0
+----
+NULL
query I rowsort label-1742
SELECT ALL ( + COUNT ( * ) ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
diff --git a/data/sqlite/random/aggregates/slt_good_56.slt b/data/sqlite/random/aggregates/slt_good_56.slt
index 122ca52..b65b5d2 100644
--- a/data/sqlite/random/aggregates/slt_good_56.slt
+++ b/data/sqlite/random/aggregates/slt_good_56.slt
@@ -30094,10 +30094,13 @@ SELECT ALL - SUM ( ALL - 40 ) AS col2 FROM tab2 AS cor0
----
120
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-4978
SELECT DISTINCT AVG ( DISTINCT + + 56 ) * CAST ( NULL AS INTEGER ) FROM tab2
+----
+NULL
query I rowsort label-4979
SELECT - + MIN ( + col0 ) + + MAX ( DISTINCT - - 73 ) FROM tab0 WHERE ( + col1 >= NULL )
diff --git a/data/sqlite/random/aggregates/slt_good_57.slt b/data/sqlite/random/aggregates/slt_good_57.slt
index 141ea47..f61fe45 100644
--- a/data/sqlite/random/aggregates/slt_good_57.slt
+++ b/data/sqlite/random/aggregates/slt_good_57.slt
@@ -55121,10 +55121,13 @@ SELECT ALL + - 25 / + 30 + + - col1 AS col1 FROM tab2 AS cor0
-67
-77
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-9090
SELECT ALL - CAST ( NULL AS INTEGER ) + - + AVG ( ALL + col2 ) + - AVG ( DISTINCT col0 ) FROM tab1 AS cor0
+----
+NULL
query I rowsort label-9091
SELECT - col2 / - + col0 AS col2 FROM tab2
diff --git a/data/sqlite/random/aggregates/slt_good_59.slt b/data/sqlite/random/aggregates/slt_good_59.slt
index c4f5564..81ae906 100644
--- a/data/sqlite/random/aggregates/slt_good_59.slt
+++ b/data/sqlite/random/aggregates/slt_good_59.slt
@@ -41184,10 +41184,13 @@ SELECT ALL col1 + - 76 FROM tab0 AS cor0
-75
5
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-6787
SELECT - - 9 * - COUNT ( ALL - + 83 ) * + 40 + - AVG ( DISTINCT + col0 ) + + - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
+----
+NULL
query I rowsort
SELECT DISTINCT + col1 FROM tab0 AS cor0 WHERE + col0 BETWEEN + - 56 AND col0
diff --git a/data/sqlite/random/aggregates/slt_good_60.slt b/data/sqlite/random/aggregates/slt_good_60.slt
index 030ae2c..d9faab6 100644
--- a/data/sqlite/random/aggregates/slt_good_60.slt
+++ b/data/sqlite/random/aggregates/slt_good_60.slt
@@ -4126,11 +4126,14 @@ SELECT DISTINCT - col0 * + 34 + col2 AS col1 FROM tab1
-2831
-3026
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-# Datafusion - Expected - -13
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]I
+# Datafusion - [Actual ] [R]I
+query RI rowsort label-675
SELECT DISTINCT AVG ( DISTINCT 31 ) + - + CAST ( NULL AS FLOAT8 ) AS col0, - COUNT ( * ) * 13 / COUNT ( * ) AS col1 FROM tab0
+----
+NULL
+-13
query I rowsort
SELECT ALL 13 * + col1 + 78 * + col1 FROM tab0
diff --git a/data/sqlite/random/aggregates/slt_good_61.slt b/data/sqlite/random/aggregates/slt_good_61.slt
index 1b732a2..a6fb06c 100644
--- a/data/sqlite/random/aggregates/slt_good_61.slt
+++ b/data/sqlite/random/aggregates/slt_good_61.slt
@@ -22744,10 +22744,13 @@ SELECT - - col2 + + + CAST ( col2 AS INTEGER ) AS col2 FROM tab1 AS cor0
136
192
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-3729
SELECT DISTINCT + ( + CAST ( NULL AS INTEGER ) ) + + SUM ( + + 42 ) + ( + AVG ( DISTINCT + + 73 ) ) FROM tab0 AS cor0
+----
+NULL
query I rowsort
SELECT DISTINCT 45 + 10 FROM tab2 AS cor0
@@ -24847,11 +24850,14 @@ query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col1 * - col1 IS NULL
----
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - 50
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] I[I]
+# Datafusion - [Actual ] I[R]
+query IR rowsort label-4083
SELECT DISTINCT 50, COUNT ( * ) * - + CAST ( NULL AS INTEGER ) - - + AVG ( DISTINCT - + col2 ) * - + CAST ( + COUNT ( * ) AS INTEGER ) col2 FROM tab1 AS cor0 WHERE NOT + 50 IS NULL
+----
+50
+NULL
query I rowsort label-4084
SELECT ALL - - COUNT ( * ) * - COUNT ( ALL + - col2 ) FROM tab1 cor0
diff --git a/data/sqlite/random/aggregates/slt_good_62.slt b/data/sqlite/random/aggregates/slt_good_62.slt
index 4f7158f..2f07282 100644
--- a/data/sqlite/random/aggregates/slt_good_62.slt
+++ b/data/sqlite/random/aggregates/slt_good_62.slt
@@ -30951,10 +30951,13 @@ SELECT * FROM tab0 AS cor0 WHERE - col1 * - - col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-5075
SELECT DISTINCT - + AVG ( DISTINCT - - col1 ) + + COUNT ( * ) * - CAST ( NULL AS FLOAT8 ) FROM tab0 cor0
+----
+NULL
query I rowsort
SELECT ALL + col1 + - 75 * col2 - - col0 + + 27 + - 52 * + 40 * 4 AS col2 FROM tab0 AS cor0
@@ -37569,10 +37572,13 @@ query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT - 61 * - 27 NOT BETWEEN - col2 AND + + col2
----
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-6162
SELECT ALL + CAST ( NULL AS INTEGER ) / + AVG ( DISTINCT - 29 ) AS col0 FROM tab1 WHERE ( - col0 * - col2 ) IS NOT NULL
+----
+NULL
query I rowsort
SELECT DISTINCT - col0 * - 54 - + 21 FROM tab2
@@ -48775,11 +48781,14 @@ SELECT 30 / - + 2 FROM tab1
-15
-15
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] I[I]
+# Datafusion - [Actual ] I[R]
+query IR rowsort label-8016
SELECT DISTINCT - + ( + CAST ( NULL AS INTEGER ) ), + ( + AVG ( DISTINCT - 79 ) ) + + + MAX ( ALL - CAST ( - col1 AS INTEGER ) ) - - CAST ( NULL AS INTEGER ) - 41 * - 77 FROM tab1 AS cor0
+----
+NULL
+NULL
query I rowsort label-8017
SELECT MIN ( ALL + 9 ) AS col0 FROM tab2 cor0
diff --git a/data/sqlite/random/aggregates/slt_good_63.slt b/data/sqlite/random/aggregates/slt_good_63.slt
index dcb12d3..a60ddfa 100644
--- a/data/sqlite/random/aggregates/slt_good_63.slt
+++ b/data/sqlite/random/aggregates/slt_good_63.slt
@@ -5428,10 +5428,13 @@ SELECT DISTINCT 42 + - col0 FROM tab0 AS cor0
-55
27
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-884
SELECT DISTINCT AVG ( DISTINCT - 67 ) * + 45 + CAST ( NULL AS INTEGER ) FROM tab0
+----
+NULL
query I rowsort
SELECT + col2 AS col0 FROM tab0 WHERE col0 NOT BETWEEN ( - ( + col2 ) ) AND + col0 + - col0
diff --git a/data/sqlite/random/aggregates/slt_good_64.slt b/data/sqlite/random/aggregates/slt_good_64.slt
index dd0d1a5..ebd00c9 100644
--- a/data/sqlite/random/aggregates/slt_good_64.slt
+++ b/data/sqlite/random/aggregates/slt_good_64.slt
@@ -48800,10 +48800,10 @@ SELECT + 60 * + - ( 84 ) + col2 + - col1 - col1 + - col0 + col0 + + col1 * - 57
-29301
-45721
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+query I rowsort label-8027
SELECT ( CAST ( NULL AS INTEGER ) ) * + + 72 * + COUNT ( * ) + + CAST ( AVG ( DISTINCT + 74 ) AS INTEGER ) AS col1 FROM tab0
+----
+NULL
# Datafusion - Datafusion expected results:
# Datafusion - Expected - -10
diff --git a/data/sqlite/random/aggregates/slt_good_65.slt b/data/sqlite/random/aggregates/slt_good_65.slt
index dcdc49e..e01ce63 100644
--- a/data/sqlite/random/aggregates/slt_good_65.slt
+++ b/data/sqlite/random/aggregates/slt_good_65.slt
@@ -5283,9 +5283,9 @@ query III rowsort
SELECT * FROM tab2 WHERE NOT ( NULL ) > + 18
----
-# Datafusion - Datafusion expected results:
-query error DataFusion error: Arrow error: Divide by zero error
+query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT BETWEEN ( 31 / ( + col1 / + 0 ) ) AND NULL
+----
query I rowsort label-876
SELECT ALL + CAST ( col2 AS INTEGER ) * - col2 col1 FROM tab0 WHERE ( - col1 ) >= - ( col2 ) * + col1
@@ -48383,10 +48383,13 @@ SELECT DISTINCT + ( MIN ( 31 ) ) AS col2 FROM tab1
----
31
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-8056
SELECT ALL - ( + - AVG ( DISTINCT + col0 ) ) + - - CAST ( NULL AS INTEGER ) + + COUNT ( - ( + + 96 ) ) + - + COUNT ( * ) * + COUNT ( * ) FROM tab2
+----
+NULL
query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT IN ( 36, col0 * + col0 + - ( - col2 ), - col1, - - 4 )
diff --git a/data/sqlite/random/aggregates/slt_good_66.slt b/data/sqlite/random/aggregates/slt_good_66.slt
index 4ac96b5..c45952f 100644
--- a/data/sqlite/random/aggregates/slt_good_66.slt
+++ b/data/sqlite/random/aggregates/slt_good_66.slt
@@ -8628,10 +8628,13 @@ SELECT - - 34 * COUNT ( * ) - SUM ( DISTINCT col0 ) FROM tab0 AS cor0
----
-97
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-1412
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - AVG ( DISTINCT + 96 ) col1 FROM tab2
+----
+NULL
query I rowsort label-1413
SELECT COUNT ( * ) * - + 96 AS col2 FROM tab1
diff --git a/data/sqlite/random/aggregates/slt_good_68.slt b/data/sqlite/random/aggregates/slt_good_68.slt
index c6b1a79..740a5a8 100644
--- a/data/sqlite/random/aggregates/slt_good_68.slt
+++ b/data/sqlite/random/aggregates/slt_good_68.slt
@@ -57341,10 +57341,13 @@ query III rowsort
SELECT * FROM tab0 cor0 WHERE NULL >= + 41
----
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-9453
SELECT + CAST ( + - 15 AS INTEGER ) / - AVG ( DISTINCT - 73 ) * + CAST ( NULL AS INTEGER ) - - + 87 FROM tab1 AS cor0
+----
+NULL
query I rowsort
SELECT DISTINCT - 53 - col1 AS col2 FROM tab2 WHERE NOT + col2 IS NOT NULL
diff --git a/data/sqlite/random/aggregates/slt_good_69.slt b/data/sqlite/random/aggregates/slt_good_69.slt
index 99d196a..2945969 100644
--- a/data/sqlite/random/aggregates/slt_good_69.slt
+++ b/data/sqlite/random/aggregates/slt_good_69.slt
@@ -57950,10 +57950,13 @@ query I rowsort
SELECT + + col1 AS col1 FROM tab1 AS cor0 WHERE - col2 = NULL
----
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-9572
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - CAST ( - + MIN ( ALL + - 33 ) AS INTEGER ) * + - AVG ( DISTINCT - 12 ) col1 FROM tab1
+----
+NULL
query I rowsort label-9573
SELECT ALL + COUNT ( * ) + + MAX ( + 6 ) FROM tab1
diff --git a/data/sqlite/random/aggregates/slt_good_7.slt b/data/sqlite/random/aggregates/slt_good_7.slt
index 74aa896..c947675 100644
--- a/data/sqlite/random/aggregates/slt_good_7.slt
+++ b/data/sqlite/random/aggregates/slt_good_7.slt
@@ -48188,9 +48188,9 @@ SELECT ALL - col1 + ( 51 ) * + col2 FROM tab1
3421
4882
-# Datafusion - Datafusion expected results:
-query error DataFusion error: Arrow error: Divide by zero error
+query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col2 / - 0 < ( NULL )
+----
query I rowsort label-7891
SELECT DISTINCT COUNT ( - 24 ) * COUNT ( * ) col2 FROM tab0
diff --git a/data/sqlite/random/aggregates/slt_good_70.slt b/data/sqlite/random/aggregates/slt_good_70.slt
index f08b19b..2d1e59a 100644
--- a/data/sqlite/random/aggregates/slt_good_70.slt
+++ b/data/sqlite/random/aggregates/slt_good_70.slt
@@ -5272,11 +5272,9 @@ query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) NOT IN ( - 76, col0 )
----
-# Postgresql - Postgres error: db error: ERROR: division by zero
-# Datafusion - Datafusion expected results:
-skipif postgres
-query error DataFusion error: Arrow error: Divide by zero error
+query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT ( NULL ) BETWEEN ( 25 * 22 / ( + - 0 ) + 46 ) AND col0 + col2
+----
query I rowsort label-859
SELECT - 59 + - 85 * + COUNT ( * ) AS col0 FROM tab1 AS cor0
@@ -22412,9 +22410,9 @@ SELECT 80 * + col1 FROM tab0 AS cor0
6480
80
-# Datafusion - Datafusion expected results:
-query error DataFusion error: Arrow error: Divide by zero error
+query I rowsort label-3693
SELECT col0 * + col0 FROM tab0 WHERE NOT ( 7 ) / CAST ( col0 - col0 AS INTEGER ) + - col1 >= ( NULL )
+----
query III rowsort
SELECT * FROM tab0 WHERE NOT ( + ( col0 ) + col1 ) <> + col1
@@ -42210,10 +42208,13 @@ SELECT ALL - 8 AS col0, 98 + - col0 + - - col1 + + - col2 * + col1 * col1 FROM t
-8
-97
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-6967
SELECT DISTINCT - - COUNT ( * ) * + - 31 - + AVG ( DISTINCT + col0 ) / - + COUNT ( * ) * AVG ( DISTINCT 37 ) + - ( 28 + + ( + ( - CAST ( NULL AS INTEGER ) ) ) ) FROM tab1 AS cor0
+----
+NULL
query I rowsort
SELECT 65 FROM tab2 AS cor0 WHERE + col2 + 45 IS NOT NULL
diff --git a/data/sqlite/random/aggregates/slt_good_71.slt b/data/sqlite/random/aggregates/slt_good_71.slt
index 8246f7e..9f0e3a4 100644
--- a/data/sqlite/random/aggregates/slt_good_71.slt
+++ b/data/sqlite/random/aggregates/slt_good_71.slt
@@ -20593,10 +20593,13 @@ SELECT ALL - ( + - 99 ) / col2 * + col1 AS col1 FROM tab2
204
67
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-3400
SELECT + 46 + + - ( + ( + - AVG ( DISTINCT + + 99 ) ) ) * 81 + + + CAST ( NULL AS FLOAT8 ) AS col1 FROM tab1
+----
+NULL
# Datafusion - Types were automatically converted from:
# Datafusion - [Expected] [I]
diff --git a/data/sqlite/random/aggregates/slt_good_72.slt b/data/sqlite/random/aggregates/slt_good_72.slt
index 2b7488c..ed83c4a 100644
--- a/data/sqlite/random/aggregates/slt_good_72.slt
+++ b/data/sqlite/random/aggregates/slt_good_72.slt
@@ -1719,11 +1719,9 @@ query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col1 * + 10 + + + col0 IS NULL
----
-# Postgresql - Postgres error: db error: ERROR: division by zero
-# Datafusion - Datafusion expected results:
-skipif postgres
-query error DataFusion error: Arrow error: Divide by zero error
+query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NOT - 4 / + + 0 > NULL )
+----
query I rowsort
SELECT ALL 87 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
@@ -1826,11 +1824,9 @@ SELECT COUNT ( - 93 ) + + 27 FROM tab2
----
30
-# Postgresql - Postgres error: db error: ERROR: division by zero
-# Datafusion - Datafusion expected results:
-skipif postgres
-query error DataFusion error: Arrow error: Divide by zero error
+query I rowsort
SELECT DISTINCT + + col0 * + + col1 / + + 66 FROM tab0 WHERE NULL = + col0 + - 85 / 0
+----
query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NOT - col2 + + 88 IS NULL )
@@ -4314,10 +4310,13 @@ SELECT 66 * + + col0 AS col1 FROM tab0
6402
990
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-714
SELECT ALL CAST ( NULL AS INTEGER ) + - + COUNT ( * ) + - COUNT ( * ) + AVG ( DISTINCT + col0 ) FROM tab1
+----
+NULL
query I rowsort
SELECT - 35 * + col1 AS col0 FROM tab0
@@ -4855,10 +4854,13 @@ SELECT DISTINCT col0 * - col2 * - col1 FROM tab0
57105
9603
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-804
SELECT ALL - CAST ( NULL AS INTEGER ) + + + AVG ( DISTINCT - 30 ) AS col0 FROM tab1
+----
+NULL
# Datafusion - Types were automatically converted from:
# Datafusion - [Expected] [I]
@@ -6904,10 +6906,13 @@ SELECT ALL + - COUNT ( * ) * COUNT ( * ) FROM tab2 AS cor0
----
-9
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-1151
SELECT DISTINCT - MAX ( - col2 ) + + AVG ( DISTINCT 11 ) + + 31 * CAST ( NULL AS INTEGER ) AS col2 FROM tab2
+----
+NULL
query I rowsort
SELECT col1 * + 44 + col0 FROM tab0
@@ -59858,10 +59863,13 @@ query II rowsort label-9903
SELECT ALL + col0 col1, 25 AS col0 FROM tab1 AS cor0 WHERE + col2 + CAST ( + 96 AS INTEGER ) * col2 IS NULL
----
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-9904
SELECT - CAST ( NULL AS INTEGER ) / + + AVG ( DISTINCT - 25 ) AS col1 FROM tab2
+----
+NULL
query II rowsort label-9905
SELECT COUNT ( * ) * - 14 col2, - COUNT ( - + 94 ) + + 46 FROM tab1
diff --git a/data/sqlite/random/aggregates/slt_good_73.slt b/data/sqlite/random/aggregates/slt_good_73.slt
index 76f3f31..fbbb9c7 100644
--- a/data/sqlite/random/aggregates/slt_good_73.slt
+++ b/data/sqlite/random/aggregates/slt_good_73.slt
@@ -1798,9 +1798,9 @@ SELECT - col1 + + - col1 + + 36 * + col0 AS col1 FROM tab2 AS cor0
2150
2566
-# Datafusion - Datafusion expected results:
-query error DataFusion error: Arrow error: Divide by zero error
+query III rowsort label-297
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL <= - CAST ( + col2 AS INTEGER ) / 0
+----
query I rowsort label-298
SELECT - SUM ( + ( - ( col1 ) ) ) FROM tab1 AS cor0
@@ -8955,10 +8955,13 @@ SELECT DISTINCT - - col2 * col2 + + - CAST ( NULL AS INTEGER ) - col2 + + - 64 +
----
NULL
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-1481
SELECT ALL CAST ( NULL AS INTEGER ) + - + COUNT ( * ) + - AVG ( DISTINCT + col1 ) * + COUNT ( * ) FROM tab1 cor0 WHERE NULL IS NOT NULL
+----
+NULL
# Datafusion - Datafusion expected results:
# Datafusion - Expected - -902
@@ -51278,11 +51281,14 @@ SELECT ALL - col1 * 5 * + col0 * + col2 AS col0 FROM tab1
-1454180
-342720
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - 3
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] I[I]
+# Datafusion - [Actual ] I[R]
+query IR rowsort label-8466
SELECT DISTINCT + COUNT ( * ) AS col0, - CAST ( NULL AS INTEGER ) + - SUM ( 4 ) + AVG ( DISTINCT + - col0 ) FROM tab2
+----
+3
+NULL
query II rowsort
SELECT ALL col1 AS col1, col1 col2 FROM tab2
diff --git a/data/sqlite/random/aggregates/slt_good_74.slt b/data/sqlite/random/aggregates/slt_good_74.slt
index cc84bb3..179b171 100644
--- a/data/sqlite/random/aggregates/slt_good_74.slt
+++ b/data/sqlite/random/aggregates/slt_good_74.slt
@@ -3523,10 +3523,13 @@ SELECT COUNT ( * ) + - 63 AS col2 FROM tab1
----
-60
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-580
SELECT + CAST ( NULL AS INTEGER ) + - AVG ( DISTINCT + 80 ) AS col0 FROM tab1 AS cor0
+----
+NULL
query III rowsort
SELECT * FROM tab2 cor0 WHERE - 58 >= NULL
@@ -39408,10 +39411,13 @@ SELECT DISTINCT - 5 FROM tab1 WHERE NOT ( NOT + col0 * + col1 IS NOT NULL )
----
-5
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-6571
SELECT ALL - 17 / CAST ( NULL AS INTEGER ) * + AVG ( DISTINCT + 60 ) FROM tab1
+----
+NULL
query I rowsort label-6572
SELECT COUNT ( * ) + + - COUNT ( * ) AS col0 FROM tab2 AS cor0
diff --git a/data/sqlite/random/aggregates/slt_good_75.slt b/data/sqlite/random/aggregates/slt_good_75.slt
index 4c51266..88a4d19 100644
--- a/data/sqlite/random/aggregates/slt_good_75.slt
+++ b/data/sqlite/random/aggregates/slt_good_75.slt
@@ -20960,10 +20960,13 @@ SELECT - 8 * - 43 AS col0 FROM tab0
344
344
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-3496
SELECT + CAST ( NULL AS INTEGER ) * - + COUNT ( * ) - - + COUNT ( * ) - + + 82 - - - 15 * - CAST ( 12 AS INTEGER ) * - AVG ( DISTINCT - col2 ) FROM tab0
+----
+NULL
query I rowsort
SELECT + col1 + - 66 FROM tab1 AS cor0
@@ -28415,10 +28418,13 @@ query I rowsort
SELECT - 40 + - col1 + + 12 AS col1 FROM tab1 AS cor0 WHERE NOT + col1 - - 17 IS NOT NULL
----
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-4732
SELECT + + AVG ( DISTINCT - ( 42 ) ) * - ( - CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1 AS cor0
+----
+NULL
query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 84 + - col1 = NULL
diff --git a/data/sqlite/random/aggregates/slt_good_77.slt b/data/sqlite/random/aggregates/slt_good_77.slt
index 691d018..aebb7c5 100644
--- a/data/sqlite/random/aggregates/slt_good_77.slt
+++ b/data/sqlite/random/aggregates/slt_good_77.slt
@@ -17104,10 +17104,13 @@ SELECT - COUNT ( * ) * COUNT ( * ) col0 FROM tab2
----
-9
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-2820
SELECT + CAST ( NULL AS INTEGER ) * + AVG ( DISTINCT + 26 ) AS col0 FROM tab0
+----
+NULL
query I rowsort label-2821
SELECT DISTINCT - COUNT ( - 21 ) AS col1 FROM tab2
diff --git a/data/sqlite/random/aggregates/slt_good_78.slt b/data/sqlite/random/aggregates/slt_good_78.slt
index d8b60aa..ac0bd79 100644
--- a/data/sqlite/random/aggregates/slt_good_78.slt
+++ b/data/sqlite/random/aggregates/slt_good_78.slt
@@ -28134,10 +28134,13 @@ SELECT ALL * FROM tab2 AS cor0 WHERE 19 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-4663
SELECT AVG ( DISTINCT - - col1 ) + CAST ( NULL AS FLOAT8 ) FROM tab1 AS cor0 WHERE NOT NULL IS NULL
+----
+NULL
query II rowsort
SELECT ALL + col2 AS col0, + ( + 96 ) FROM tab1
@@ -51405,10 +51408,13 @@ query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 * - 84 * + 49 BETWEEN - col1 AND + col1
----
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-8484
SELECT DISTINCT + + AVG ( DISTINCT - - col0 ) - + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
+----
+NULL
query I rowsort label-8485
SELECT - MIN ( ALL + CAST ( 22 AS INTEGER ) ) + COUNT ( * ) FROM tab2 AS cor0
diff --git a/data/sqlite/random/aggregates/slt_good_79.slt b/data/sqlite/random/aggregates/slt_good_79.slt
index ab93a00..e28f70b 100644
--- a/data/sqlite/random/aggregates/slt_good_79.slt
+++ b/data/sqlite/random/aggregates/slt_good_79.slt
@@ -57881,9 +57881,9 @@ SELECT + col2 AS col2, col1 AS col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- sum\(Int64\(\-97\)\)\) AS col2" at position 0 and "Int64\(\-73\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\.
SELECT - SUM ( - 97 ) AS col2, - 73 + - COUNT ( * ) + + COUNT ( * ) AS col2 FROM tab2 AS cor0
-# Datafusion - Datafusion expected results:
-query error DataFusion error: Arrow error: Divide by zero error
+query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col0 / + 28 / - 0 <> NULL
+----
query I rowsort label-9535
SELECT ALL - CAST ( + - col1 AS INTEGER ) AS col2 FROM tab2 AS cor0
diff --git a/data/sqlite/random/aggregates/slt_good_80.slt b/data/sqlite/random/aggregates/slt_good_80.slt
index bb37f12..2800b85 100644
--- a/data/sqlite/random/aggregates/slt_good_80.slt
+++ b/data/sqlite/random/aggregates/slt_good_80.slt
@@ -113,10 +113,13 @@ SELECT DISTINCT - col0 - + - col2 FROM tab2
-23
-24
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-12
SELECT ALL - CAST ( NULL AS FLOAT8 ) * - 59 * 55 / CAST ( + 3 AS INTEGER ) - + AVG ( DISTINCT + 5 ) AS col0 FROM tab1
+----
+NULL
query I rowsort label-13
SELECT DISTINCT - ( 88 ) + + COUNT ( * ) FROM tab2
@@ -56650,10 +56653,13 @@ SELECT 8 + + ( - col2 ) FROM tab0
-39
-91
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-9349
SELECT - COUNT ( * ) + - 25 * - 55 - CAST ( NULL AS FLOAT8 ) + + COUNT ( * ) * - AVG ( DISTINCT - + col1 ) FROM tab2
+----
+NULL
query I rowsort
SELECT DISTINCT + 17 * - + 50 FROM tab0
diff --git a/data/sqlite/random/aggregates/slt_good_81.slt b/data/sqlite/random/aggregates/slt_good_81.slt
index cbb6f75..6dcfe09 100644
--- a/data/sqlite/random/aggregates/slt_good_81.slt
+++ b/data/sqlite/random/aggregates/slt_good_81.slt
@@ -352,9 +352,9 @@ SELECT DISTINCT + - col1 * col0 * + 87 + - col2 + 74 AS col2 FROM tab1 AS cor0
-372093
-62140
-# Datafusion - Datafusion expected results:
-query error DataFusion error: Arrow error: Divide by zero error
+query II rowsort
SELECT ALL + 33 * col0 AS col2, col2 + - col1 * - 61 + col0 FROM tab0 AS cor0 WHERE NOT NULL <= - col0 / 0 * + col1
+----
query I rowsort label-53
SELECT - COUNT ( DISTINCT + - col0 ) * - + 11 FROM tab2 WHERE + col1 BETWEEN - - col1 AND col1
@@ -7365,10 +7365,13 @@ query III rowsort label-1208
SELECT * FROM tab2 WHERE NOT NULL NOT IN ( + col0, col0, + col2, - col2 + - - CAST ( NULL AS INTEGER ) / - col2, - 88 / + col2 )
----
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-1209
SELECT + CAST ( NULL AS INTEGER ) * + AVG ( DISTINCT + 67 ) FROM tab0 AS cor0
+----
+NULL
query III rowsort
SELECT ALL * FROM tab2 WHERE - col2 + - ( - col1 ) * + col1 IS NULL
@@ -27476,9 +27479,9 @@ query I rowsort
SELECT DISTINCT 22 AS col1 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
-# Datafusion - Datafusion expected results:
-query error DataFusion error: Arrow error: Divide by zero error
+query I rowsort label-4531
SELECT - col2 * col1 AS col1 FROM tab0 WHERE col2 / - CAST ( col1 / 58 AS INTEGER ) > NULL
+----
query I rowsort label-4532
SELECT COUNT ( * ) + 97 AS col2 FROM tab2
@@ -42421,10 +42424,13 @@ SELECT ALL - COUNT ( + - 70 ) FROM tab0
----
-3
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-7004
SELECT DISTINCT - AVG ( DISTINCT - col0 ) + - COUNT ( * ) + + CAST ( NULL AS FLOAT8 ) + + - COUNT ( + col1 ) FROM tab2
+----
+NULL
query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 99 / + col2 - - + 34 BETWEEN - + 41 * - 77 AND NULL
@@ -57308,10 +57314,13 @@ NULL
NULL
NULL
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-9486
SELECT ALL + CAST ( NULL AS INTEGER ) * + AVG ( DISTINCT + - CAST ( NULL AS FLOAT8 ) ) * + + COUNT ( * ) AS col1 FROM tab0 AS cor0
+----
+NULL
query I rowsort
SELECT DISTINCT + col2 * 92 + 13 AS col1 FROM tab0 AS cor0
diff --git a/data/sqlite/random/aggregates/slt_good_83.slt b/data/sqlite/random/aggregates/slt_good_83.slt
index 39afc92..e5a47bf 100644
--- a/data/sqlite/random/aggregates/slt_good_83.slt
+++ b/data/sqlite/random/aggregates/slt_good_83.slt
@@ -54158,10 +54158,13 @@ query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col1 * 89 + - + col0 NOT BETWEEN + col1 AND NULL
----
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-8898
SELECT ALL AVG ( DISTINCT 84 ) + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
+----
+NULL
query I rowsort label-8899
SELECT - + SUM ( DISTINCT 17 ) FROM tab1 AS cor0
diff --git a/data/sqlite/random/aggregates/slt_good_85.slt b/data/sqlite/random/aggregates/slt_good_85.slt
index e786b2b..4c2994c 100644
--- a/data/sqlite/random/aggregates/slt_good_85.slt
+++ b/data/sqlite/random/aggregates/slt_good_85.slt
@@ -5287,10 +5287,13 @@ SELECT ALL COUNT ( * ) + + 55, + 94 col0 FROM tab0
58
94
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-863
SELECT DISTINCT - ( + COUNT ( * ) ) * + AVG ( DISTINCT col0 ) + + + ( - + CAST ( NULL AS INTEGER ) ) + - 68 - - 76 AS col2 FROM tab0
+----
+NULL
query I rowsort
SELECT 59 + col0 * - + col2 FROM tab0
@@ -37033,10 +37036,13 @@ SELECT ALL COUNT ( * ) * + + 30 FROM tab1 AS cor0
----
90
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-6157
SELECT - CAST ( NULL AS FLOAT8 ) * + AVG ( DISTINCT - - col1 ) AS col1 FROM tab1 AS cor0
+----
+NULL
query I rowsort label-6158
SELECT DISTINCT - col0 / + 19 AS col1 FROM tab0 cor0
diff --git a/data/sqlite/random/aggregates/slt_good_86.slt b/data/sqlite/random/aggregates/slt_good_86.slt
index 6079443..33c81b6 100644
--- a/data/sqlite/random/aggregates/slt_good_86.slt
+++ b/data/sqlite/random/aggregates/slt_good_86.slt
@@ -27954,10 +27954,13 @@ SELECT ALL - + col0 * ( - + col2 ) / col1 + col0 * 94 AS col1 FROM tab0 AS cor0
18721
8219
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-4627
SELECT DISTINCT + + AVG ( DISTINCT - - col0 ) + - - AVG ( + 64 ) - - COUNT ( * ) * + + ( + CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0 WHERE NOT 13 NOT BETWEEN - col2 * 1 AND + - 10
+----
+NULL
query I rowsort
SELECT ALL col1 + + 80 col0 FROM tab1 AS cor0
diff --git a/data/sqlite/random/aggregates/slt_good_87.slt b/data/sqlite/random/aggregates/slt_good_87.slt
index d84b298..969642f 100644
--- a/data/sqlite/random/aggregates/slt_good_87.slt
+++ b/data/sqlite/random/aggregates/slt_good_87.slt
@@ -19673,10 +19673,13 @@ query III rowsort
SELECT * FROM tab1 WHERE NOT ( col0 ) >= NULL
----
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-3224
SELECT DISTINCT AVG ( DISTINCT + 97 ) * CAST ( NULL AS INTEGER ) AS col2 FROM tab0
+----
+NULL
query I rowsort
SELECT - col0 * + ( + col1 ) AS col2 FROM tab2
@@ -24051,10 +24054,13 @@ SELECT ALL 93 / - - COUNT ( * ) AS col2 FROM tab0, tab1 AS cor0
----
10
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-3940
SELECT CAST ( NULL AS INTEGER ) / AVG ( DISTINCT - - col2 ) FROM tab0
+----
+NULL
query I rowsort label-3941
SELECT - SUM ( DISTINCT - 49 ) AS col0 FROM tab1
diff --git a/data/sqlite/random/aggregates/slt_good_88.slt b/data/sqlite/random/aggregates/slt_good_88.slt
index 2726458..42507e0 100644
--- a/data/sqlite/random/aggregates/slt_good_88.slt
+++ b/data/sqlite/random/aggregates/slt_good_88.slt
@@ -44386,10 +44386,13 @@ SELECT 98 FROM tab2 AS cor0 WHERE col2 IS NOT NULL
98
98
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-7303
SELECT ALL COUNT ( DISTINCT + - 32 ) - + - ( - CAST ( NULL AS INTEGER ) ) + - AVG ( DISTINCT + - col0 ) - - COUNT ( CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
+----
+NULL
query I rowsort label-7304
SELECT + SUM ( ALL + + col0 ) FROM tab1 AS cor0
diff --git a/data/sqlite/random/aggregates/slt_good_89.slt b/data/sqlite/random/aggregates/slt_good_89.slt
index f594d6b..87c2318 100644
--- a/data/sqlite/random/aggregates/slt_good_89.slt
+++ b/data/sqlite/random/aggregates/slt_good_89.slt
@@ -31550,10 +31550,13 @@ query III rowsort
SELECT * FROM tab0 cor0 WHERE 98 IS NULL
----
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-5145
SELECT - + COUNT ( * ) * + AVG ( DISTINCT + col2 ) - + - CAST ( NULL AS FLOAT8 ) AS col2 FROM tab2 AS cor0
+----
+NULL
query I rowsort
SELECT + 0 * - col1 FROM tab2 AS cor0
@@ -38102,9 +38105,9 @@ SELECT DISTINCT - MAX ( 88 ) AS col1 FROM tab2
----
-88
-# Datafusion - Datafusion expected results:
-query error DataFusion error: Arrow error: Divide by zero error
+query III rowsort
SELECT ALL * FROM tab1 WHERE NULL BETWEEN - ( - col0 ) / - 0 + col1 AND NULL
+----
query I rowsort label-6236
SELECT ALL + COUNT ( * ) * - 11 FROM tab0
diff --git a/data/sqlite/random/aggregates/slt_good_90.slt b/data/sqlite/random/aggregates/slt_good_90.slt
index 64f84db..fbdc8c5 100644
--- a/data/sqlite/random/aggregates/slt_good_90.slt
+++ b/data/sqlite/random/aggregates/slt_good_90.slt
@@ -15039,10 +15039,13 @@ query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col2 IS NULL AND NULL BETWEEN - col0 AND - col2
----
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-2473
SELECT - - 49 * - COUNT ( * ) * + - COUNT ( + - col2 ) - - CAST ( NULL AS INTEGER ) * + + COUNT ( * ) + - AVG ( DISTINCT - col2 ) / - COUNT ( * ) AS col1 FROM tab0 cor0
+----
+NULL
query I rowsort
SELECT ALL - + col2 + 9 AS col2 FROM tab1 AS cor0
diff --git a/data/sqlite/random/aggregates/slt_good_91.slt b/data/sqlite/random/aggregates/slt_good_91.slt
index 089f6ab..35fd234 100644
--- a/data/sqlite/random/aggregates/slt_good_91.slt
+++ b/data/sqlite/random/aggregates/slt_good_91.slt
@@ -29151,9 +29151,9 @@ SELECT + MIN ( - col0 ) + MIN ( - col0 ) col0 FROM tab1
----
-182
-# Datafusion - Datafusion expected results:
-query error DataFusion error: Arrow error: Divide by zero error
+query I rowsort label-4783
SELECT ALL col0 * CAST ( NULL AS INTEGER ) / + col2 col1 FROM tab0 WHERE NULL NOT BETWEEN + + 29 AND col0 / - + 0 * 31
+----
query I rowsort label-4784
SELECT col2 / 34 * - - 95 / + col0 + - - col2 * col2 * - col2 + - col1 FROM tab2
diff --git a/data/sqlite/random/aggregates/slt_good_92.slt b/data/sqlite/random/aggregates/slt_good_92.slt
index 578fff1..25224c5 100644
--- a/data/sqlite/random/aggregates/slt_good_92.slt
+++ b/data/sqlite/random/aggregates/slt_good_92.slt
@@ -10403,11 +10403,14 @@ SELECT + col0 * + col2 * col2 col1 FROM tab0 AS cor0
8700
950697
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - 53
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] I[I]
+# Datafusion - [Actual ] I[R]
+query IR rowsort label-1713
SELECT ALL + 53 AS col1, COUNT ( * ) / - ( - AVG ( DISTINCT CAST ( col1 AS INTEGER ) ) ) * + 71 / - 28 - + CAST ( NULL AS INTEGER ) - - 55 + - MAX ( + col1 ) FROM tab0 AS cor0
+----
+53
+NULL
# Datafusion - Types were automatically converted from:
# Datafusion - [Expected] [I]
@@ -14445,10 +14448,13 @@ SELECT DISTINCT + COUNT ( * ) * 99 - CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-2374
SELECT DISTINCT AVG ( DISTINCT - 94 ) / - + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
+----
+NULL
query I rowsort label-2375
SELECT ALL + + ( - 74 ) / col0 - - col0 FROM tab2 AS cor0
@@ -22115,10 +22121,13 @@ SELECT DISTINCT + - col1 + + ( col1 ) col1 FROM tab0 AS cor0
----
0
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-3625
SELECT + COUNT ( * ) - CAST ( NULL AS FLOAT8 ) + - COUNT ( * ) * - CAST ( - AVG ( DISTINCT CAST ( NULL AS INTEGER ) ) AS INTEGER ) AS col0 FROM tab0 AS cor0
+----
+NULL
query I rowsort
SELECT DISTINCT + + ( - + col0 ) FROM tab2 AS cor0
@@ -41931,10 +41940,13 @@ NULL
NULL
NULL
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-6869
SELECT AVG ( DISTINCT 45 ) / + + ( - CAST ( NULL AS INTEGER ) ) FROM tab0
+----
+NULL
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( NOT ( NULL IS NOT NULL ) )
diff --git a/data/sqlite/random/aggregates/slt_good_93.slt b/data/sqlite/random/aggregates/slt_good_93.slt
index a7a703e..96d54e7 100644
--- a/data/sqlite/random/aggregates/slt_good_93.slt
+++ b/data/sqlite/random/aggregates/slt_good_93.slt
@@ -20848,10 +20848,13 @@ SELECT ALL - MAX ( ALL - col1 ) col1 FROM tab1 AS cor0
----
5
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-3434
SELECT AVG ( DISTINCT 90 ) + - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
+----
+NULL
query I rowsort
SELECT - col0 + - - col1 AS col1 FROM tab2 AS cor0
@@ -26995,11 +26998,14 @@ query I rowsort label-4431
SELECT - col2 * + col0 * - - 14 AS col2 FROM tab0 AS cor0 WHERE ( NULL ) IN ( - - CAST ( NULL AS INTEGER ) * col2 / + col1 * - CAST ( NULL AS INTEGER ), - 50 )
----
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - 87
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] I[I]
+# Datafusion - [Actual ] I[R]
+query IR rowsort label-4432
SELECT ALL - + CAST ( - + 67 AS INTEGER ) + + + 20 AS col0, 19 * - CAST ( NULL AS INTEGER ) * - - AVG ( DISTINCT - 5 ) FROM tab1 AS cor0
+----
+87
+NULL
query I rowsort
SELECT DISTINCT + col1 + 21 FROM tab2 AS cor0
@@ -52558,11 +52564,9 @@ query III rowsort label-8633
SELECT ALL * FROM tab1 AS cor0 WHERE col0 * + ( CAST ( + 53 AS INTEGER ) ) < col1 * - - ( + col2 ) + + 26
----
-# Postgresql - Postgres error: db error: ERROR: division by zero
-# Datafusion - Datafusion expected results:
-skipif postgres
-query error DataFusion error: Arrow error: Divide by zero error
+query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN + 0 * col0 AND + ( 66 ) / + 0
+----
query I rowsort label-8635
SELECT + MAX ( ALL - col2 ) FROM tab0 AS cor0
diff --git a/data/sqlite/random/aggregates/slt_good_94.slt b/data/sqlite/random/aggregates/slt_good_94.slt
index ee3102a..bf201d6 100644
--- a/data/sqlite/random/aggregates/slt_good_94.slt
+++ b/data/sqlite/random/aggregates/slt_good_94.slt
@@ -4037,10 +4037,13 @@ SELECT - 4 * + ( - col1 ) * - 96 + 40 FROM tab1 cor0
-1880
-5336
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-663
SELECT ALL CAST ( NULL AS FLOAT8 ) + ( AVG ( DISTINCT 9 ) ) * + SUM ( ALL - col0 ) AS col2 FROM tab1 AS cor0 WHERE NOT col0 NOT IN ( - col2 * col1 )
+----
+NULL
query I rowsort label-664
SELECT + SUM ( DISTINCT - col2 ) AS col0 FROM tab1 AS cor0
@@ -23602,10 +23605,13 @@ query I rowsort
SELECT - col1 + - ( col2 ) FROM tab0 AS cor0 WHERE - 50 IS NULL
----
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-3867
SELECT DISTINCT + + AVG ( DISTINCT - 44 ) * CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
+----
+NULL
query I rowsort
SELECT DISTINCT + 53 - ( + - 50 ) + - 8 + col0 AS col2 FROM tab0 cor0
@@ -60445,10 +60451,13 @@ SELECT ALL + col1 / - col2 - col0 + + 21 * - 83 FROM tab0 cor0
-1832
-1840
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-9916
SELECT 9 * + CAST ( NULL AS FLOAT8 ) * + COUNT ( * ) - AVG ( DISTINCT 2 ) / - 5 FROM tab1 AS cor0
+----
+NULL
query I rowsort label-9917
SELECT - COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE ( col0 ) > - col0
diff --git a/data/sqlite/random/aggregates/slt_good_95.slt b/data/sqlite/random/aggregates/slt_good_95.slt
index 109195c..6bb84f7 100644
--- a/data/sqlite/random/aggregates/slt_good_95.slt
+++ b/data/sqlite/random/aggregates/slt_good_95.slt
@@ -8405,10 +8405,13 @@ SELECT - 12 + - col1 * - 39 + col0 FROM tab0 AS cor0
3162
894
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-1380
SELECT AVG ( DISTINCT 59 ) + ( + - CAST ( NULL AS FLOAT8 ) ) FROM tab2 AS cor0
+----
+NULL
query I rowsort label-1381
SELECT - MIN ( DISTINCT col0 ) AS col1 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
diff --git a/data/sqlite/random/aggregates/slt_good_96.slt b/data/sqlite/random/aggregates/slt_good_96.slt
index 31e8e1b..e649c80 100644
--- a/data/sqlite/random/aggregates/slt_good_96.slt
+++ b/data/sqlite/random/aggregates/slt_good_96.slt
@@ -9422,10 +9422,13 @@ query III rowsort
SELECT * FROM tab0 WHERE + - col1 / + 14 IS NULL
----
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-1550
SELECT DISTINCT - 90 - COUNT ( * ) + + ( + - CAST ( NULL AS FLOAT8 ) ) + - COUNT ( - - 7 ) * + + COUNT ( * ) + + 72 * AVG ( DISTINCT + col0 - - col2 / 39 ) FROM tab1
+----
+NULL
query I rowsort label-1551
SELECT + col1 / + 17 AS col0 FROM tab2
@@ -30791,10 +30794,13 @@ NULL
NULL
NULL
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-5091
SELECT + AVG ( DISTINCT + ( + col2 ) ) + + CAST ( NULL AS FLOAT8 ) + + MIN ( DISTINCT col1 ) / - - 33 AS col1 FROM tab2 AS cor0
+----
+NULL
query II rowsort
SELECT ALL - + 85 - col1, col2 AS col1 FROM tab2 cor0
@@ -60393,10 +60399,13 @@ SELECT - col1 + - + col2 + - col1 * col2 AS col0 FROM tab2
-3197
-4011
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-9989
SELECT ALL - COUNT ( * ) * - AVG ( DISTINCT - col0 ) * 53 + CAST ( NULL AS INTEGER ) FROM tab0
+----
+NULL
query I rowsort
SELECT DISTINCT - col1 FROM tab2 WHERE NOT 4 IS NOT NULL
diff --git a/data/sqlite/random/aggregates/slt_good_97.slt b/data/sqlite/random/aggregates/slt_good_97.slt
index 27c0332..ea483dc 100644
--- a/data/sqlite/random/aggregates/slt_good_97.slt
+++ b/data/sqlite/random/aggregates/slt_good_97.slt
@@ -2573,10 +2573,13 @@ SELECT DISTINCT 35 + + col0 - - + 25 / + col1 * col1 FROM tab2
81
99
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-413
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + AVG ( DISTINCT 77 ) AS col1 FROM tab1
+----
+NULL
query I rowsort
SELECT col0 + + - ( - - 76 ) AS col2 FROM tab0
@@ -27684,12 +27687,15 @@ SELECT ALL 98 * col2 AS col0 FROM tab1
6664
9408
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - -21
-# Datafusion - Expected - NULL
-# Datafusion - Expected - -3
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] I[I]I
+# Datafusion - [Actual ] I[R]I
+query IRI rowsort label-4523
SELECT ALL - 21 AS col0, CAST ( NULL AS FLOAT8 ) + AVG ( DISTINCT - col1 ), + - COUNT ( * ) AS col1 FROM tab0
+----
+-21
+NULL
+-3
query I rowsort
SELECT ALL + 58 * + 30 AS col2 FROM tab2
diff --git a/data/sqlite/random/aggregates/slt_good_98.slt b/data/sqlite/random/aggregates/slt_good_98.slt
index b701f1d..5d6a040 100644
--- a/data/sqlite/random/aggregates/slt_good_98.slt
+++ b/data/sqlite/random/aggregates/slt_good_98.slt
@@ -338,10 +338,13 @@ SELECT DISTINCT + + col0 * CAST ( - + col1 AS INTEGER ), + col0 FROM tab0 AS cor
-97
97
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-47
SELECT CAST ( NULL AS INTEGER ) * + - AVG ( DISTINCT - + 86 ) AS col1 FROM tab0
+----
+NULL
query I rowsort label-48
SELECT ALL - 55 / + col0 FROM tab0
@@ -11048,10 +11051,13 @@ SELECT 36, COUNT ( * ) AS col2 FROM tab1 AS cor0
36
3
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-1819
SELECT AVG ( DISTINCT 59 ) * + - CAST ( NULL AS INTEGER ) AS col0 FROM tab1
+----
+NULL
query I rowsort
SELECT 45 * - + col2 * + col0 AS col2 FROM tab2
@@ -26765,10 +26771,13 @@ SELECT - CAST ( + 17 AS INTEGER ) * + col1 AS col1 FROM tab1 AS cor0
-799
-85
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-4395
SELECT DISTINCT + ( + + AVG ( DISTINCT CAST ( NULL AS INTEGER ) ) ) * - 77 - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
+----
+NULL
query I rowsort
SELECT col2 - - 40 + + - 96 * - col1 AS col0 FROM tab0
@@ -51691,10 +51700,13 @@ query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE 44 IS NULL
----
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-8511
SELECT - AVG ( DISTINCT + + 94 ) + + 72 + - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
+----
+NULL
query I rowsort label-8512
SELECT ALL - + MIN ( DISTINCT - - 65 ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
diff --git a/data/sqlite/random/aggregates/slt_good_99.slt b/data/sqlite/random/aggregates/slt_good_99.slt
index e4221e4..e9d1bd0 100644
--- a/data/sqlite/random/aggregates/slt_good_99.slt
+++ b/data/sqlite/random/aggregates/slt_good_99.slt
@@ -2467,10 +2467,13 @@ SELECT + 97 * + - col0, - col0 + + - col0 + col2 AS col0 FROM tab2
-7275
-92
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-401
SELECT CAST ( NULL AS INTEGER ) * - AVG ( DISTINCT ( - - ( - 32 ) ) ) FROM tab1
+----
+NULL
query I rowsort
SELECT DISTINCT - 54 + + col2 FROM tab0
@@ -21424,11 +21427,9 @@ SELECT 57 + 86 / - 37 AS col0 FROM tab1 AS cor0
55
55
-# Postgresql - Postgres error: db error: ERROR: division by zero
-# Datafusion - Datafusion expected results:
-skipif postgres
-query error DataFusion error: Arrow error: Divide by zero error
+query I rowsort
SELECT col2 col2 FROM tab1 AS cor0 WHERE NULL < ( 38 ) / - 0
+----
query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( 4 IS NOT NULL )
diff --git a/data/sqlite/random/expr/slt_good_0.slt b/data/sqlite/random/expr/slt_good_0.slt
index 820da38..4b921b5 100644
--- a/data/sqlite/random/expr/slt_good_0.slt
+++ b/data/sqlite/random/expr/slt_good_0.slt
@@ -13743,11 +13743,14 @@ SELECT DISTINCT 77 + + 52 AS col2
----
129
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-# Datafusion - Expected - -9
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]I
+# Datafusion - [Actual ] [R]I
+query RI rowsort label-2629
SELECT - AVG ( DISTINCT - 67 ) * - 89 * - CAST ( - 84 AS INTEGER ) + NULLIF ( - CAST ( NULL AS INTEGER ), + - 96 ) / - 14 * - COUNT ( * ) * + + 45 AS col2, 9 * - + COUNT ( * )
+----
+NULL
+-9
query I rowsort label-2630
SELECT ( + 26 ) * + + COUNT ( * ) AS col1
@@ -16128,10 +16131,13 @@ SELECT ALL + 5 * ( 76 ) + + 61
----
441
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-3086
SELECT - CAST ( NULL AS FLOAT8 ) * AVG ( DISTINCT - 68 / 5 ) AS col2
+----
+NULL
query I rowsort
SELECT COALESCE ( 5, - 80 + 46 )
@@ -17580,10 +17586,13 @@ SELECT - COUNT ( * ) + - + 94 AS col0
----
-95
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-3367
SELECT ALL + 85 + + 96 + - - COUNT ( * ) - + - CASE 12 WHEN - 19 THEN - 39 + - - 21 * 2 WHEN - CAST ( NULL AS INTEGER ) - 77 THEN NULL ELSE NULL END + - COUNT ( * ) * + ( + AVG ( DISTINCT + ( - 97 ) ) + 62 )
+----
+NULL
query I rowsort label-3368
SELECT ( + 15 ) * - 90 - + COUNT ( * ) * - + 69 + 37 + - 47 AS col2
@@ -19965,10 +19974,13 @@ SELECT 55 + + 36
----
91
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort
SELECT DISTINCT 36 * - ( + 47 ) * ( + 10 ) * + 21 * 27 + CASE WHEN + 83 BETWEEN - - 43 AND NULL THEN + 15 * ( - 94 ) / + - 59 - + 45 END + 2 * - AVG ( DISTINCT 83 ) AS col0
+----
+NULL
query I rowsort
SELECT - 42 * + 98 + - 73 col1
@@ -21239,10 +21251,13 @@ SELECT ALL - + 31 col2
----
-31
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-4070
SELECT + CAST ( NULL AS INTEGER ) * + + 32 - - 43 + + - AVG ( DISTINCT - - 18 ) * - CASE WHEN NOT - 51 <= + 72 THEN + CASE - 91 WHEN + 67 THEN - 31 WHEN - COUNT ( * ) + - + 58 THEN NULL WHEN + 87 + 9 * - - 97 THEN NULL END END AS col1
+----
+NULL
query I rowsort
SELECT ALL - - ( + 80 ) + - 51 AS col0
@@ -22522,11 +22537,14 @@ SELECT + 26 * - 0
----
0
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - 0
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] I[I]
+# Datafusion - [Actual ] I[R]
+query IR rowsort label-4317
SELECT DISTINCT + 20 / + - 66 * + + 43 * - 27, 31 * - + AVG ( DISTINCT + 87 ) * COUNT ( + 50 ) * + CAST ( NULL AS INTEGER ) AS col2
+----
+0
+NULL
query II rowsort label-4318
SELECT ALL + SUM ( DISTINCT - 96 ) AS col2, - 33 * 23 * - 26 AS col0
@@ -27588,10 +27606,13 @@ SELECT CASE + COALESCE ( - 63, 95, 73 / ( + 41 ), + CAST ( - 32 AS FLOAT8 ) - +
----
NULL
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-5292
SELECT DISTINCT - 89 + + 52 * - AVG ( DISTINCT - + 4 ) * CAST ( NULL AS INTEGER ) - 32 / + + 68 * - ( 17 ) AS col2
+----
+NULL
query I rowsort
SELECT DISTINCT 80 + - + 75
@@ -28666,10 +28687,13 @@ SELECT + - 18 + 95 AS col0
----
77
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-5498
SELECT ALL + NULLIF ( - 76, + COUNT ( * ) ) * + AVG ( DISTINCT - 52 ) + - 84 * - + CAST ( NULL AS INTEGER ) * + 54 * 82
+----
+NULL
query I rowsort
SELECT - - 38 + 62
@@ -49133,10 +49157,13 @@ SELECT 93 * 25
----
2325
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-9422
SELECT ALL 92 / - 72 * - CAST ( NULL AS INTEGER ) * - 52 / - AVG ( DISTINCT + 9 )
+----
+NULL
query I rowsort
SELECT 12 - + 39 AS col2
diff --git a/data/sqlite/random/expr/slt_good_1.slt b/data/sqlite/random/expr/slt_good_1.slt
index eb5f7be..44d5452 100644
--- a/data/sqlite/random/expr/slt_good_1.slt
+++ b/data/sqlite/random/expr/slt_good_1.slt
@@ -13566,10 +13566,13 @@ SELECT DISTINCT CAST ( - COALESCE ( - 57, 73 ) AS INTEGER )
----
57
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-2658
SELECT + CAST ( NULL AS INTEGER ) - + AVG ( DISTINCT 60 )
+----
+NULL
query I rowsort
SELECT + ( - 7 )
@@ -14687,10 +14690,13 @@ SELECT + 66 col0
----
66
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-2879
SELECT CAST ( NULL AS INTEGER ) * + AVG ( DISTINCT 74 )
+----
+NULL
query I rowsort
SELECT ALL - 62
diff --git a/data/sqlite/random/expr/slt_good_10.slt b/data/sqlite/random/expr/slt_good_10.slt
index b205956..9b3332e 100644
--- a/data/sqlite/random/expr/slt_good_10.slt
+++ b/data/sqlite/random/expr/slt_good_10.slt
@@ -3114,10 +3114,13 @@ SELECT ALL - 18 + - 37
----
-55
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort
SELECT 43 - + + AVG ( DISTINCT 95 ) * + 30 + NULLIF ( - 80, + ( + - 80 ) ) AS col2
+----
+NULL
query I rowsort label-583
SELECT 52 * - COUNT ( DISTINCT - 52 ) AS col2
@@ -7131,10 +7134,13 @@ SELECT DISTINCT + 70 * 55 AS col1
----
3850
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-1352
SELECT MIN ( ALL 73 ) * - - CAST ( NULL AS INTEGER ) * + 92 + - - AVG ( DISTINCT + 38 ) / ( + COALESCE ( 48, + 60, - 97 - + + COUNT ( * ) ) ) AS col1
+----
+NULL
query I rowsort
SELECT + 63 * 0 AS col1
@@ -8187,10 +8193,13 @@ SELECT 4 + ( + 60 )
----
64
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-1551
SELECT CAST ( NULL AS INTEGER ) - - 0 + - 26 / + ( - + 95 ) + - AVG ( DISTINCT - + 56 ) * - 45 AS col0
+----
+NULL
query I rowsort label-1552
SELECT ALL 12 + + 51 + - + COUNT ( * ) * - 53 * + + 73 AS col1
@@ -9524,11 +9533,14 @@ SELECT DISTINCT ( CAST ( NULL AS INTEGER ) ) / - + 56 + + 61 AS col2
----
NULL
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-# Datafusion - Expected - -25
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]I
+# Datafusion - [Actual ] [R]I
+query RI rowsort label-1806
SELECT + COUNT ( * ) * - ( + 82 ) * - - AVG ( DISTINCT + 32 ) + CAST ( NULL AS INTEGER ) AS col0, ( - + 25 ) AS col1
+----
+NULL
+-25
query I rowsort label-1807
SELECT ALL CAST ( + - COALESCE ( - 31, + 4 + + ( - - COUNT ( * ) ) ) AS INTEGER ) + - 52 - - CAST ( + + 52 AS INTEGER )
@@ -13266,10 +13278,13 @@ SELECT 55 * 22 + 57 * - COUNT ( * )
----
1153
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-2518
SELECT ALL - 9 * + AVG ( DISTINCT 59 * 19 ) + CAST ( NULL AS INTEGER )
+----
+NULL
query I rowsort label-2519
SELECT ALL + 60 * 94 + + ( COUNT ( * ) )
@@ -26319,11 +26334,14 @@ SELECT ALL MIN ( ALL - 33 ) AS col1, COUNT ( - 85 )
-33
1
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - -3474
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] I[I]
+# Datafusion - [Actual ] I[R]
+query IR rowsort label-5010
SELECT + COALESCE ( - - 76, 75, + 31 ) * + ( - MAX ( 45 ) ) + - ( + NULLIF ( 54, - + 51 + + COUNT ( * ) ) ), - ( + - 60 ) * AVG ( DISTINCT - ( 37 ) ) * + 89 + + 85 * 32 - + 73 + + + 72 * + 88 + - CAST ( NULL AS INTEGER ) * + 98 * 90 AS col1
+----
+-3474
+NULL
query I rowsort label-5011
SELECT ( - NULLIF ( COUNT ( * ), - + 89 / - 40 ) ) + + - 3 + - - COUNT ( * ) * + NULLIF ( - - MAX ( 77 ), - 20 / + 83 ) AS col0
@@ -32936,10 +32954,13 @@ SELECT DISTINCT + ( - ( + 75 ) ) * + - 40 + - 37 + + 74 AS col2
----
3037
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-6271
SELECT + 33 / + + 70 + 40 + + + 90 + - 23 / + - 46 * - - 45 * - - 48 * - + AVG ( DISTINCT 38 ) + + - CAST ( NULL AS INTEGER ) - - CASE - - 11 WHEN - - 88 + + 86 * + - 14 + - 75 * 25 THEN 83 * 85 WHEN + 69 THEN 38 END * + 49
+----
+NULL
query I rowsort label-6272
SELECT ALL NULLIF ( + 54, COUNT ( * ) ) * 57 AS col1
@@ -33319,10 +33340,13 @@ SELECT ( + 88 ) * + + 77
----
6776
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort
SELECT + 86 / CASE 75 WHEN - + 11 + + 42 THEN - 51 END + + + 25 + 7 * 69 + - - 1 + 98 / - 24 * + AVG ( DISTINCT - + 66 ) * + 76
+----
+NULL
query I rowsort
SELECT ALL 5 * 71 + - 79 + - CASE - 3 WHEN 37 + 13 THEN + 21 + + 72 WHEN - + 64 THEN NULL END / 67 AS col1
@@ -35026,11 +35050,14 @@ SELECT 40 * 8 * - 82
----
-26240
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - -99
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] I[I]
+# Datafusion - [Actual ] I[R]
+query IR rowsort label-6667
SELECT DISTINCT - ( + + 99 ) AS col0, - 23 / - - ( 17 ) * + - ( AVG ( DISTINCT - 85 ) ) + 14 - CAST ( NULL AS INTEGER ) AS col1
+----
+-99
+NULL
query I rowsort label-6668
SELECT DISTINCT - NULLIF ( CAST ( - + 16 AS INTEGER ), - - 27 ) * + 6
@@ -40373,10 +40400,10 @@ SELECT - - 68 * + COALESCE ( - 82, + - 3 + + - 58, + MIN ( ALL + + 33 ) + - - SU
----
-5576
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+query I rowsort label-7688
SELECT ALL + CASE + 65 WHEN + 69 THEN COUNT ( * ) WHEN - 28 THEN + 8 WHEN - AVG ( DISTINCT 41 ) - CAST ( NULL AS INTEGER ) THEN - 51 + COUNT ( * ) * + 10 END
+----
+NULL
query I rowsort
SELECT - + 51 + - 6
@@ -40419,10 +40446,10 @@ SELECT ALL COUNT ( * ) - - + MAX ( DISTINCT + 84 ) AS col0
----
85
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - 51
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+query I rowsort label-7697
SELECT + 16 + COUNT ( * ) * - - CASE - - ( + + 25 ) WHEN + + AVG ( DISTINCT - 94 ) + - 58 + - + 48 * - - 86 * - CASE - 1 WHEN + 64 + ( ( 12 ) ) / 1 THEN - 20 * 27 ELSE NULL END THEN NULL ELSE 35 END col1
+----
+51
query II rowsort label-7698
SELECT + CAST ( + 82 AS INTEGER ) * + - 63 * - 26 / + - COUNT ( * ) / + ( - ( - ( CAST ( NULL AS INTEGER ) ) ) ), COUNT ( * ) * - 48 * + 45 col0
@@ -46050,10 +46077,13 @@ SELECT + 43 * ( + 73 ) * + 46 AS col1
----
144394
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-8770
SELECT + CAST ( NULL AS FLOAT8 ) + + COUNT ( * ) / - + AVG ( DISTINCT 49 ) AS col0
+----
+NULL
query I rowsort label-8771
SELECT ALL + 47 + + 78 - - + CASE - 7 WHEN - 25 * - + MAX ( + 83 ) + 46 + - 5 / - 90 / - 2 + 26 / + 78 THEN NULL ELSE + 25 / - ( - + 75 ) - 30 END * 39
@@ -49957,10 +49987,13 @@ SELECT ALL + COALESCE ( + + ( 23 ), - - 35 ) + - 58 * + 30 AS col1
----
-1717
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-9520
SELECT DISTINCT AVG ( DISTINCT - 28 ) + - - 26 * - CAST ( NULL AS INTEGER )
+----
+NULL
query I rowsort
SELECT + 64 * + 65 * + COALESCE ( + 76, - 31 ) - + - 69 * 70 AS col2
diff --git a/data/sqlite/random/expr/slt_good_100.slt b/data/sqlite/random/expr/slt_good_100.slt
index 9ec56a8..a6ff053 100644
--- a/data/sqlite/random/expr/slt_good_100.slt
+++ b/data/sqlite/random/expr/slt_good_100.slt
@@ -152,10 +152,13 @@ SELECT + 74 * 26 * + 31 - + ( COUNT ( * ) )
----
59643
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-23
SELECT - - 0 + - AVG ( DISTINCT + 17 ) * COUNT ( * ) + CAST ( NULL AS INTEGER ) + - ( 25 ) / + 75 * 92 AS col2
+----
+NULL
query I rowsort
SELECT + - 50 * + + 74 AS col0
@@ -16517,11 +16520,14 @@ SELECT ALL + 5 * 45
----
225
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-# Datafusion - Expected - 90
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]I
+# Datafusion - [Actual ] [R]I
+query RI rowsort label-3134
SELECT + CAST ( NULL AS INTEGER ) * AVG ( DISTINCT - 91 ) AS col1, 90
+----
+NULL
+90
query II rowsort
SELECT + 14 + + + 76 AS col1, - 55 AS col0
@@ -29850,10 +29856,10 @@ SELECT - CAST ( + 54 AS INTEGER ) + - - 88 col2
----
34
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+query I rowsort label-5676
SELECT + 36 / + - 46 * - 34 - + + ( 79 ) * - 31 * + CASE + NULLIF ( - 78, + 86 ) WHEN 1 * - 20 THEN + 58 END * - 42 * ( 23 ) + + CAST ( + CASE + COUNT ( * ) WHEN 44 THEN - COALESCE ( + AVG ( DISTINCT + 86 ), + ( 20 ) ) END + - COUNT ( * ) * 40 AS INTEGER )
+----
+NULL
query I rowsort label-5677
SELECT ALL - 25 / + MAX ( ALL + 86 ) AS col0
@@ -32058,10 +32064,10 @@ SELECT ALL + NULLIF ( + - COUNT ( * ), 38 * + COUNT ( * ) ) AS col2, 19 AS col1
-1
19
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+query I rowsort label-6093
SELECT DISTINCT - 70 * - ( - 24 ) + CAST ( NULL AS INTEGER ) + - - 98 * - CASE - + 98 WHEN + - AVG ( DISTINCT - 78 ) THEN - 86 * - ( 54 ) * + + 71 ELSE NULL END AS col0
+----
+NULL
query I rowsort
SELECT - 9 * + 68
@@ -33936,10 +33942,10 @@ SELECT + + 82 * - + 62 + - 84 AS col0
----
-5168
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+query I rowsort label-6450
SELECT ALL - COALESCE ( + 5, 78 ) - CASE + CASE 61 WHEN + 98 THEN 87 * + - 51 WHEN 77 THEN - AVG ( DISTINCT 98 ) + - 10 ELSE - 39 END WHEN 55 THEN CAST ( - 80 AS INTEGER ) ELSE + MIN ( ALL - 75 ) + - SUM ( ALL + 52 ) END - 49 + CAST ( 73 AS INTEGER ) + 94 * - CASE AVG ( + 34 ) WHEN 86 THEN NULL WHEN + 89 THEN - 88 END * - 20 / + + 16 * + CAST ( NULL AS INTEGER ) + - 61 * + COALESCE ( + 73, + - 15 - + 26 * + ( 89 ) )
+----
+NULL
query I rowsort
SELECT + - 8 * + 14 * + 7 * - 71 + - NULLIF ( + - 63, 78 ) + + - ( 59 )
@@ -38557,10 +38563,13 @@ SELECT 71 * + - 11
----
-781
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-7332
SELECT CAST ( NULL AS INTEGER ) - + - AVG ( DISTINCT 5 ) + - + COUNT ( * ) AS col0
+----
+NULL
# Datafusion - Types were automatically converted from:
# Datafusion - [Expected] [I]
@@ -38862,11 +38871,11 @@ SELECT + + 7 - MIN ( 24 ), + CAST ( + 53 AS INTEGER ) - - 29 AS col2
-17
82
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - 16
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+query II rowsort label-7390
SELECT + 16 col0, CASE 40 WHEN - 65 / - 69 * + 25 THEN NULL WHEN + CAST ( + 33 AS INTEGER ) / COALESCE ( - 81, + + 28 ) THEN ( + 1 ) END + + CAST ( - - CASE + + CAST ( NULL AS INTEGER ) WHEN - + ( - 93 ) THEN + AVG ( DISTINCT 47 ) WHEN 89 + 26 THEN + 46 ELSE CAST ( 80 AS INTEGER ) * - 60 END AS INTEGER ) + 65 * 33
+----
+16
+NULL
query II rowsort label-7391
SELECT 85 * + 89 + + - 58, + COUNT ( * ) * 43 AS col1
@@ -52330,11 +52339,14 @@ SELECT ALL - MIN ( 99 )
----
-99
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - -94
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] I[I]
+# Datafusion - [Actual ] I[R]
+query IR rowsort label-9953
SELECT COUNT ( * ) + - 95 AS col2, CAST ( NULL AS FLOAT8 ) * + - NULLIF ( + 79, MIN ( DISTINCT - 82 ) ) + - 14 + - + AVG ( DISTINCT - - 89 )
+----
+-94
+NULL
query I rowsort
SELECT - + 98 * 27 + + 26 AS col0
diff --git a/data/sqlite/random/expr/slt_good_101.slt b/data/sqlite/random/expr/slt_good_101.slt
index 5fda8b7..e3e6ea0 100644
--- a/data/sqlite/random/expr/slt_good_101.slt
+++ b/data/sqlite/random/expr/slt_good_101.slt
@@ -6579,10 +6579,13 @@ SELECT 51 * - COUNT ( * ) + 94 * + 17 + + COUNT ( * ) col1
query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(61\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "Int64\(88\) \* count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-18\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\.
SELECT ALL 61 * - COUNT ( * ) AS col1, + 88 * + COUNT ( * ) * - 18 AS col1
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-1252
SELECT CASE - 38 WHEN + 9 * - 25 * - - ( - - 61 ) + + ( ( 89 ) ) THEN + - 32 ELSE NULL END * - COUNT ( * ) + + 54 + - + 60 * 55 * + + 1 * - 12 * + NULLIF ( - 43, + 28 * + NULLIF ( ( - AVG ( DISTINCT - 4 ) ), - CASE - - 44 WHEN + - COUNT ( * ) * - - 48 + + 49 * - ( - + SUM ( DISTINCT - 4 ) ) THEN + 39 * + COUNT ( * ) END ) - - COUNT ( * ) - + - 91 - MIN ( ALL + - 23 ) * - 21 )
+----
+NULL
query I rowsort label-1253
SELECT DISTINCT 96 + 92 / - COUNT ( * )
@@ -7318,10 +7321,13 @@ SELECT + 99 * - - 22 + - 65 AS col0
----
2113
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort
SELECT - CASE 0 WHEN - 70 THEN + 12 END + + 34 * + 33 + + COALESCE ( - - 6, + 15, - ( + 52 ) * - 7, 57 + - AVG ( DISTINCT + + 62 ) ) AS col2
+----
+NULL
query I rowsort
SELECT NULLIF ( + + 12, - 57 ) * + + 89 AS col1
@@ -14659,11 +14665,14 @@ SELECT + - 44 + CASE - 70 WHEN 73 * - + 54 THEN + - CAST ( - - 1 AS INTEGER ) EN
----
NULL
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - -6908
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] I[I]
+# Datafusion - [Actual ] I[R]
+query IR rowsort label-2794
SELECT ALL + - 55 * + + 53 + 39 + 56 * ( - 72 ) AS col1, 30 + 46 / + AVG ( DISTINCT - 64 ) * - CAST ( NULL AS FLOAT8 )
+----
+-6908
+NULL
query I rowsort label-2795
SELECT ALL + MIN ( DISTINCT 95 ) * 0 * 81 * - + 11 + 15 + CAST ( NULL AS INTEGER ) * + COUNT ( * )
@@ -15274,10 +15283,13 @@ SELECT ALL 18 / + 41 * + + NULLIF ( - + 24, + - 73 + + 86 / - + 79 / 16 + CAST (
----
0
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-2912
SELECT - CAST ( NULL AS INTEGER ) + - - AVG ( DISTINCT CAST ( NULL AS INTEGER ) )
+----
+NULL
query I rowsort label-2913
SELECT - + NULLIF ( - 58, CASE 29 WHEN 46 * + COUNT ( * ) THEN + - ( - 11 ) END * + COUNT ( DISTINCT - + CAST ( + ( - - 19 ) AS INTEGER ) ) ) AS col2
@@ -18894,10 +18906,10 @@ SELECT + 57 * + 58, + 20 col1
query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
SELECT DISTINCT COALESCE ( - MIN ( - + 95 ), 43 * - COUNT ( * ) + + - CASE - AVG ( DISTINCT + + 28 ) WHEN 46 / - ( - COUNT ( * ) ) + 59 THEN ( 82 ) WHEN ( ( 80 ) ) THEN 23 * 80 - + 74 WHEN 68 THEN NULL ELSE NULL END ) AS col2
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+query I rowsort label-3605
SELECT ALL CASE - 78 WHEN + + CAST ( NULL AS INTEGER ) * - 5 + - 96 + - COUNT ( * ) - - + 62 * + + 16 * + CAST ( NULL AS INTEGER ) + AVG ( DISTINCT - 46 ) * + 86 - 57 * 22 THEN NULL WHEN - 93 + - ( + 69 ) THEN - 45 END
+----
+NULL
query I rowsort label-3606
SELECT ALL 3 * - 80 + + 25 * - - CAST ( NULL AS INTEGER ) + - + NULLIF ( + 56, + ( - 86 ) )
@@ -19872,10 +19884,13 @@ SELECT DISTINCT - - 45 * + COUNT ( * ) + 90 AS col0
----
135
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-3793
SELECT ALL + + 78 * - 71 * + 74 + - AVG ( DISTINCT 38 ) + 8 * + 25 * - CAST ( NULL AS INTEGER )
+----
+NULL
query I rowsort label-3794
SELECT DISTINCT + COUNT ( * ) * - COUNT ( * ) * - 46 + + - 14 + 65 + MIN ( - ( - 73 ) )
@@ -23001,10 +23016,13 @@ SELECT DISTINCT CAST ( - 27 AS INTEGER )
----
-27
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-4388
SELECT + 85 + + + CASE + 81 WHEN - + 55 THEN + + 34 * - + 10 ELSE - 13 * + - 10 * - 75 + CASE + 4 WHEN + 60 * + 10 * COUNT ( - 4 ) THEN + + COALESCE ( + ( 62 ), + 5 ) + 51 WHEN - 56 THEN - 49 + - 69 END * 90 + + CASE - - 38 WHEN + - 44 + 60 * - - 76 / - - 58 THEN NULL ELSE + 56 END - AVG ( DISTINCT - COALESCE ( - 97, + 15 * + 58 ) ) END + - CASE - 41 WHEN + 24 * - 59 THEN ( ( + 69 ) ) WHEN 2 THEN NULL WHEN + NULLIF ( 16, + 46 * 28 ) + - 89 THEN NULL ELSE NULL END * 52 AS col0
+----
+NULL
query I rowsort
SELECT + 89 * + 32 AS col0
@@ -27935,10 +27953,13 @@ SELECT - 58 * 17 + - + 34 AS col1
----
-1020
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-5328
SELECT - ( - 32 ) * - ( + CAST ( NULL AS FLOAT8 ) ) + - 87 + - CASE + MAX ( ALL - + 24 ) WHEN + CAST ( NULL AS INTEGER ) * - CAST ( NULL AS INTEGER ) + + ( 93 ) - + 90 + - COUNT ( * ) THEN NULL ELSE CAST ( 80 AS INTEGER ) * - SUM ( NULLIF ( + CAST ( NULL AS INTEGER ), 23 ) ) END * COALESCE ( + AVG ( DISTINCT + CAST ( NULL AS FLOAT8 ) ) * + 50, - CAST ( COALESCE ( - 49, 75 ) AS INTEGER ) + + 96 ) AS col0
+----
+NULL
query I rowsort label-5329
SELECT - 50 / - COUNT ( * ) AS col2
@@ -33386,10 +33407,13 @@ SELECT DISTINCT + NULLIF ( - 18, - 49 + 56 - + + 46 ) + NULLIF ( + 43, + 46 ) -
----
-30
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-6357
SELECT AVG ( DISTINCT - 58 ) / 56 + + 87 / + CAST ( NULL AS INTEGER )
+----
+NULL
query I rowsort label-6358
SELECT ALL ( - 55 ) + - 8 / 10 / 35 AS col2
@@ -39331,10 +39355,13 @@ SELECT DISTINCT 73 AS col2, 1
73
1
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-7496
SELECT ALL - AVG ( DISTINCT - + 31 ) + CAST ( NULL AS INTEGER ) / - CAST ( + 78 AS FLOAT8 ) AS col2
+----
+NULL
query I rowsort label-7497
SELECT + 98 * + 80 + 38 * 40 + + COUNT ( * ) + - MAX ( + 70 ) + - - 99 * 94 AS col1
@@ -52169,10 +52196,13 @@ SELECT + MIN ( - 96 ) AS col0
----
-96
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-9953
SELECT CAST ( NULL AS INTEGER ) * + ( - 60 ) * + - 62 * - 7 + - + 51 * + 87 + - 79 * + NULLIF ( - 80, AVG ( DISTINCT 90 ) )
+----
+NULL
query I rowsort label-9954
SELECT - 83 - - 27 + - 90 * - COUNT ( * )
diff --git a/data/sqlite/random/expr/slt_good_102.slt b/data/sqlite/random/expr/slt_good_102.slt
index ac3a966..2bbc928 100644
--- a/data/sqlite/random/expr/slt_good_102.slt
+++ b/data/sqlite/random/expr/slt_good_102.slt
@@ -546,10 +546,13 @@ SELECT DISTINCT + ( + - 48 )
----
-48
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-95
SELECT ALL - 8 * + - 16 * + CAST ( NULL AS FLOAT8 ) + + 55 - - CAST ( NULL AS INTEGER ) + + MIN ( + 57 ) * + AVG ( DISTINCT + - 50 ) * + COUNT ( * ) * 29 + 99 AS col0
+----
+NULL
query II rowsort
SELECT + + 82 AS col1, + ( - - 10 )
@@ -930,10 +933,10 @@ SELECT ALL 27 / + COUNT ( * )
----
27
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+query I rowsort label-167
SELECT DISTINCT + CASE + 86 WHEN - - 9 + + COALESCE ( - 92, - + AVG ( DISTINCT + + 91 ) ) / - 60 THEN - 75 END - - CAST ( NULL AS INTEGER ) col2
+----
+NULL
# Datafusion - Datafusion expected results:
# Datafusion - Expected - 74
@@ -4545,10 +4548,13 @@ SELECT 27 / - COALESCE ( - + 13, + + AVG ( ALL - 30 ), + 25 * - - 31 * + 88 - NU
2.076923076923
87
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-858
SELECT DISTINCT - AVG ( DISTINCT + + 0 ) + + - CAST ( NULL AS INTEGER ) + - 24
+----
+NULL
query I rowsort
SELECT ALL + + 50 + + 59
@@ -7919,10 +7925,13 @@ SELECT ALL - - 83 + 34 + + - 69 AS col2
----
48
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-1499
SELECT - AVG ( DISTINCT - 18 ) + CAST ( NULL AS INTEGER )
+----
+NULL
query I rowsort
SELECT CASE + 55 WHEN + 9 THEN - NULLIF ( + ( 64 ), + ( + 19 ) ) END AS col0
@@ -16770,10 +16779,13 @@ SELECT ALL 79 AS col2, 31 + ( - - 96 ) + + COUNT ( * ) - - 88 AS col0
79
216
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-3182
SELECT CAST ( NULL AS FLOAT8 ) + 43 * + 47 * COUNT ( * ) * + + COUNT ( * ) / + AVG ( DISTINCT 25 ) + - 9
+----
+NULL
query I rowsort
SELECT ALL 27 * + 30
@@ -18585,10 +18597,13 @@ SELECT DISTINCT + - 10, + 95 AS col0
-10
95
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-3527
SELECT ALL + AVG ( DISTINCT 73 ) / + 45 * + 47 * + + 51 / CAST ( NULL AS INTEGER )
+----
+NULL
query I rowsort label-3528
SELECT + 7 / + 62 AS col2
@@ -25090,10 +25105,13 @@ SELECT - CASE - CASE 2 WHEN + ( + 32 ) + + 10 THEN COALESCE ( COUNT ( * ), - 92,
----
NULL
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-4765
SELECT + SUM ( 91 ) * + CASE 68 WHEN 26 * 86 - 26 THEN 88 WHEN 49 THEN + 26 * 49 - - 64 END + - 98 * + 31 + AVG ( DISTINCT 86 + + 76 ) AS col0
+----
+NULL
query I rowsort
SELECT NULLIF ( - 94, - 70 ) AS col0
@@ -27688,10 +27706,13 @@ SELECT - 88 * - CASE + 34 WHEN - 39 THEN NULL ELSE - 62 / + ( - ( - 8 ) ) END AS
query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(63\) \* \(\- Int64\(\-1\)\) \* \(\- min\(Int64\(75\)\)\) AS col0" at position 0 and "\(\- Int64\(48\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\.
SELECT 63 * - - 1 * - MIN ( 75 ) col0, - ( + 48 ) AS col0
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-5260
SELECT ALL 37 - - 44 * + + 72 * COALESCE ( + COALESCE ( + - COUNT ( * ), 95, + 39, 69 - - 93 + - 23 + + 83 * - + 61 * CASE 19 WHEN - + 82 THEN AVG ( DISTINCT + 90 ) + - 94 * CAST ( NULL AS FLOAT8 ) ELSE 88 * COUNT ( * ) END ), AVG ( - 39 ) * CAST ( NULL AS INTEGER ) + 85 * + CASE - 92 + 15 WHEN + 69 * - CASE 59 WHEN - 54 THEN - NULLIF ( 29, COUNT ( 69 ) + 74 ) + + 66 ELSE NULL END THEN 0 END ) * + ( - CAST ( CASE COALESCE ( CAST ( NULL AS FLOAT8 ), 39, - ( 19 ) ) WHEN + 20 + + 19 THEN NU [...]
+----
+NULL
query I rowsort label-5261
SELECT CAST ( + 53 AS INTEGER ) * - 80 AS col2
@@ -28861,10 +28882,10 @@ SELECT 28 AS col2, 39
28
39
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+query I rowsort label-5483
SELECT DISTINCT - CASE + - 0 WHEN + ( 63 ) + - + 92 THEN - SUM ( ALL + 73 ) * 20 WHEN 98 + + 13 + 39 * CAST ( NULL AS INTEGER ) / - 72 - 16 + + COUNT ( 30 ) + 61 * 87 * - 57 / 26 + + - COALESCE ( + - 44, + + 62 * + - AVG ( - CAST ( NULL AS INTEGER ) ) + + 58 + + 53 * COALESCE ( 94 + 45 / + 42, 87, - COUNT ( - ( - 5 ) ) + + AVG ( ALL - 18 ) ) ) * AVG ( DISTINCT - 44 ) THEN NULL ELSE NULL END col1
+----
+NULL
query I rowsort
SELECT ALL - ( + - 62 )
@@ -29376,10 +29397,10 @@ SELECT - 7 + - + 1 AS col0
----
-8
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - 84
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+query I rowsort label-5579
SELECT DISTINCT NULLIF ( + 84, + - 41 / + CASE 33 WHEN CAST ( NULL AS INTEGER ) * + 40 * - + 82 * + + CAST ( MIN ( + 62 ) AS FLOAT8 ) THEN NULL WHEN + AVG ( DISTINCT 61 ) - - COUNT ( * ) * - + 91 * - 79 + - - 65 + - 94 - - + CAST ( NULL AS INTEGER ) + 96 + + 42 * + 85 THEN SUM ( ALL - 33 ) + 20 ELSE - + COALESCE ( 88, - + COUNT ( * ), - + NULLIF ( 61, 96 * - 3 ) * 24 ) END )
+----
+84
query II rowsort label-5580
SELECT - 84 * 60, + MIN ( - + 81 ) * + 9 AS col1
@@ -33997,10 +34018,13 @@ SELECT NULLIF ( + 23, + CAST ( + COUNT ( * ) AS FLOAT8 ) + - 39 ) AS col2
----
23
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-6457
SELECT CAST ( NULL AS FLOAT8 ) * + CASE - + 92 WHEN + 22 THEN + 27 WHEN 41 THEN + 33 * CASE 90 WHEN - 12 * - 7 - 19 THEN NULL WHEN - 10 THEN NULL ELSE 70 END + + 70 END + + AVG ( DISTINCT + 12 + + 46 ) AS col1
+----
+NULL
query I rowsort label-6458
SELECT + ( + 2 ) / 98 / + 92 * - 61 + 54
@@ -35557,10 +35581,13 @@ SELECT DISTINCT + 5 * + - 60 * + CASE - 58 WHEN + COUNT ( * ) * + CAST ( NULL AS
----
-300
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-6754
SELECT DISTINCT 41 / + 36 / + 6 / - - 3 * + NULLIF ( 3, + AVG ( DISTINCT + 85 ) ) * - 2 * + - COUNT ( * ) * + CAST ( NULL AS INTEGER ) * + 50 * 86
+----
+NULL
query I rowsort label-6755
SELECT ALL 0 - + 77 + + 21 + + COUNT ( DISTINCT + + 25 ) * + 15 + 58 AS col1
@@ -37018,10 +37045,13 @@ SELECT - 80 * - - 45 - + ( - 26 ) AS col1
----
-3574
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-7035
SELECT - - 67 / CAST ( NULL AS INTEGER ) - 78 + + 4 * + AVG ( DISTINCT ( - + 31 ) )
+----
+NULL
query I rowsort
SELECT ALL - NULLIF ( + + 70, 0 ) * + 1 + - 57 - + + 92 AS col2
@@ -42332,10 +42362,10 @@ SELECT DISTINCT - 7 + COUNT ( * ) AS col1, - SUM ( ALL - 47 ) * NULLIF ( - ( 17
-6
-799
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+query I rowsort label-8048
SELECT 68 - - 58 + + 1 * 54 * ( + CAST ( NULL AS INTEGER ) / - NULLIF ( CASE - AVG ( DISTINCT 51 ) WHEN - 52 THEN ( CASE WHEN NOT COUNT ( * ) IS NOT NULL THEN 6 + - MIN ( 97 ) ELSE NULLIF ( 72, - 20 ) END ) ELSE NULL END, - ( NULLIF ( - 50, + CAST ( NULL AS INTEGER ) * - COUNT ( * ) + 65 ) ) ) ) + 77
+----
+NULL
query I rowsort label-8049
SELECT ALL - 98 / - - COUNT ( * ) AS col1
@@ -43649,10 +43679,13 @@ SELECT COUNT ( * ) + - - SUM ( DISTINCT - 61 ) AS col2
----
-60
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-8298
SELECT + 47 * + 63 + - 83 + + 72 + AVG ( DISTINCT + - 13 ) * + CAST ( NULL AS INTEGER ) / - CAST ( NULL AS INTEGER ) + - 51 col2
+----
+NULL
query I rowsort label-8299
SELECT 92 + + 30 + - COUNT ( * ) + + + 41 + COUNT ( * ) AS col2
diff --git a/data/sqlite/random/expr/slt_good_103.slt b/data/sqlite/random/expr/slt_good_103.slt
index 6a28378..8c71951 100644
--- a/data/sqlite/random/expr/slt_good_103.slt
+++ b/data/sqlite/random/expr/slt_good_103.slt
@@ -12950,10 +12950,13 @@ SELECT DISTINCT - 94 * - 70
----
6580
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-2465
SELECT DISTINCT + 83 / - - 21 - + COALESCE ( ( - COALESCE ( 45, - COUNT ( DISTINCT 42 ) + - 72 ) ), 57, - 3, + - NULLIF ( 60, 59 / - 6 * - + 21 ) ) + - 17 + + + 49 * - 68 * - ( - 45 ) - - + AVG ( DISTINCT + 38 ) * - + 33 + COALESCE ( COALESCE ( 0, + + 11 ), - 38, + 26 ) * - - COUNT ( * ) * MAX ( ALL 7 ) * 2 + + - 53 + + CAST ( NULL AS INTEGER ) * + 25 / - - 71 * - 81
+----
+NULL
query I rowsort label-2466
SELECT ALL + COUNT ( + 2 ) - ( 63 ) - 87
@@ -14465,10 +14468,10 @@ SELECT NULLIF ( + ( 96 ), + - 73 )
----
96
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+query I rowsort label-2752
SELECT + 51 * CAST ( + AVG ( DISTINCT - 27 ) AS INTEGER ) + 96 + - CAST ( NULL AS INTEGER ) AS col0
+----
+NULL
query I rowsort label-2753
SELECT SUM ( DISTINCT 35 )
@@ -21653,11 +21656,14 @@ SELECT ALL CAST ( + - 30 AS INTEGER ) * ( - + 72 )
----
2160
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - 53
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] I[I]
+# Datafusion - [Actual ] I[R]
+query IR rowsort label-4123
SELECT 53 AS col2, 25 * - CAST ( NULL AS INTEGER ) + - - 89 * - NULLIF ( - AVG ( DISTINCT 7 ), + ( 80 ) ) + 14 AS col0
+----
+53
+NULL
query I rowsort label-4124
SELECT - 5 + - - CASE + - 58 WHEN - 76 THEN NULL WHEN - 46 + 50 + + 89 * - + 27 THEN + 11 WHEN + 54 THEN + - NULLIF ( 9, 7 ) * + COUNT ( * ) * + 5 + - + 27 ELSE 26 END
@@ -23240,10 +23246,13 @@ SELECT ALL 50, COUNT ( * ) AS col1
50
1
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-4422
SELECT + 68 * - CAST ( NULL AS INTEGER ) * + + 49 + + NULLIF ( + 32, + 15 * - 84 * + - AVG ( DISTINCT 13 ) + 40 ) + + - 60 * COUNT ( * ) AS col1
+----
+NULL
query I rowsort label-4423
SELECT ALL - COUNT ( * ) * COALESCE ( - 62, + 50 + 76, + 11, + + MIN ( + 91 ) / - - MAX ( - 59 ) ) AS col0
@@ -28025,10 +28034,13 @@ SELECT DISTINCT ( - ( - NULLIF ( - COALESCE ( COUNT ( * ), 62 * - 76 ), - COALES
----
-1
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-5334
SELECT DISTINCT - CAST ( NULL AS INTEGER ) / CASE 3 WHEN 82 * + + 0 + 91 - 10 THEN + - 94 END * AVG ( DISTINCT 23 ) + + 42
+----
+NULL
query I rowsort
SELECT ALL 93 * - 50 AS col2
@@ -29293,11 +29305,11 @@ SELECT ALL + 56 * 95 / 35 AS col0, - COUNT ( * ) AS col1
152
-1
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - -343748
-# Datafusion - Expected - 1920
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+query II rowsort label-5575
SELECT - 13 * + + 4 * 87 - 5 + + 8 + + 21 + - + 47 * - 95 * - 76 + 32 + + + NULLIF ( - - CASE WHEN NOT AVG ( DISTINCT + 52 ) BETWEEN NULL AND NULL THEN CAST ( NULL AS INTEGER ) ELSE + 60 END, + + 14 ), + 24 * + 80 AS col1
+----
+-343748
+1920
query II rowsort label-5576
SELECT + COUNT ( * ), 92 + - CASE 53 WHEN ( + 4 ) * CAST ( NULL AS INTEGER ) / 59 + - 81 + 34 THEN + COALESCE ( - 44, + 44 * + 45 * 90 * + - 63 ) * + COUNT ( * ) * - 9 + + ( - + 99 ) + + + 70 * - 89 / + SUM ( - 76 ) WHEN + + COUNT ( * ) THEN NULL ELSE NULL END AS col0
@@ -31199,10 +31211,13 @@ SELECT DISTINCT - 77 * - 70 AS col1
----
5390
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-5940
SELECT ALL - CASE + 31 WHEN - - CASE + 70 WHEN + COUNT ( * ) * + 92 THEN + NULLIF ( 10, + 50 * + + 97 + + - 69 / + + 53 + - SUM ( 97 ) + - + 71 * - + COUNT ( * ) * 29 + - 70 ) END - + 79 THEN + - 4 WHEN + 54 + COALESCE ( - COUNT ( * ), ( + 91 ) + - 5 + + - ( NULLIF ( - 68, COUNT ( * ) ) ) + - - 1 * + AVG ( DISTINCT ( - 31 ) ) * + ( - 61 ), + 54 ) THEN NULL ELSE NULL END + - CAST ( NULL AS FLOAT8 )
+----
+NULL
query I rowsort label-5941
SELECT 3 / - + 77 col2
@@ -32248,10 +32263,13 @@ SELECT ALL - 35 * + 82 + - 47 AS col0
----
-2917
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-6138
SELECT - AVG ( DISTINCT 56 ) - CAST ( NULL AS INTEGER ) * 84 col0
+----
+NULL
query I rowsort label-6139
SELECT COUNT ( DISTINCT - 19 )
@@ -35060,10 +35078,13 @@ SELECT 80 * + - 5 AS col1
----
-400
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-6678
SELECT + + 11 * - CAST ( NULL AS FLOAT8 ) + - + CASE ( - 60 ) WHEN + 46 * 44 * - 23 * 1 + - - 49 + - 23 + + NULLIF ( - + 55, + + AVG ( 84 ) * 81 ) * + AVG ( DISTINCT 12 ) THEN + 2 WHEN - 0 * 75 THEN NULL WHEN - 89 + - 55 * + 78 THEN NULL ELSE + 93 + + 79 * 10 END * + 17
+----
+NULL
query I rowsort label-6679
SELECT COALESCE ( 47, + 93 + + 62 - + + 76 / + COUNT ( * ) / - 88, 77 + + + 57 ) / - 47 + - 86 + - 69 / + 70 - - 18 * + MAX ( ALL 61 )
@@ -47186,10 +47207,13 @@ SELECT - 78 + - ( + ( CAST ( CAST ( NULL AS INTEGER ) AS FLOAT8 ) ) ) AS col0
----
NULL
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-8992
SELECT + ( - 31 ) / 45 * + - 91 + CAST ( NULL AS INTEGER ) + 69 - + 95 * AVG ( DISTINCT + 42 ) - 75 - - COUNT ( * ) * - ( - 6 ) * - - AVG ( + 95 ) AS col0
+----
+NULL
query I rowsort label-8993
SELECT - COUNT ( + + 69 ) * 83
diff --git a/data/sqlite/random/expr/slt_good_104.slt b/data/sqlite/random/expr/slt_good_104.slt
index fc640cc..3c58b4b 100644
--- a/data/sqlite/random/expr/slt_good_104.slt
+++ b/data/sqlite/random/expr/slt_good_104.slt
@@ -583,10 +583,13 @@ SELECT + 33 + 33 + - 18 / + - 16 AS col0
----
67
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-102
SELECT DISTINCT + + NULLIF ( ( - COUNT ( * ) ), + COUNT ( ALL CASE 77 WHEN - 2 * - 98 THEN - - 6 END ) ) * + 77 + + 28 + + AVG ( DISTINCT - + 45 ) - CAST ( + CASE - - 41 WHEN 76 THEN 50 + - ( + 90 ) + 82 ELSE NULL END AS INTEGER ) * - 17 AS col0
+----
+NULL
query I rowsort
SELECT DISTINCT + 54 * + 61 + - ( - 14 )
@@ -1132,10 +1135,13 @@ SELECT - 16 * + - 14
----
224
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-205
SELECT - + CAST ( NULL AS INTEGER ) + + MIN ( - 16 ) / ( + AVG ( DISTINCT 40 ) ) AS col2
+----
+NULL
query I rowsort
SELECT - + 21 * - 51 * + COALESCE ( + - 46, - 97, 7 ) + - 74 AS col1
@@ -1263,10 +1269,10 @@ SELECT - - 80 * + + 82 * + 48 - + 61 + + COUNT ( * ) * - 41 + + 1
----
314779
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+query I rowsort label-230
SELECT ALL 8 + - 46 + 75 * + CASE + AVG ( DISTINCT - - CAST ( NULL AS INTEGER ) ) WHEN - ( + - ( - - 79 ) ) THEN + - 8 END + - 48 + + ( CASE - 60 WHEN + ( + 67 ) + - 78 THEN 43 WHEN + 41 THEN NULL ELSE NULL END ) + - MIN ( + 7 ) * + 83 / + 91 * + 10 * - 22 + - CAST ( NULL AS INTEGER )
+----
+NULL
query I rowsort label-231
SELECT DISTINCT + COUNT ( * ) + + 50 + ( - - 84 ) * 33 * - - COUNT ( * ) * - NULLIF ( - CAST ( - + 59 AS INTEGER ), - 50 + - NULLIF ( - 92, + COUNT ( * ) * - COALESCE ( + + 24, - 38 ) + + + 56 + + 54 - - 84 + - ( - CAST ( NULL AS INTEGER ) ) - + CAST ( NULL AS INTEGER ) * 57 + + + 8 ) )
@@ -5763,10 +5769,13 @@ SELECT ALL - 40 * + 66 - - 80 AS col0
----
-2560
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-1084
SELECT + 38 + - 4 + - + 92 + + - 19 - - 72 * + AVG ( DISTINCT 66 ) * + 32 * + 12 * - 24 * 66 * CAST ( NULL AS FLOAT8 ) col1
+----
+NULL
query I rowsort
SELECT + 14 + - COALESCE ( 54, - 83 ) * 86 AS col0
@@ -13642,10 +13651,13 @@ SELECT 38 * + 41 + + ( MIN ( 50 ) )
----
1608
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-2588
SELECT - ( - - 65 ) / - CASE - 29 WHEN - ( NULLIF ( 50, NULLIF ( - COUNT ( * ), MIN ( ALL 33 ) ) + ( - 97 ) + - 97 * - + 87 * 22 ) ) THEN - - COALESCE ( + + 75, + - 97, - + AVG ( DISTINCT + CAST ( NULL AS INTEGER ) ) * + 0 ) / + - 55 + - 53 END + CAST ( NULL AS INTEGER ) / + - NULLIF ( - 14, - 49 ) AS col2
+----
+NULL
query I rowsort label-2589
SELECT 73 * - + COUNT ( * ) * + + 10 AS col2
@@ -15122,10 +15134,13 @@ SELECT - COUNT ( DISTINCT - - NULLIF ( - ( + CASE + ( - 64 ) WHEN 13 THEN 81 END
----
-3127
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-2874
SELECT ALL + CASE + - 3 WHEN 49 + - CAST ( + 37 AS INTEGER ) THEN 65 WHEN 68 * 16 THEN - 80 + + 54 * - 22 ELSE NULL END * NULLIF ( + 68, + 68 * + AVG ( DISTINCT - 10 / ( 3 ) ) ) AS col0
+----
+NULL
# Datafusion - Datafusion expected results:
# Datafusion - Expected - -1623
@@ -24264,10 +24279,10 @@ SELECT + 80 - ( + - 24 ) + + COUNT ( * )
----
105
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - 236
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+query I rowsort label-4626
SELECT + 89 + + COALESCE ( - ( - CASE + 10 WHEN + 54 + - + CASE + + 83 WHEN - + 8 + 88 * COUNT ( * ) THEN NULL WHEN - ( - 19 ) THEN AVG ( DISTINCT + 74 ) * + 66 - + CAST ( NULL AS INTEGER ) END * + 8 THEN NULL WHEN COUNT ( * ) THEN 48 END ), + ( 83 ) + 64 ) + + COUNT ( * ) / + 93
+----
+236
query I rowsort label-4627
SELECT ( - 51 ) / - 81 + - - 20 + 81 / + 34 AS col0
@@ -35716,10 +35731,13 @@ SELECT DISTINCT + MAX ( ALL - 9 ) AS col2
----
-9
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - 1746
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-6806
SELECT DISTINCT 3 * 97 * NULLIF ( + 6, - AVG ( DISTINCT + 69 ) * + 80 + - - CAST ( NULL AS FLOAT8 ) * + 77 )
+----
+1746
query I rowsort
SELECT + + 72 + 49 AS col2
@@ -37557,10 +37575,13 @@ SELECT ALL + ( + CASE 60 WHEN - 88 * - + 63 THEN MIN ( 2 ) * - - 49 + - 51 / - -
----
NULL
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-7155
SELECT 60 - - AVG ( DISTINCT - 36 ) + - 59 + - 54 * - + 24 + - CAST ( NULL AS INTEGER ) * + 80
+----
+NULL
query II rowsort label-7156
SELECT DISTINCT - 47 AS col0, 57 / - + 50 + - - 92
@@ -44438,10 +44459,13 @@ SELECT DISTINCT 4 * + 89 * CAST ( - - 93 AS INTEGER ) - + 16 AS col1
----
33092
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-8467
SELECT + CAST ( NULL AS INTEGER ) + + AVG ( DISTINCT - 4 )
+----
+NULL
query I rowsort label-8468
SELECT ALL + MIN ( DISTINCT - 39 )
@@ -46497,11 +46521,14 @@ SELECT + ( + - ( 88 ) ) - + + 14 col2
----
-102
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-# Datafusion - Expected - -45
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]I
+# Datafusion - [Actual ] [R]I
+query RI rowsort label-8861
SELECT + AVG ( DISTINCT - CAST ( - COALESCE ( - 67, 82, 28 ) AS INTEGER ) ) * - 40 * + - AVG ( - - 43 ) - 56 / - CAST ( NULL AS INTEGER ) / - 5 col2, + COUNT ( * ) + - - COUNT ( * ) * - 46
+----
+NULL
+-45
query I rowsort label-8862
SELECT + 1 + + 49 + + MAX ( ALL + 94 ) + - 19 * + 58 AS col2
@@ -48194,10 +48221,13 @@ SELECT - COUNT ( * ) / 40 col0
----
0
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-9184
SELECT ALL CAST ( NULL AS INTEGER ) * - AVG ( DISTINCT - + 68 ) * + 42
+----
+NULL
query I rowsort label-9185
SELECT + COUNT ( 12 ) * + 0 AS col2
@@ -50109,10 +50139,13 @@ SELECT + 74 * 72 * - CAST ( - 11 AS INTEGER ) AS col2, CASE - - 59 WHEN CAST ( N
58608
-15
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-9553
SELECT ( AVG ( DISTINCT - + 67 ) ) * + 41 + + 3 - + 37 + + CAST ( NULL AS INTEGER ) * ( 61 ) - CAST ( NULL AS INTEGER ) * 53
+----
+NULL
query I rowsort
SELECT + + 89 * 21
@@ -51054,10 +51087,13 @@ SELECT - 37, 10 - - 37 AS col2
query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(Int64\(82\)\) \+ Int64\(\-88\) AS col1" at position 0 and "Int64\(57\) \+ Int64\(\-59\) \+ count\(Int64\(49\)\) \* sum\(DISTINCT Int64\(\-48\)\) \+ Int64\(\-85\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\.
SELECT ALL + + MIN ( ALL 82 ) + - 88 AS col1, 57 + - 59 + + COUNT ( + 49 ) * + SUM ( DISTINCT - 48 ) + + - 85 AS col1
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-9735
SELECT ALL - - 5 + COUNT ( * ) + - AVG ( DISTINCT + 58 ) + + ( - 48 ) + - CAST ( NULL AS INTEGER ) * - 6 * + 14 AS col0
+----
+NULL
query I rowsort label-9736
SELECT + MIN ( + 93 )
diff --git a/data/sqlite/random/expr/slt_good_105.slt b/data/sqlite/random/expr/slt_good_105.slt
index 04822ca..09a3cab 100644
--- a/data/sqlite/random/expr/slt_good_105.slt
+++ b/data/sqlite/random/expr/slt_good_105.slt
@@ -1999,11 +1999,14 @@ SELECT DISTINCT CASE - 46 WHEN - 61 + 31 THEN - - 84 WHEN - - 43 + - + 66 THEN -
----
NULL
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - 1
-# Datafusion - Expected - -39
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] I[I]
+# Datafusion - [Actual ] I[R]
+query IR rowsort label-370
SELECT COUNT ( * ) AS col0, NULLIF ( - MIN ( DISTINCT NULLIF ( - - 39, 57 * + - CAST ( NULL AS INTEGER ) ) ), + AVG ( DISTINCT NULLIF ( + + 10, - 10 + - - 2 ) ) * - - 16 + 10 / + CAST ( NULL AS INTEGER ) + 62 + - 89 + + - CAST ( + + 33 AS INTEGER ) + - 26 + - CAST ( + 84 AS INTEGER ) )
+----
+1
+-39
query I rowsort label-371
SELECT - ( + + ( + MAX ( ALL + 16 ) ) ) AS col1
@@ -2640,10 +2643,13 @@ SELECT - - 40 * - - 27 AS col2
----
1080
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-493
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + CAST ( NULL AS INTEGER ) * 74 + + NULLIF ( + AVG ( DISTINCT + 17 ), - 46 * - + 0 ) - + 29
+----
+NULL
query I rowsort
SELECT ALL + - ( ( + 24 ) )
@@ -2902,10 +2908,13 @@ SELECT + + 17 * - + 42 + - 1 / + 21 AS col0
----
-714
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - -116681
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-544
SELECT DISTINCT - MIN ( - - 89 ) * + COALESCE ( + 82, 28 * - ( 42 ), + - CASE - 2 WHEN - - 89 THEN - AVG ( DISTINCT + 99 ) / - 58 + 68 * - CAST ( NULL AS INTEGER ) * - COUNT ( * ) ELSE + 24 END ) * + 16 - - 87
+----
+-116681
query I rowsort
SELECT ALL - + 71 - - 38 AS col0
@@ -10446,10 +10455,13 @@ SELECT ALL + 74 * CAST ( - + 94 AS INTEGER ) * 40 + 74
----
-278166
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-1982
SELECT - AVG ( DISTINCT 41 ) * - CAST ( NULL AS INTEGER ) + + 38 AS col0
+----
+NULL
query I rowsort label-1983
SELECT ALL NULLIF ( - 36, COUNT ( * ) * 29 * 97 )
@@ -12428,11 +12440,14 @@ SELECT + MIN ( + 42 ) AS col0
----
42
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - -4095
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] I[I]
+# Datafusion - [Actual ] I[R]
+query IR rowsort label-2360
SELECT + 63 * + MAX ( - 65 ), - AVG ( DISTINCT + 86 ) + - + 14 - - 71 + - + AVG ( ALL 87 ) * - COUNT ( * ) + - - SUM ( - 44 ) / - 66 + + ( + - CAST ( NULL AS INTEGER ) ) AS col0
+----
+-4095
+NULL
query I rowsort label-2361
SELECT 35 + + CASE WHEN 96 IS NULL THEN - NULLIF ( + 77, + COUNT ( * ) / + 36 - - 70 + 43 ) / + - 9 END
@@ -15333,10 +15348,13 @@ SELECT ALL + + 77 + MAX ( + 8 ) - + + 99 * - 21 AS col1, - 67 / - NULLIF ( COUNT
2164
487
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-2915
SELECT - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) + - AVG ( DISTINCT - 76 ) * - 63 AS col1
+----
+NULL
query I rowsort label-2916
SELECT DISTINCT + MAX ( + CAST ( NULL AS INTEGER ) ) * - 21
@@ -15698,10 +15716,13 @@ SELECT 73 * ( + 96 ) col1
----
7008
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-2984
SELECT 79 + CAST ( NULL AS INTEGER ) + + AVG ( DISTINCT - COALESCE ( 69, 12 ) )
+----
+NULL
query II rowsort label-2985
SELECT + COUNT ( * ) AS col2, - 8 + - 4 AS col0
@@ -17043,10 +17064,13 @@ SELECT ALL - 33 col0, - CAST ( NULL AS INTEGER ) col2
-33
NULL
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort
SELECT - 4 * NULLIF ( + 55, - - 66 + + + 68 ) * NULLIF ( + + 73, - ( NULLIF ( - + 55, - + AVG ( DISTINCT 0 ) ) ) * - - 63 ) - + + CASE + 24 WHEN 93 * + 59 THEN - 72 + - 64 END - 23 + + - 78 * - 34
+----
+NULL
query I rowsort
SELECT 14 * - + 21 AS col2
@@ -20315,10 +20339,13 @@ SELECT ALL 51 * - 72 * + CAST ( + COUNT ( * ) AS INTEGER ) + - 34 + - CAST ( - 2
----
-2140
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - -674
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-3860
SELECT + - 41 / 38 + 81 / - - 2 - 23 * - COALESCE ( + - 31, - AVG ( DISTINCT - 55 ) / + CAST ( NULL AS INTEGER ) )
+----
+-674
query I rowsort label-3861
SELECT ALL 59 * - 10 * + + 53 + COUNT ( * ) + - - ( + COUNT ( * ) ) * 10
@@ -22630,10 +22657,13 @@ SELECT + 3 + + 93
----
96
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-4305
SELECT CAST ( NULL AS INTEGER ) * CAST ( + - 61 AS INTEGER ) * 3 + - + 42 + 66 * - AVG ( DISTINCT 81 * + 23 )
+----
+NULL
query I rowsort label-4306
SELECT 57 + - COALESCE ( 59, - COUNT ( * ) * + 18 ) + CAST ( NULL AS INTEGER )
@@ -23096,10 +23126,13 @@ SELECT 34 AS col0, 85 * + + 58 + + 0 AS col1
34
4930
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-4393
SELECT ALL CAST ( NULL AS INTEGER ) - + COUNT ( * ) + + - AVG ( DISTINCT ( - COALESCE ( 53, + - 40 ) ) ) * + CAST ( 57 AS INTEGER ) * 71 AS col1
+----
+NULL
query I rowsort label-4394
SELECT - 6 / 12 AS col0
@@ -25875,10 +25908,10 @@ SELECT ALL - MIN ( DISTINCT - - 40 )
----
-40
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+query I rowsort label-4921
SELECT + ( - + ( + + CASE + ( - 12 ) WHEN NULLIF ( - AVG ( ALL + 45 ), AVG ( DISTINCT - - 45 ) ) THEN NULL WHEN - + COUNT ( * ) + - 10 - + 71 THEN NULL ELSE NULLIF ( 2, + - 62 * + 92 ) / - + 84 + + 7 + 65 END ) ) + + + CAST ( NULL AS INTEGER )
+----
+NULL
query I rowsort label-4922
SELECT 91 * - COUNT ( * ) - - 36 + + - 22 + + + 99 * + - 99 * - + ( + - 85 ) AS col1
@@ -35802,10 +35835,13 @@ SELECT 73 * + + MIN ( - 61 ) + - - COUNT ( * ) + - + 24 + - 87 + - - 27 AS col1
----
-4536
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-6813
SELECT DISTINCT + CAST ( NULL AS INTEGER ) - + - CASE + + 57 WHEN + 85 * + 56 + - - 37 THEN NULL ELSE 59 + - - AVG ( + + 2 ) + - - 34 - - + AVG ( DISTINCT + + 48 ) * + 5 * + 47 * - CAST ( - + COALESCE ( - - CAST ( NULL AS INTEGER ), + + 76, - COUNT ( * ) * - 76 * 4 ) AS INTEGER ) END AS col1
+----
+NULL
query I rowsort
SELECT ALL - ( - + 8 ) AS col2
diff --git a/data/sqlite/random/expr/slt_good_106.slt b/data/sqlite/random/expr/slt_good_106.slt
index b51feaf..0db9d25 100644
--- a/data/sqlite/random/expr/slt_good_106.slt
+++ b/data/sqlite/random/expr/slt_good_106.slt
@@ -4241,10 +4241,13 @@ SELECT - ( + + 53 ) col1, - 91 + + COUNT ( * ) + 19 * 31
-53
499
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-807
SELECT DISTINCT NULLIF ( + + CASE - - 2 WHEN 12 + CAST ( NULL AS INTEGER ) THEN NULL ELSE 39 END, 49 ) + CAST ( NULL AS FLOAT8 ) * COALESCE ( 76 + + ( 95 ) * + NULLIF ( 49 * - COALESCE ( 9, + 26, 60 ), - AVG ( DISTINCT 7 ) / 41 ), - 4 * 99 ) AS col1
+----
+NULL
query I rowsort label-808
SELECT - CASE - COUNT ( * ) WHEN + + 59 THEN + 46 * ( 62 ) + 54 ELSE COUNT ( * ) + - 87 END AS col1
@@ -9031,11 +9034,14 @@ SELECT - - 36 col1
----
36
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - 75
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] I[I]
+# Datafusion - [Actual ] I[R]
+query IR rowsort label-1722
SELECT + 75 col2, CAST ( NULL AS INTEGER ) + AVG ( DISTINCT 30 ) + + COUNT ( * )
+----
+75
+NULL
query I rowsort label-1723
SELECT ALL + CASE + 44 WHEN - - 29 THEN NULL WHEN - COUNT ( * ) THEN NULL WHEN 5 THEN + + 99 END
@@ -9199,10 +9205,13 @@ SELECT ALL 78 + - 61 col2
----
17
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-1754
SELECT + CAST ( NULL AS INTEGER ) / - 17 * AVG ( DISTINCT + + 57 ) * - CASE 41 WHEN - 44 / 74 THEN - - 8 * MAX ( ALL + 75 ) - + 75 ELSE NULL END AS col0
+----
+NULL
query II rowsort label-1755
SELECT - NULLIF ( + + NULLIF ( - 80, COUNT ( - - CAST ( - 72 AS INTEGER ) ) * COUNT ( * ) ), 29 - - 54 ) col2, + 49 col1
@@ -19742,10 +19751,13 @@ SELECT ALL + 61 + - 91
----
-30
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - 5
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-3769
SELECT NULLIF ( + 5, - CAST ( NULL AS INTEGER ) / + AVG ( DISTINCT 19 ) + - + 46 ) AS col1
+----
+5
query I rowsort label-3770
SELECT + - 91 * + - NULLIF ( + ( + - 60 ), - COALESCE ( CAST ( - + 12 AS INTEGER ), + COUNT ( * ) ) )
@@ -23289,10 +23301,13 @@ SELECT ALL - - 90 * - + 73 + - 5 * COUNT ( * ) + - + 25 col0, + 20 + - COALESCE
-6600
61
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - -27
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-4444
SELECT + NULLIF ( + COALESCE ( - 27, AVG ( DISTINCT + 48 ) / + - NULLIF ( - 60, 41 ) * CASE - 41 WHEN + 40 + - 92 + - + COUNT ( * ) * + 80 * + ( + COUNT ( * ) ) / + CAST ( NULL AS INTEGER ) / + 55 THEN 69 + + CAST ( NULL AS INTEGER ) * + 38 ELSE NULL END + 87 ), + ( 11 ) + 78 )
+----
+-27
query I rowsort
SELECT ALL + + 91 * + 93 - - 17
@@ -31706,10 +31721,10 @@ SELECT 44 + CAST ( NULL AS INTEGER ) + + 78 AS col1
----
NULL
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+query I rowsort label-6055
SELECT ALL - 79 * + 13 * + + 85 * NULLIF ( + CASE + - 24 WHEN + AVG ( 24 ) / - 95 THEN - + 95 * + 94 WHEN - + AVG ( DISTINCT - 79 ) + CASE 52 WHEN CAST ( NULL AS INTEGER ) * 70 + - 97 THEN 78 WHEN 9 * + 85 + ( ( + 20 ) ) * + 18 THEN 84 + 30 ELSE NULL END THEN NULL END, COUNT ( * ) )
+----
+NULL
query I rowsort
SELECT ALL + 24 * - 53 AS col0
diff --git a/data/sqlite/random/expr/slt_good_107.slt b/data/sqlite/random/expr/slt_good_107.slt
index 8630338..fb84f56 100644
--- a/data/sqlite/random/expr/slt_good_107.slt
+++ b/data/sqlite/random/expr/slt_good_107.slt
@@ -2362,10 +2362,13 @@ SELECT ALL + MAX ( + 54 ) + + 69 * 17 AS col0
----
1227
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-445
SELECT ALL + COALESCE ( - + COALESCE ( + 70, 99, AVG ( DISTINCT + 48 ) ), CASE - 85 WHEN AVG ( ALL + 10 ) THEN - CAST ( NULL AS INTEGER ) WHEN + 21 + + 16 * COUNT ( * ) THEN 70 + 66 END ) + 3 * + CAST ( NULL AS INTEGER ) AS col1
+----
+NULL
query I rowsort
SELECT 29 + + 98 col2
@@ -3745,10 +3748,13 @@ SELECT CASE CAST ( NULL AS FLOAT8 ) WHEN - 25 THEN NULL ELSE + 20 END * + SUM (
----
1800
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-712
SELECT ALL + 29 * + + AVG ( DISTINCT - CAST ( NULL AS FLOAT8 ) ) - + - CAST ( NULL AS INTEGER ) * - 77 * - 72
+----
+NULL
# Datafusion - Types were automatically converted from:
# Datafusion - [Expected] [I]
@@ -12781,10 +12787,13 @@ SELECT - COALESCE ( CAST ( NULL AS INTEGER ), + 32 - + 91 * + 78, + 44 ), 10 * -
7066
-330
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-2438
SELECT + ( AVG ( DISTINCT - 83 ) ) + - + CAST ( NULL AS INTEGER ) + - + 43 * - 1
+----
+NULL
query II rowsort
SELECT 17 AS col2, - 26 col1
@@ -13114,10 +13123,13 @@ SELECT DISTINCT - + CASE + + ( 12 ) WHEN + 73 THEN NULL ELSE + 19 END AS col1
----
-19
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-2500
SELECT DISTINCT + - AVG ( DISTINCT - 76 ) + + - 27 * + 84 * - COUNT ( * ) / - + 46 * + 19 + - + CAST ( NULL AS INTEGER ) AS col0
+----
+NULL
query I rowsort label-2501
SELECT - NULLIF ( 45, + + COUNT ( 58 ) ) AS col0
@@ -13135,10 +13147,13 @@ SELECT ALL - 18, 98 AS col1
-18
98
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort
SELECT 35 * + - CASE - - 49 WHEN + 95 + + 91 THEN - CASE - 88 WHEN - + 16 / - 20 / + - 42 + + 34 * + 66 THEN NULL WHEN + 84 * + + 42 THEN + 36 * 0 END END + NULLIF ( 19, + AVG ( DISTINCT 21 ) * 45 ) / 43
+----
+NULL
query I rowsort
SELECT 59 - 71 AS col1
@@ -20933,10 +20948,10 @@ SELECT ALL - + 88 + 26
----
-62
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+query I rowsort label-3985
SELECT ALL 69 + - COALESCE ( - 45, + + COALESCE ( + - 63, 38 * 7 * - - 27, + 81 ) * - CASE - 73 WHEN 29 THEN NULL WHEN + ( 89 ) * 52 THEN NULL ELSE SUM ( DISTINCT + 78 ) + SUM ( 65 ) END, 94 * COUNT ( * ) + - 33, - 16 * NULLIF ( + MAX ( DISTINCT - 64 ), CASE 42 WHEN CASE MIN ( 25 ) WHEN - CAST ( NULL AS INTEGER ) THEN NULL ELSE - 36 END * - COUNT ( * ) + - 38 THEN 35 / 59 ELSE COALESCE ( CASE + 41 WHEN COUNT ( * ) + 39 THEN + 45 END, 36 ) END * - CAST ( + AVG ( DISTINCT 47 ) + 54 * - 64 [...]
+----
+NULL
query II rowsort
SELECT + + ( + - 98 ) * 1 + + 45 AS col2, + 70
@@ -41393,11 +41408,14 @@ SELECT + 45 - - 2 - + 86 AS col2
----
-39
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-# Datafusion - Expected - 37
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]I
+# Datafusion - [Actual ] [R]I
+query RI rowsort label-7878
SELECT + CAST ( 28 AS INTEGER ) + - - COALESCE ( 63, + 12 ) + + 20 + - 65 + 41 * - ( - - 64 ) * - 97 / - CAST ( NULL AS INTEGER ) * - 19 + AVG ( DISTINCT 80 ), 37 AS col1
+----
+NULL
+37
query I rowsort
SELECT ALL 46 * + - 92 AS col2
@@ -42190,10 +42208,13 @@ SELECT ALL + 54 * - - 38 * 74 AS col0
----
151848
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort
SELECT + AVG ( DISTINCT + 4 ) + + CASE 20 WHEN - ( + 87 ) THEN - 85 + - 85 WHEN + 88 THEN NULL END AS col1
+----
+NULL
query II rowsort label-8031
SELECT + 67 + COUNT ( * ) col1, + COUNT ( * )
@@ -43902,10 +43923,10 @@ SELECT ALL - 16 * 5 + + 33 * - 23 + - COALESCE ( - 55, 18 + - 27, - MIN ( DISTIN
----
NULL
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+query I rowsort label-8355
SELECT + + CASE + 63 WHEN - COUNT ( * ) - - 58 + CASE WHEN + 31 BETWEEN + - SUM ( DISTINCT - + 40 ) AND + + ( + + 64 ) * - COUNT ( * ) * + - 10 THEN - MAX ( DISTINCT + 17 ) WHEN - 15 + + - AVG ( DISTINCT + + 71 ) - - NULLIF ( + 63, COALESCE ( + 49, 73 ) ) * + 59 - 92 >= 24 + + 47 * - 44 * 69 AND NOT NULL IS NOT NULL THEN 54 * + + 61 ELSE 27 END - - + 41 * - 47 - CAST ( NULL AS FLOAT8 ) THEN - - 58 WHEN - ( - + COUNT ( * ) ) + ( + + COUNT ( * ) ) * - 79 THEN NULL ELSE NULL END * - 17 * - [...]
+----
+NULL
query I rowsort label-8356
SELECT ALL + MAX ( - + 40 ) AS col1
@@ -47607,10 +47628,10 @@ SELECT DISTINCT - + 93 * 2 + - NULLIF ( + 94, - 90 - + 37 + - + 14 - + + 38 * -
----
-312
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+query I rowsort label-9070
SELECT ALL + + COUNT ( * ) * MIN ( DISTINCT - - 65 ) * - 88 + + CAST ( NULL AS INTEGER ) + + ( - - 67 ) - + 29 + 30 + - - 67 + - - 62 * - 79 / - + COUNT ( * ) * - - CASE 73 WHEN - ( - 1 ) * AVG ( DISTINCT 50 ) + + 76 * 14 THEN - 66 ELSE NULL END AS col1
+----
+NULL
query I rowsort label-9071
SELECT - NULLIF ( - COUNT ( * ), - + NULLIF ( 3, + + COUNT ( * ) ) ) * + 80 + 88 AS col2
@@ -49569,10 +49590,13 @@ SELECT ALL - 85 * - 48
query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(2\) AS col0" at position 0 and "Int64\(67\) \* \(\- Int64\(91\)\) \+ \(\- CASE \(\- Int64\(\-16\)\) WHEN CAST\(Int64\(29\) AS Int32\) THEN Int64\(71\) / Int64\(21\) \+ Int64\(30\) \- CAST\(Int64\(\-87\) AS Int32\) \+ \(\- Int64\(\-20\)\) ELSE CAST\(NULL AS Int32\) END\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\.
SELECT DISTINCT + 2 AS col0, + ( + 67 ) * - + 91 + - ( + + CASE - - 16 WHEN + CAST ( 29 AS INTEGER ) THEN + 71 / + 21 + 30 - + CAST ( - 87 AS INTEGER ) + - - 20 ELSE + CAST ( NULL AS INTEGER ) END ) col0
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-9446
SELECT + + 46 + - 87 + 91 + 15 * COALESCE ( - - 52, + 1, - NULLIF ( - 76, - COUNT ( * ) ) + - 48 * - CAST ( - AVG ( DISTINCT - 25 ) AS INTEGER ) ) * 49 + + CAST ( NULL AS FLOAT8 ) + - 44 * - 32
+----
+NULL
query I rowsort label-9447
SELECT - NULLIF ( 48, COALESCE ( + - ( - 7 ), 85, - 83 + + 71 ) / - 55 + + + COUNT ( * ) + - COUNT ( * ) * ( - SUM ( + 3 ) ) ) AS col2
diff --git a/data/sqlite/random/expr/slt_good_108.slt b/data/sqlite/random/expr/slt_good_108.slt
index 813bc71..93b29eb 100644
--- a/data/sqlite/random/expr/slt_good_108.slt
+++ b/data/sqlite/random/expr/slt_good_108.slt
@@ -5866,10 +5866,10 @@ SELECT + 75 + - MAX ( DISTINCT - - 65 ) * + 31 + + 46 - - 21 * 12 * - 79 - + 15
----
-22822
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Arrow error: Divide by zero error
+query I rowsort label-1114
SELECT DISTINCT + CASE COUNT ( * ) WHEN + ( + 19 ) + + - 42 THEN + 86 WHEN - 89 - - 98 THEN NULL ELSE - ( + - 68 ) - + 33 + CAST ( NULL AS INTEGER ) + COALESCE ( - COALESCE ( 41, + - ( + - 21 ) - - 20 / + 64 ), + 15, - - 69 * 74 * + 29 - - 86 * - 75 / 0 ) * - COUNT ( * ) END * + + 98
+----
+NULL
query I rowsort label-1115
SELECT - 28 * 54 + + - COUNT ( + 71 )
@@ -6868,10 +6868,13 @@ SELECT - COUNT ( * ) + + - 26 * - 83 * - 63 AS col2, + ( - - 24 ) / - 9 AS col0
query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(27\) AS col2" at position 0 and "Int64\(17\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\.
SELECT DISTINCT - + COUNT ( * ) * 27 AS col2, + 17 AS col2
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-1303
SELECT - AVG ( DISTINCT + 84 ) * ( + - CAST ( NULL AS INTEGER ) )
+----
+NULL
query I rowsort
SELECT - - COALESCE ( + - 10, + + 22, - 44 ) * - 68 col1
@@ -7735,10 +7738,13 @@ SELECT ALL - 97 - + 11 AS col0
----
-108
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-1469
SELECT AVG ( DISTINCT 17 ) + + CAST ( 88 AS INTEGER ) * - CAST ( NULL AS INTEGER ) / + 83 * + COUNT ( * )
+----
+NULL
query I rowsort
SELECT ALL - 52 * 57
@@ -11079,10 +11085,10 @@ SELECT - + NULLIF ( - COALESCE ( - - 66, + COALESCE ( - + 96, - MIN ( + 30 ), +
----
5346
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+query I rowsort label-2113
SELECT - 19 * 44 + 25 + - CASE - 31 WHEN + 53 THEN + 45 * - - 72 + - + 54 END - - 29 * + 19 + - ( CASE 32 WHEN + CASE 7 WHEN + 73 THEN NULL ELSE + AVG ( DISTINCT 73 ) + + 65 END THEN NULL WHEN 48 - 86 THEN NULL ELSE + 63 * 19 + ( + NULLIF ( ( MIN ( 48 ) ), + COUNT ( * ) ) ) * COUNT ( * ) END )
+----
+NULL
query I rowsort
SELECT DISTINCT - 3 * + NULLIF ( + - 29, + 50 ) * 82 - 44 - + 36 * + 88 * - 89 + + - 36 + + 65 AS col1
@@ -22730,10 +22736,10 @@ SELECT 81 * + ( + 80 ) + 59 col0
----
6539
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+query I rowsort label-4337
SELECT DISTINCT + CAST ( - + CASE + 51 WHEN + + 40 THEN - ( 30 ) WHEN + - 43 THEN NULL ELSE NULL END AS INTEGER ) * + - 37 / + CASE - 40 WHEN + 3 * + CASE + NULLIF ( 28, 92 / 82 ) WHEN - + CAST ( NULL AS INTEGER ) THEN 23 + + 32 WHEN - + 15 * 12 THEN NULL ELSE NULL END * + CAST ( NULL AS INTEGER ) / + + ( 65 ) * + CASE + 72 WHEN + + 30 * - 41 * + 21 THEN 73 WHEN - 1 * + 42 THEN NULL ELSE NULL END + 20 * - 84 + AVG ( DISTINCT - 45 ) THEN - 41 WHEN NULLIF ( 27, 69 ) THEN 14 * + 11 ELSE NUL [...]
+----
+NULL
query II rowsort label-4338
SELECT + 84 * CAST ( NULL AS INTEGER ) + 53 AS col2, 48
@@ -23331,10 +23337,10 @@ SELECT ALL - 69 col1, CAST ( - - 43 AS INTEGER ) + + 68, - + CAST ( - COALESCE (
111
24
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+query I rowsort label-4452
SELECT ALL + CASE 38 WHEN + 37 - ( + - NULLIF ( + 12, + 28 ) ) THEN + - 17 WHEN - 3 / 58 * + CAST ( NULL AS INTEGER ) + - MIN ( + 35 ) * 67 * + CASE NULLIF ( - - AVG ( DISTINCT + 75 ), 58 ) WHEN + 9 THEN + COUNT ( * ) * + COUNT ( * ) / - + 86 * + COUNT ( * ) WHEN - CAST ( + NULLIF ( + + 87, + - 82 ) AS INTEGER ) * 33 * - 27 THEN 30 * - MAX ( ALL + ( 24 ) ) END THEN - 35 WHEN - 73 THEN NULL END + + 64 / - CAST ( COUNT ( * ) + - 89 AS INTEGER ) AS col0
+----
+NULL
query II rowsort
SELECT + 90 AS col2, - 39 AS col0
@@ -30578,10 +30584,13 @@ SELECT NULLIF ( + CASE WHEN NOT - 71 IS NOT NULL THEN + 21 * + 42 ELSE NULL END,
NULL
40
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - -37
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-5835
SELECT - 45 - NULLIF ( - 8, + - CASE - 5 WHEN + 72 THEN NULL WHEN - 16 THEN + 58 * + ( + 62 ) + + CASE 37 WHEN - - 90 THEN - - 76 END + + 83 + - 78 * ( 53 ) + + NULLIF ( - 32, - ( - + 25 ) * 5 * - 31 * - AVG ( DISTINCT + 96 ) + COUNT ( * ) ) * 96 WHEN - 85 THEN ( - 98 ) END ) AS col1
+----
+-37
query I rowsort
SELECT ALL + 75 * - - 96 * 34 AS col1
@@ -30898,11 +30907,14 @@ SELECT ALL - 96 AS col2, + 24 AS col0
-96
24
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] I[I]
+# Datafusion - [Actual ] I[R]
+query IR rowsort label-5897
SELECT 21 * 60 + CASE - 38 WHEN + COUNT ( * ) THEN + 46 + 46 - - 17 END * + + CASE - - 31 WHEN NULLIF ( + - ( + + ( 10 ) ), - + COUNT ( * ) ) THEN - 89 ELSE NULL END AS col2, 44 * - CAST ( NULL AS INTEGER ) + + - ( - AVG ( DISTINCT - 83 ) )
+----
+NULL
+NULL
query II rowsort
SELECT 95, 27 col0
@@ -31685,10 +31697,13 @@ SELECT ALL - 66 + - 94 / - 10 AS col0
----
-57
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-6046
SELECT - AVG ( DISTINCT - 5 ) * 8 + 74 + - CASE + CAST ( + 49 AS INTEGER ) WHEN - 15 THEN - 31 WHEN 75 THEN - - 9 WHEN - CAST ( NULL AS INTEGER ) + - MIN ( - 43 ) THEN + 48 * - AVG ( 63 ) * - SUM ( + - 77 ) / - 12 + + ( 80 ) * - 60 - - 91 / - 58 ELSE - 66 END * CAST ( 58 AS INTEGER ) * + 56 * + CASE 82 WHEN 76 / - ( - 46 * 47 ) + 41 * - 51 THEN 56 * + 83 + 96 / - 70 WHEN 42 / + 79 THEN + 7 END + ( 83 ) * - 94 - 81 AS col1
+----
+NULL
query I rowsort label-6047
SELECT DISTINCT + 53 * + 45 + + 94 + + - CAST ( NULL AS INTEGER ) * 56 * - 57 + NULLIF ( 54, - 20 ) / 16 + - 68 AS col1
@@ -46703,10 +46718,13 @@ SELECT DISTINCT ( + 95 ) * 42
----
3990
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-8910
SELECT ALL 71 * - + COALESCE ( - 72, - 83 ) * - 47 + + AVG ( DISTINCT 50 ) + - 13 + 8 + - 70 / CAST ( NULL AS INTEGER ) / + 46 + - 28 + - 22 * - + 3 * + MAX ( 81 )
+----
+NULL
query I rowsort label-8911
SELECT COUNT ( * ) * - 6 * - 33 * + 75 - + 17 * + 28 AS col2
@@ -48668,10 +48686,13 @@ SELECT - NULLIF ( - + 12, 48 ) + - + 14 + CAST ( + - 67 AS INTEGER ) + - 28 * +
----
-797
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-9285
SELECT ALL CASE - + 59 WHEN 58 * + 28 * - 49 - - 77 / + + 10 - 2 THEN - + 43 / 15 + + MAX ( + 55 ) + + CAST ( NULL AS INTEGER ) + - 99 - 40 - AVG ( DISTINCT + 75 ) + ( + 39 ) * + 95 * - 22 / + 66 WHEN - - 27 * 49 * - + ( + COUNT ( * ) ) + - 38 * 64 + - 63 THEN COUNT ( * ) / 10 + + 7 + - 44 END - - - 93 AS col2
+----
+NULL
query II rowsort label-9286
SELECT ALL + 83 AS col2, COUNT ( * ) AS col0
diff --git a/data/sqlite/random/expr/slt_good_109.slt b/data/sqlite/random/expr/slt_good_109.slt
index f014614..83de615 100644
--- a/data/sqlite/random/expr/slt_good_109.slt
+++ b/data/sqlite/random/expr/slt_good_109.slt
@@ -1573,11 +1573,14 @@ SELECT - + CAST ( + 43 AS INTEGER ) AS col1, 46
-43
46
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]I
+# Datafusion - [Actual ] [R]I
+query RI rowsort label-294
SELECT ALL - AVG ( DISTINCT - 44 ) + CAST ( NULL AS INTEGER ) + + 24 + - 21 * COALESCE ( + 65, + 81, - CAST ( - - 95 AS INTEGER ) + MAX ( DISTINCT + 95 ) * + 74 * + 67 ) + - 2 AS col1, - CAST ( NULL AS INTEGER ) * - - 27
+----
+NULL
+NULL
query I rowsort label-295
SELECT DISTINCT 15 + - 31 - - 75 + + + 40 + - + 84 * - 64 + + + 39 / + NULLIF ( 54, + 65 ) + + - 62
@@ -2436,10 +2439,13 @@ SELECT ALL ( - - COUNT ( * ) ) + 40 AS col1
----
41
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-459
SELECT DISTINCT CAST ( + 24 AS INTEGER ) + + CAST ( NULL AS INTEGER ) / ( - 12 ) * AVG ( DISTINCT + CASE - 19 WHEN 84 THEN NULL ELSE + ( 87 ) END ) AS col2
+----
+NULL
query I rowsort
SELECT ( + + 52 ) + - 63
@@ -6289,10 +6295,13 @@ SELECT + 35, - 21 AS col0
35
-21
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-1196
SELECT - AVG ( DISTINCT - 55 ) * 79 + + CAST ( NULL AS INTEGER )
+----
+NULL
query I rowsort
SELECT DISTINCT - + COALESCE ( - - 83, - 55 * 55 + - 14 ) AS col2
@@ -7974,11 +7983,14 @@ SELECT - CASE + + CASE + + 25 WHEN 90 THEN NULL WHEN - COUNT ( * ) THEN COUNT (
----
-38
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - 13
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] I[I]
+# Datafusion - [Actual ] I[R]
+query IR rowsort label-1524
SELECT ALL 13 col0, CASE ( + 17 ) WHEN + - 31 THEN NULL ELSE + 99 * + + 31 * AVG ( DISTINCT 44 ) - - ( - 39 ) END - CAST ( NULL AS FLOAT8 )
+----
+13
+NULL
query I rowsort label-1525
SELECT DISTINCT 6 * + + 23 + - 4 - + COUNT ( * ) * - 85
@@ -23533,10 +23545,10 @@ SELECT - + 4 * + + MAX ( DISTINCT + 11 ) * + - COUNT ( * ), 97 AS col1
44
97
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+query I rowsort label-4496
SELECT ALL - CASE + 86 WHEN - NULLIF ( - 57, - NULLIF ( - SUM ( 65 ), ( - 9 ) ) * + - 7 - - 30 ) * + 45 + + + 33 THEN NULL WHEN SUM ( DISTINCT + 41 ) + + CAST ( + CAST ( NULL AS INTEGER ) AS FLOAT8 ) + + + 54 - 65 + - ( - AVG ( DISTINCT + 81 ) ) * - - 65 * - 50 * 7 + - + ( MAX ( DISTINCT + 91 ) ) + 88 + + + 85 * - 26 * - 17 THEN + ( COUNT ( * ) ) WHEN + - 48 / COUNT ( * ) THEN COALESCE ( 85, - CAST ( NULL AS INTEGER ), - 14, - - MAX ( + 35 ) * ( + - 80 ) ) - 24 END AS col2
+----
+NULL
# Datafusion - Datafusion expected results:
# Datafusion - Expected - 140
@@ -23916,10 +23928,10 @@ SELECT - SUM ( DISTINCT 34 ) * - + COUNT ( + 16 ) * MAX ( + 51 ) * - 23 * 72 + +
----
-2871534
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+query I rowsort
SELECT + 9 * ( - CASE WHEN NOT NULL IN ( 65, AVG ( DISTINCT + 32 ) * 86, + - 11, 14 ) THEN - 66 ELSE NULL END ) + 22 + - 30
+----
+NULL
query II rowsort label-4568
SELECT COUNT ( * ), 3 AS col2
@@ -38673,10 +38685,13 @@ SELECT + 84 * + + 22 + - 83 AS col0, + 95 AS col1
1765
95
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-7384
SELECT - + CAST ( NULL AS INTEGER ) - + + AVG ( DISTINCT + + 14 )
+----
+NULL
query I rowsort label-7385
SELECT ALL - 13 / + COUNT ( * ) + - 15 * + - 61
@@ -45742,10 +45757,13 @@ SELECT - CAST ( NULL AS FLOAT8 ) * + 12 + - - 99 + COUNT ( * )
----
NULL
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-8743
SELECT + 43 * - CAST ( NULL AS INTEGER ) * AVG ( DISTINCT 46 )
+----
+NULL
query I rowsort label-8744
SELECT + 61 / - 81 AS col2
@@ -46975,10 +46993,10 @@ SELECT - 24 * + - ( + CAST ( + NULLIF ( + COUNT ( * ), 21 ) AS INTEGER ) ), + 69
24
73
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+query I rowsort label-8979
SELECT ALL - CASE 62 WHEN ( - AVG ( DISTINCT 68 ) ) * CAST ( NULL AS INTEGER ) + + - 55 - + + ( + ( 81 ) ) + + + 85 - + 3 + - 98 THEN NULL WHEN COUNT ( * ) * 23 THEN NULL WHEN - COUNT ( * ) THEN + COUNT ( * ) * + 42 + 25 * 37 WHEN 90 - - AVG ( ALL + 6 ) THEN NULL END / CAST ( NULL AS INTEGER )
+----
+NULL
query I rowsort label-8980
SELECT - 28 * COUNT ( * )
@@ -49177,10 +49195,13 @@ SELECT - 97 AS col0, CAST ( - ( 61 ) AS INTEGER )
-97
-61
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort
SELECT + - AVG ( DISTINCT 7 ) / - + 55 / + - CASE + 4 WHEN + - ( 87 ) - 68 + 62 THEN - 53 ELSE NULL END + - COALESCE ( 85, - - 77 ) * + - 35
+----
+NULL
# Datafusion - Datafusion expected results:
# Datafusion - Expected - 59
diff --git a/data/sqlite/random/expr/slt_good_11.slt b/data/sqlite/random/expr/slt_good_11.slt
index ba38763..efab0c6 100644
--- a/data/sqlite/random/expr/slt_good_11.slt
+++ b/data/sqlite/random/expr/slt_good_11.slt
@@ -9703,10 +9703,13 @@ SELECT ALL + SUM ( - 18 ) * MAX ( + + ( 15 ) )
----
-270
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-1847
SELECT - COUNT ( * ) * CAST ( NULL AS FLOAT8 ) + + 80 + - + 6 - - AVG ( DISTINCT 70 ) * + 42 * + 39
+----
+NULL
query I rowsort
SELECT DISTINCT + + 19 * - 95 * - 18
@@ -13515,10 +13518,13 @@ SELECT - SUM ( ALL - + 96 ) AS col0
----
96
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-2573
SELECT ALL 73 + + + 49 + + 79 - + + CASE 81 WHEN - 85 THEN NULL WHEN - - 40 THEN + ( - COUNT ( * ) ) * 22 ELSE NULL END / - + 64 * + NULLIF ( - + 65, CASE CAST ( NULL AS INTEGER ) WHEN 98 / 3 + 59 THEN 44 + - SUM ( DISTINCT + 83 ) * AVG ( DISTINCT - 21 ) ELSE NULL END + 92 * + CAST ( NULL AS INTEGER ) ) - ( 78 ) AS col0
+----
+NULL
query I rowsort
SELECT DISTINCT - 16 + - 14
@@ -26638,11 +26644,14 @@ SELECT - 79 + CAST ( NULL AS INTEGER )
----
NULL
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - -3994
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] I[I]
+# Datafusion - [Actual ] I[R]
+query IR rowsort label-5061
SELECT DISTINCT + - 85 * 45 + - 84 + + - 85 AS col1, + 39 * - + CAST ( NULL AS INTEGER ) * AVG ( DISTINCT 61 )
+----
+-3994
+NULL
query I rowsort
SELECT DISTINCT + COALESCE ( + 80, - 37 ) * - 98 * - - NULLIF ( 85, 69 ) + - 89
@@ -27352,10 +27361,13 @@ SELECT DISTINCT + 72 / COUNT ( * ) - + 14 AS col0
----
58
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-5196
SELECT - CASE + 83 WHEN + 96 THEN 78 END + + AVG ( DISTINCT - + CAST ( + + 45 AS FLOAT8 ) ) AS col2
+----
+NULL
query I rowsort label-5197
SELECT + 3 / - 38 AS col1
@@ -28180,10 +28192,13 @@ SELECT 29 * + 49 AS col2
----
1421
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-5356
SELECT + CAST ( - AVG ( DISTINCT + + 55 ) AS FLOAT8 ) * - ( + 74 ) * - 39 + NULLIF ( - 96, - 31 + + + 52 * 52 ) + - 17 / - CAST ( NULL AS INTEGER ) + 59 * + - CAST ( NULL AS INTEGER ) AS col1
+----
+NULL
query I rowsort label-5357
SELECT DISTINCT + 0 / + 84
@@ -34101,10 +34116,13 @@ SELECT NULLIF ( - NULLIF ( 81, 81 * - NULLIF ( + + 18, - ( + COUNT ( * ) ) - 83
----
-44
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-6492
SELECT AVG ( DISTINCT 20 ) * + CAST ( NULL AS INTEGER ) AS col2
+----
+NULL
query II rowsort
SELECT 85 + + 76 AS col0, 5 AS col2
@@ -49783,10 +49801,13 @@ SELECT - ( + - 90 ) / + 84 col0
----
1
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-9485
SELECT - + CASE ( - 81 ) WHEN 64 * 76 + - 44 + + + 11 - + + 5 * + 34 THEN - 72 + - ( + + CAST ( NULL AS INTEGER ) ) WHEN - - 51 THEN NULL ELSE NULL END * - - ( COUNT ( * ) ) * - + CAST ( + 86 AS INTEGER ) + - AVG ( DISTINCT - 7 ) + + - 12
+----
+NULL
query I rowsort
SELECT - - 61 * CASE - 46 WHEN 54 THEN NULL ELSE + - 18 END * 18
@@ -49979,10 +50000,13 @@ SELECT ALL + 22 * - ( + + COUNT ( DISTINCT 76 ) ) * - MIN ( + 70 ), - 69 AS col2
1540
-69
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-9523
SELECT DISTINCT - AVG ( DISTINCT - 49 ) + - CAST ( NULL AS FLOAT8 ) + - - 30 + 2 * - + 33
+----
+NULL
query I rowsort
SELECT DISTINCT - 95 + + - 23
diff --git a/data/sqlite/random/expr/slt_good_110.slt b/data/sqlite/random/expr/slt_good_110.slt
index f98a248..05b6158 100644
--- a/data/sqlite/random/expr/slt_good_110.slt
+++ b/data/sqlite/random/expr/slt_good_110.slt
@@ -1562,10 +1562,13 @@ SELECT - - 29 + + + 31
----
60
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-294
SELECT ALL 89 * - AVG ( DISTINCT 74 ) * - CAST ( NULL AS INTEGER )
+----
+NULL
query I rowsort label-295
SELECT + MIN ( DISTINCT 17 ) * - 84 col1
@@ -2820,10 +2823,13 @@ SELECT - COALESCE ( + + 18, - + ( COUNT ( * ) ) ) + - + COALESCE ( + 70, 76 + -
----
4672
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-532
SELECT + 97 * - + COUNT ( * ) * - - NULLIF ( CASE + 42 WHEN + - 51 THEN + + CASE - + 20 WHEN + + 23 / + CAST ( + CAST ( + 2 AS INTEGER ) AS INTEGER ) * - - 22 - AVG ( DISTINCT - 32 ) + 37 - - 74 + 69 THEN NULL WHEN + 36 THEN 14 - ( + ( - 68 ) ) * - COUNT ( * ) WHEN + 31 + + CAST ( 59 + - 77 * + 86 AS INTEGER ) THEN + 23 + + 72 * + 29 ELSE - 34 * 99 + + 7 * + 33 END / 49 END, 4 * + 36 + 18 ) + 52 * - CAST ( NULL AS FLOAT8 ) AS col1
+----
+NULL
# Datafusion - Datafusion expected results:
# Datafusion - Expected - -123
@@ -3233,10 +3239,13 @@ SELECT DISTINCT + 92 - 37 + - 76 * + 95
----
-7165
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-610
SELECT - - 61 * AVG ( DISTINCT + + ( 53 ) ) + - - CAST ( NULL AS INTEGER ) AS col1
+----
+NULL
query I rowsort label-611
SELECT + + 56 * + MAX ( - ( - 17 ) ) * - + COUNT ( ALL 52 ) + - + 53 + - + 37 + - 41 / - - 81 * - 30 * 85 + - COUNT ( * ) / - + 74
@@ -7056,10 +7065,10 @@ SELECT 93 * + 27 + - 59 + + + 18 AS col2
----
2470
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+query I rowsort label-1332
SELECT DISTINCT + + 29 * + CASE + - 99 WHEN - 13 - - NULLIF ( 29, COUNT ( * ) ) + + - 23 + + 34 + 28 * 50 THEN - - 37 WHEN 15 * - 74 + CAST ( NULL AS FLOAT8 ) + + - ( 12 ) + - + 59 + COUNT ( * ) + - AVG ( DISTINCT - 69 ) THEN NULL END
+----
+NULL
query I rowsort label-1333
SELECT - + COUNT ( * ) * - 37 / 31 AS col2
@@ -8980,10 +8989,13 @@ SELECT ALL + COUNT ( * ) + + 60 * 8
----
481
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-1705
SELECT ALL - CAST ( NULL AS INTEGER ) + + - AVG ( DISTINCT + - 54 )
+----
+NULL
query I rowsort
SELECT DISTINCT 92 + - 60 * - 83
@@ -9743,10 +9755,13 @@ SELECT + 87 / 50 - + + 24 - 31
----
-54
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-1850
SELECT ALL 77 * + + ( - AVG ( DISTINCT - 48 ) ) * 82 * 33 - + CAST ( NULL AS INTEGER )
+----
+NULL
query I rowsort label-1851
SELECT + 16 / + ( + 87 ) * 78 + ( - 41 ) / SUM ( + CAST ( NULL AS INTEGER ) ) * 74 - 32 / 92
@@ -12274,10 +12289,13 @@ SELECT + 90 * + + 45
----
4050
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-2328
SELECT - CAST ( NULL AS INTEGER ) * - AVG ( DISTINCT - + 93 ) / + COUNT ( * ) + CAST ( NULL AS INTEGER ) + - 43 col1
+----
+NULL
query I rowsort label-2329
SELECT DISTINCT ( CAST ( + + COALESCE ( - 66, - COALESCE ( - - 68, - CAST ( + + 48 AS INTEGER ) + - - NULLIF ( - MAX ( 92 ), + - ( + - 89 ) * - MAX ( DISTINCT 89 ) ) ) + 36 ) AS INTEGER ) )
@@ -14642,11 +14660,14 @@ SELECT SUM ( + 76 ) + + 18 * + COUNT ( * )
----
94
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-# Datafusion - Expected - 84
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]I
+# Datafusion - [Actual ] [R]I
+query RI rowsort label-2777
SELECT + ( + NULLIF ( 41, - 92 + COUNT ( * ) ) ) / + CAST ( NULL AS INTEGER ) / 96 * + - 70 + - COUNT ( * ) / 69 * + 48 - + AVG ( DISTINCT 5 ), + 84 AS col0
+----
+NULL
+84
query I rowsort
SELECT + 23 * - - 37 + - 41 + - 98
@@ -19995,11 +20016,11 @@ SELECT ALL - COUNT ( * ) * + - 55 + - 3
----
52
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - 0
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+query II rowsort label-3800
SELECT ALL + COUNT ( * ) * - ( - 49 ) / - 92 AS col1, 2 * - + CASE WHEN NOT NULL = + 61 THEN NULL WHEN NOT ( 12 ) NOT BETWEEN NULL AND ( NULL ) THEN NULL WHEN NOT NULL NOT BETWEEN ( + 90 ) * + CAST ( + + AVG ( DISTINCT + 62 ) AS INTEGER ) + 16 / + - 68 AND ( 95 * - 26 ) THEN + 80 + 95 END
+----
+0
+NULL
query I rowsort label-3801
SELECT ALL CAST ( + + 34 AS INTEGER )
@@ -23241,10 +23262,13 @@ SELECT ALL ( 97 ) * - 49 + + 8
----
-4745
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-4419
SELECT DISTINCT CASE CAST ( NULL AS INTEGER ) WHEN + - ( + 64 ) THEN - - 47 END / - AVG ( DISTINCT + 26 ) * + - 92 AS col0
+----
+NULL
query I rowsort label-4420
SELECT ALL 23 * + 6 * - - COALESCE ( CAST ( NULL AS INTEGER ), + 74 ) AS col0
@@ -36552,10 +36576,13 @@ SELECT MAX ( - - 29 ) + 93, - 61 AS col0
122
-61
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-6965
SELECT ALL 32 + - AVG ( DISTINCT - 66 ) + - 62 + + CAST ( NULL AS INTEGER ) * - 63 + + 26
+----
+NULL
query I rowsort
SELECT ALL 91 + 23
@@ -40002,10 +40029,13 @@ SELECT + COUNT ( * ) / + 89
----
0
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - -3094
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-7621
SELECT - 80 + NULLIF ( - 25, + ( + AVG ( DISTINCT 80 ) ) + 62 + + CAST ( NULL AS INTEGER ) ) + ( COUNT ( * ) ) * - 61 * 49 AS col2
+----
+-3094
query I rowsort
SELECT DISTINCT 84 * + 35 AS col0
@@ -40675,10 +40705,13 @@ SELECT + MAX ( - CASE + 56 WHEN - 29 THEN + 7 END ) * - 92
----
NULL
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-7749
SELECT + 94 + 46 - ( + AVG ( DISTINCT - 53 ) ) * - + CAST ( NULL AS INTEGER ) * + - 51 * 33 / - 99 * COUNT ( * )
+----
+NULL
query II rowsort label-7750
SELECT ALL SUM ( + 29 ) + 41 * + ( - + ( + 58 ) ) AS col0, 27
@@ -41016,10 +41049,13 @@ SELECT 49 * - 28 * 96 * - COUNT ( * ) * + 4 + + 97 * 88 AS col2
----
535384
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-7813
SELECT ALL 47 + + 52 * + - AVG ( DISTINCT + CAST ( NULL AS INTEGER ) ) + - - CAST ( NULL AS INTEGER ) * + - 95 AS col1
+----
+NULL
query I rowsort label-7814
SELECT - 85 * + + COUNT ( 82 ) * + - 96 * 78 - - 24 + - 15 + + + 81 / + - MIN ( 18 ) + + CAST ( 84 AS INTEGER ) col1
diff --git a/data/sqlite/random/expr/slt_good_111.slt b/data/sqlite/random/expr/slt_good_111.slt
index 73a8f8b..32d274e 100644
--- a/data/sqlite/random/expr/slt_good_111.slt
+++ b/data/sqlite/random/expr/slt_good_111.slt
@@ -171,10 +171,13 @@ SELECT DISTINCT ( SUM ( + 96 ) ) + - 50 AS col0
----
46
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-26
SELECT ALL AVG ( DISTINCT - 64 ) + + COUNT ( + 9 ) - - CAST ( NULL AS INTEGER ) col1
+----
+NULL
query I rowsort label-27
SELECT ALL + COUNT ( * ) * + 38 + - - 1
@@ -6135,11 +6138,14 @@ SELECT ALL - - 25, 57 col0
25
57
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - 52
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] I[I]
+# Datafusion - [Actual ] I[R]
+query IR rowsort label-1162
SELECT DISTINCT - - 52 AS col0, - NULLIF ( + 97, + NULLIF ( ( + 70 ), - - 91 + - NULLIF ( - 15, + 78 + - AVG ( DISTINCT ( - COALESCE ( - + 92, 27 ) ) ) + - 13 * + 40 ) ) ) * + + 47 - - - 68 + - - CASE - - CASE 80 WHEN COUNT ( * ) THEN + + NULLIF ( 18, + - COUNT ( * ) - + COUNT ( DISTINCT + 78 ) ) WHEN + 57 THEN NULL END WHEN - SUM ( DISTINCT 6 ) - 34 + - - 96 THEN + 51 ELSE NULL END + - + 53 * - COALESCE ( - 98, 29 + + - 81 + - - 52 * + + 85 + + 54 ) + - CAST ( NULL AS INTEGER )
+----
+52
+NULL
query II rowsort label-1163
SELECT DISTINCT - + 57, 10 + - + 42 - + + CAST ( - 67 AS INTEGER ) / - - 79 AS col1
@@ -10224,10 +10230,10 @@ SELECT DISTINCT - 19 col2, + ( - COUNT ( * ) )
-19
-1
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+query I rowsort label-1950
SELECT + CAST ( NULL AS INTEGER ) * - COALESCE ( 64, - - CASE CAST ( NULL AS INTEGER ) WHEN AVG ( DISTINCT - 70 ) * + 46 * + + NULLIF ( + - 23, + - 9 / - + COUNT ( * ) + - 19 * + AVG ( - - 74 ) * + CAST ( NULL AS INTEGER ) + 3 ) + + + 43 * + 51 * ( 40 ) THEN + 12 + + 11 * 17 END ) AS col1
+----
+NULL
query I rowsort
SELECT 37 * 78
@@ -14914,11 +14920,14 @@ SELECT ALL + CAST ( NULL AS INTEGER ) / + - 11
----
NULL
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-# Datafusion - Expected - -91
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]I
+# Datafusion - [Actual ] [R]I
+query RI rowsort label-2844
SELECT ALL - 47 * - CAST ( NULL AS INTEGER ) + + - AVG ( DISTINCT + + 79 ) + - - 59 AS col0, - 90 + - COUNT ( * )
+----
+NULL
+-91
query I rowsort label-2845
SELECT DISTINCT - 85 * + SUM ( DISTINCT + 66 ) * - - 20
@@ -18869,10 +18878,13 @@ SELECT - 74, + COALESCE ( + 67, 87 * - + COALESCE ( - + 4, + + 17 ) ) + + 70 AS
-74
137
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-3604
SELECT - 54 * + 85 + - - 69 * - 24 / + + ( CASE - 6 WHEN 8 / - 96 THEN - + 98 / + + 14 + + COALESCE ( - 42, 53, + CASE AVG ( 90 ) WHEN - - MIN ( 3 ) * + + 93 * - - 10 THEN NULL WHEN 95 + 77 THEN 90 END + + 96, AVG ( DISTINCT 97 ) ) * + COALESCE ( + COUNT ( * ) * 77, 89, COUNT ( * ) ) + + CAST ( 67 + + 93 AS INTEGER ) END ) * - 43 + 85 * CAST ( NULL AS INTEGER ) AS col0
+----
+NULL
query I rowsort
SELECT 20 + 38 * - 37
@@ -23587,10 +23599,13 @@ SELECT - CAST ( NULL AS INTEGER ) * + 23 / - 74
----
NULL
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-4499
SELECT + MIN ( DISTINCT + + ( + - 97 ) ) / - CASE 34 WHEN + 54 THEN COUNT ( * ) * MAX ( DISTINCT + + 83 ) / + CAST ( NULL AS INTEGER ) + + 41 * + CAST ( + SUM ( + 69 ) AS FLOAT8 ) + - NULLIF ( + 9, COALESCE ( 1, + + 11, NULLIF ( + 59, + AVG ( DISTINCT 8 ) - - COUNT ( * ) + - 29 * - 13 - - 81 + 10 ) + + - 36 ) ) END - - + 14 AS col0
+----
+NULL
query I rowsort
SELECT + NULLIF ( - - 46, 84 ) AS col1
@@ -25426,10 +25441,13 @@ SELECT DISTINCT + COUNT ( * ) * COUNT ( DISTINCT + - 57 )
----
1
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-4853
SELECT - - COALESCE ( 14, + - 6 * - + ( + COALESCE ( + 26, 53 - + ( - 63 ) + AVG ( DISTINCT 70 ) * - 66, + 89 ) ) / 35 + CAST ( NULL AS INTEGER ) * 70 ) * + CASE COUNT ( * ) WHEN - 19 THEN - 70 * - MAX ( + 34 ) END AS col2
+----
+NULL
query I rowsort
SELECT ALL - 2 * + 81 + - 60 AS col0
@@ -31801,10 +31819,10 @@ SELECT DISTINCT 59 * - 34 * + 37 + - 16
----
-74238
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+query I rowsort label-6063
SELECT CASE WHEN NOT NULL < - 4 THEN - NULLIF ( CASE + CAST ( + 27 AS INTEGER ) WHEN + 53 THEN + - 70 WHEN - 19 + 22 THEN NULL WHEN - + 14 THEN NULL ELSE CAST ( - AVG ( DISTINCT 42 ) AS INTEGER ) * CASE + - 53 WHEN 16 - - + 58 + + 55 * 82 + + 52 - + - 11 * + 22 THEN - 78 END * 5 + 93 END, 50 + - - 31 ) END col0
+----
+NULL
# Datafusion - Datafusion expected results:
# Datafusion - Expected - NULL
@@ -46794,10 +46812,13 @@ SELECT CAST ( NULL AS INTEGER ) * + 1 + + 16 AS col1
----
NULL
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-8922
SELECT ALL 92 + + ( + 69 ) - COALESCE ( + AVG ( 20 ), - CASE - - CAST ( - ( 4 ) AS FLOAT8 ) WHEN - MAX ( ALL 8 ) / - SUM ( + 15 ) THEN AVG ( DISTINCT + - 56 ) END * - + 29 - 46 * - + ( - 29 ) / + 43 / + 28 ) * 59 * + - 13 * + - 14 + + + 62 * + AVG ( ALL - 40 ) * 84 * - CASE - 11 WHEN + 98 THEN NULLIF ( + COUNT ( * ), + + 32 / 57 + + 12 ) WHEN 16 THEN NULL WHEN 19 + - 76 THEN 30 ELSE 50 END - CAST ( NULL AS INTEGER )
+----
+NULL
query I rowsort label-8923
SELECT + CASE 37 WHEN - COUNT ( * ) THEN NULL WHEN + 0 THEN - - 94 * + 90 * - 63 ELSE + + CASE 45 WHEN + - 40 THEN - + 57 + - 23 END END / 16 + - - 44 + + NULLIF ( - 62, + + COALESCE ( - 41, - COUNT ( * ) * 31 ) ) * 45 AS col1
@@ -51545,10 +51566,13 @@ SELECT + + ( + COUNT ( * ) ) - 10 - + - MAX ( ALL + 96 ) * - 70 - - COALESCE ( -
----
-1891
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-9830
SELECT - + 26 + + + CAST ( NULL AS FLOAT8 ) * - 92 + 13 + AVG ( DISTINCT + 58 ) - ( 76 ) + + 84 / + - 42 + 28 * 30 * - AVG ( ALL + 26 ) + COALESCE ( - 21, 55 ) / 96 * + 40
+----
+NULL
query I rowsort label-9831
SELECT + 88 - 41 + 4 + - 61 / - + ( + + NULLIF ( - 2, - 24 ) )
diff --git a/data/sqlite/random/expr/slt_good_112.slt b/data/sqlite/random/expr/slt_good_112.slt
index b6fda69..4dff13a 100644
--- a/data/sqlite/random/expr/slt_good_112.slt
+++ b/data/sqlite/random/expr/slt_good_112.slt
@@ -1606,10 +1606,13 @@ SELECT ALL 30 * - - 25 + - ( SUM ( 19 ) ) AS col2, + 14 / 82 + + + 65 * 28 * - 9
-174720
898
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-299
SELECT 12 / CAST ( NULL AS INTEGER ) * - - 71 - + + COUNT ( * ) + - 46 + - AVG ( DISTINCT 72 ) * - + 69 AS col1
+----
+NULL
query I rowsort label-300
SELECT - MIN ( + 45 ) * + 98 AS col0
@@ -2053,10 +2056,13 @@ SELECT ALL 14 + - - 30 AS col1
----
44
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-385
SELECT DISTINCT 18 + - + AVG ( DISTINCT + 63 ) * + CAST ( NULL AS FLOAT8 ) AS col2
+----
+NULL
query I rowsort label-386
SELECT DISTINCT - + CAST ( + 76 AS INTEGER )
@@ -3878,10 +3884,13 @@ SELECT ALL COUNT ( - - NULLIF ( 88, - - 2 ) ) + + 54 + - 71 AS col2
----
-16
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-731
SELECT + CAST ( NULL AS FLOAT8 ) - + CASE - + 83 WHEN - 5 / 89 * + + 26 - 74 + + ( - + 43 ) + + 38 / + + COUNT ( * ) * - 24 * AVG ( DISTINCT + 61 ) THEN 78 WHEN - + 12 THEN NULL END AS col0
+----
+NULL
query I rowsort label-732
SELECT COALESCE ( - 54, 26 + - COUNT ( * ), ( - + 21 ) ) + + - 95
@@ -4048,10 +4057,13 @@ SELECT 78 / - + 27 + ( + 20 ) + - ( - 33 ) + 88 / - CASE - 1 WHEN + - 87 * - 77
----
NULL
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-763
SELECT ALL - 70 + - MIN ( 15 ) / COALESCE ( + 17, + 37 * + 39 - + 15 - + COUNT ( * ) - - - 47 ) + - + AVG ( DISTINCT - - 12 ) - - CASE 66 WHEN + 97 THEN + - 72 WHEN 46 THEN NULL END AS col1
+----
+NULL
query II rowsort label-764
SELECT + COUNT ( * ) - + - 49 * + - 55, + 39 AS col2
@@ -9403,10 +9415,13 @@ SELECT + COUNT ( DISTINCT 86 ) AS col1
----
1
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-1785
SELECT ALL + - 82 * + CAST ( NULL AS INTEGER ) + + 81 * AVG ( DISTINCT + 49 )
+----
+NULL
query I rowsort
SELECT - - 13 * - + 37 * + 56 + 80
@@ -13814,10 +13829,13 @@ SELECT ALL + COALESCE ( COUNT ( * ), + 71 + - - COUNT ( * ) + + 46 / 50 + - 14 *
----
40
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-2623
SELECT CAST ( NULL AS FLOAT8 ) * AVG ( DISTINCT - CAST ( + + 74 AS INTEGER ) ) AS col0
+----
+NULL
query I rowsort label-2624
SELECT ALL CASE + - COUNT ( - 90 ) WHEN 52 THEN + + 41 + - - 3 ELSE 21 END + + 75
@@ -18132,10 +18150,10 @@ SELECT ALL 48, ( - 62 ) + 34 + + + 66 AS col0
48
38
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+query I rowsort label-3449
SELECT + CAST ( NULL AS INTEGER ) / + CAST ( AVG ( DISTINCT - + 33 ) AS INTEGER )
+----
+NULL
query I rowsort label-3450
SELECT DISTINCT - 97 * - + COUNT ( * )
@@ -42569,10 +42587,10 @@ SELECT DISTINCT - 44 + - - 58 - 75 AS col0
----
-61
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+query I rowsort label-8106
SELECT ALL + 90 + 14 * ( + - CAST ( NULL AS INTEGER ) ) / + + 70 * - + 88 + + + 49 + + 89 * + ( - 38 ) * - CASE 54 WHEN COUNT ( * ) + - 37 + + 85 + AVG ( DISTINCT - 52 ) * - + 40 + - 38 + 9 * + 3 THEN NULLIF ( + MAX ( ALL 1 ), 10 ) + 22 * 61 WHEN - 62 / ( 69 * + 62 ) - - 3 THEN NULL WHEN - 81 THEN NULL ELSE 59 END / + 88 + + ( 81 ) * + 99 AS col1
+----
+NULL
query I rowsort
SELECT DISTINCT 11 + + ( + 17 ) AS col1
@@ -43526,10 +43544,13 @@ SELECT COALESCE ( + 20, - - 61 - - ( + ( 49 ) ) ) AS col0
----
20
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-8289
SELECT + - CASE - 25 WHEN + 44 * - + 1 - + 98 + 32 THEN + 28 WHEN 44 THEN 34 END / - MIN ( - - 32 ) * - 57 * - 89 + - AVG ( DISTINCT - 19 )
+----
+NULL
query I rowsort
SELECT + - 94 + + 12 AS col0
diff --git a/data/sqlite/random/expr/slt_good_113.slt b/data/sqlite/random/expr/slt_good_113.slt
index 4bd8fbb..66ace13 100644
--- a/data/sqlite/random/expr/slt_good_113.slt
+++ b/data/sqlite/random/expr/slt_good_113.slt
@@ -1694,10 +1694,13 @@ SELECT 2 + - 3 * 8 AS col1
query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(6\) \* max\(Int64\(98\)\) AS col1" at position 0 and "Int64\(63\) \* Int64\(30\) \+ Int64\(5\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\.
SELECT 6 * MAX ( 98 ) AS col1, + 63 * + 30 + 5 col1
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort
SELECT ALL 41 + - - AVG ( DISTINCT 62 ) * - + CASE - 44 WHEN 82 + + 36 THEN - - 95 END AS col1
+----
+NULL
query I rowsort label-313
SELECT + 68 * + - 0 + + MAX ( ALL + + 96 ) AS col0
@@ -8114,10 +8117,13 @@ SELECT - 64 * + + 23, + 58 + 54 - + ( - - 0 ) + - ( + 56 ) AS col0
-1472
56
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-1545
SELECT 55 * + AVG ( DISTINCT - ( + 10 ) ) + + + CASE + - 4 WHEN 58 THEN + CAST ( - 43 AS FLOAT8 ) END
+----
+NULL
query I rowsort label-1546
SELECT DISTINCT - 46 / COUNT ( * ) * + 13
@@ -10961,10 +10967,13 @@ SELECT 42 / + 38 / - COUNT ( * ) + CAST ( NULL AS INTEGER ) AS col1
----
NULL
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-2085
SELECT ALL 3 * AVG ( DISTINCT 44 ) * - + 59 + - CAST ( NULL AS INTEGER )
+----
+NULL
query I rowsort label-2086
SELECT ALL - COUNT ( - ( + - 46 ) ) AS col2
@@ -13841,10 +13850,13 @@ SELECT ( - + NULLIF ( MIN ( ALL - 35 ), 60 * - 36 * - - 57 ) )
----
35
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-2636
SELECT ALL 58 * - 51 - - NULLIF ( CAST ( NULL AS INTEGER ), + 11 * 2 / - 26 * 83 - NULLIF ( + 37, 98 ) + + CAST ( NULL AS INTEGER ) ) + + 77 * AVG ( DISTINCT 51 )
+----
+NULL
query I rowsort label-2637
SELECT - COUNT ( * ) * + + 56 * 8
@@ -20199,10 +20211,13 @@ SELECT ALL - 41 * + 86 + + 56 * 83
----
1122
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-3845
SELECT DISTINCT + 90 / + CASE 54 WHEN - - 75 + - + CAST ( + CAST ( + - CAST ( NULL AS INTEGER ) AS INTEGER ) AS INTEGER ) * - - 93 * 75 THEN + - 59 + + - 54 ELSE NULL END * + 43 + - 38 / 21 * + - 5 * - - 54 * + ( - + AVG ( DISTINCT - 62 ) ) * - CASE + 81 WHEN + 86 THEN + COUNT ( * ) WHEN + 55 + 16 THEN NULL ELSE - 29 END + + 97
+----
+NULL
query II rowsort
SELECT 83 col1, ( - 70 )
@@ -33238,10 +33253,13 @@ SELECT ( CAST ( + CAST ( NULL AS FLOAT8 ) AS FLOAT8 ) ) + 70 + ( + 82 ) * 45 + -
----
NULL
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-6327
SELECT DISTINCT ( + + CAST ( NULL AS INTEGER ) ) + 0 * - - AVG ( DISTINCT - 41 ) AS col0
+----
+NULL
query II rowsort
SELECT ALL + 91 + + 83 + + 50 + + + 44 * + 76 col0, 35
@@ -39435,10 +39453,13 @@ SELECT - 61 * - + NULLIF ( ( - 76 ), + + 69 - - 56 + 77 * + 63 * 43 )
----
-4636
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - -440
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-7510
SELECT DISTINCT - MIN ( ALL + + ( + + 40 ) ) * + NULLIF ( 11, + CAST ( - + 74 AS INTEGER ) * + 35 + + 69 * + ( + 78 - COUNT ( * ) * CAST ( NULL AS INTEGER ) ) + + AVG ( DISTINCT 75 ) ) AS col2
+----
+-440
query I rowsort label-7511
SELECT ALL - + 61 + - CAST ( 37 AS INTEGER )
@@ -41848,10 +41869,13 @@ SELECT + + CASE 95 WHEN - 27 THEN - + 41 + 75 + + 71 * 99 + + 6 * - NULLIF ( 44,
----
NULL
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-7969
SELECT DISTINCT + COALESCE ( 84, - - CAST ( NULL AS INTEGER ), - - 27 + 22 ) * + + 97 * - 85 * - - NULLIF ( + CASE 47 WHEN - 27 THEN NULL WHEN - - 60 - + + 56 / - 39 THEN 19 ELSE NULL END, 39 * - 69 ) * 43 * - AVG ( DISTINCT 70 ) * - 63 + - 72
+----
+NULL
query I rowsort label-7970
SELECT + + COUNT ( * ) * COUNT ( * ) + + 58
@@ -43969,10 +43993,13 @@ SELECT ALL - - ( 74 )
----
74
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-8373
SELECT - CAST ( NULL AS INTEGER ) * + - ( AVG ( DISTINCT 40 ) ) + + - 78
+----
+NULL
query I rowsort
SELECT DISTINCT - 21 + - 16 AS col0
@@ -45176,10 +45203,13 @@ SELECT - ( + MIN ( - 15 ) )
----
15
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-8604
SELECT - 98 + 17 + - 74 + - 4 * - CAST ( NULL AS FLOAT8 ) - - ( 77 ) / + AVG ( DISTINCT + + 26 ) AS col1
+----
+NULL
query I rowsort label-8605
SELECT 88 * + CAST ( + 35 AS INTEGER ) * - 87 - 45 - 44 * 80 * - - 74 AS col0
@@ -46234,10 +46264,13 @@ SELECT ALL 6 * + 26 + + 41
----
197
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-8806
SELECT DISTINCT - ( + + 88 ) * + 83 - + + CASE - 11 WHEN + SUM ( DISTINCT + 77 ) THEN NULL ELSE + AVG ( DISTINCT 56 ) END + - CASE CAST ( + - 33 AS INTEGER ) WHEN - 76 THEN NULL WHEN - 75 THEN 77 END
+----
+NULL
query I rowsort label-8807
SELECT DISTINCT - MIN ( ALL 80 ) * + COUNT ( * ) AS col2
@@ -48560,10 +48593,13 @@ SELECT 61 + - - 19 * + + 69
----
1372
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-9256
SELECT + AVG ( DISTINCT + - 31 ) * - - CAST ( NULL AS INTEGER ) + - 40 * 7 * - + 21 AS col1
+----
+NULL
query I rowsort
SELECT ALL 14 * + 63 + + - 41 AS col1
@@ -49205,10 +49241,13 @@ SELECT ALL + 20 + - 11 * - CAST ( + - 8 AS INTEGER ) * - + 47 AS col2
----
4156
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-9377
SELECT - AVG ( DISTINCT - 3 ) * + 16 * CAST ( NULL AS INTEGER ) * - ( + 85 ) + - + 26 AS col2
+----
+NULL
# Datafusion - Types were automatically converted from:
# Datafusion - [Expected] [I]
diff --git a/data/sqlite/random/expr/slt_good_114.slt b/data/sqlite/random/expr/slt_good_114.slt
index fcddd20..acf4c13 100644
--- a/data/sqlite/random/expr/slt_good_114.slt
+++ b/data/sqlite/random/expr/slt_good_114.slt
@@ -7829,10 +7829,13 @@ SELECT 69 + 1 * + + 4
----
73
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - -69
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-1477
SELECT ( 5 ) + + COALESCE ( 74, + + 76 * AVG ( DISTINCT - - 28 ) * - - 83 * - - COUNT ( + + 76 ) / 39 / + 5 * + + 59 - 8 + + 3 * - ( CAST ( NULL AS INTEGER ) ) * - 95 - + 8 - + 11 + 23 * - COUNT ( * ) * - 16 * - ( - MIN ( DISTINCT COALESCE ( + 91, 9 ) ) ) - 59 + - 76 / + 63 / - 62 / 47 ) * ( - COUNT ( * ) )
+----
+-69
query II rowsort label-1478
SELECT 23 / 7 AS col1, 1 AS col0
@@ -17616,10 +17619,13 @@ SELECT SUM ( - + 6 ) AS col2
----
-6
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-3348
SELECT + CASE - - CAST ( - - 33 AS FLOAT8 ) WHEN - 13 THEN - 82 ELSE NULL END * 18 * + - AVG ( DISTINCT - CAST ( + NULLIF ( - 55, CAST ( NULL AS INTEGER ) + - 72 ) AS INTEGER ) ) AS col1
+----
+NULL
query I rowsort label-3349
SELECT + CASE + + 12 WHEN AVG ( ALL + 50 ) * ( + + 23 ) * + 53 + + 93 THEN NULL WHEN + 84 / + 34 + CAST ( NULL AS INTEGER ) - - CASE 35 WHEN + + COUNT ( * ) + + CAST ( + + 60 AS INTEGER ) * + - 3 / + - 76 THEN + - COUNT ( * ) + + COALESCE ( - 13, - + 55 * COUNT ( * ) * + + 23, - - 55 + 96 ) WHEN - CAST ( NULL AS FLOAT8 ) + 0 THEN - ( - 52 ) + 87 * NULLIF ( 51, 88 + COUNT ( * ) + - ( + NULLIF ( ( 60 ), 38 ) ) / - 94 ) * - ( - 59 * + 43 + - 55 ) + 85 END THEN - 70 - 23 * + COUNT ( * ) END AS col2
@@ -23226,10 +23232,13 @@ SELECT ALL 63 / + 95
----
0
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-4423
SELECT 46 + + + 52 + + 71 + CAST ( 26 AS INTEGER ) * + - 12 * - CASE 36 WHEN + 99 + - + 95 THEN + + CAST ( NULL AS FLOAT8 ) END * + + 31 + 94 + + - AVG ( DISTINCT - - 75 ) * 57 * - 86 * 12 + + COUNT ( * ) + - 33 + + 57 * 77 * - 32
+----
+NULL
query I rowsort
SELECT 81 - + 87
@@ -24308,10 +24317,13 @@ SELECT NULLIF ( + 33, 50 + - 96 ) - COUNT ( * ) * + 78
query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(16\) \* Int64\(\-61\) AS col1" at position 0 and "Int64\(94\) \* Int64\(\-18\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\.
SELECT 16 * + - 61 AS col1, + 94 * - 18 col1
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-4628
SELECT ALL - COUNT ( * ) + - - CAST ( NULL AS INTEGER ) - + 59 * - 85 + + 92 + - 48 * AVG ( DISTINCT ( + 47 ) ) * - 75
+----
+NULL
query II rowsort
SELECT DISTINCT 89 + 60 AS col2, 85 * 33
@@ -38901,10 +38913,13 @@ SELECT DISTINCT + 45 * + - 55 AS col1
----
-2475
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-7420
SELECT DISTINCT - 54 * + NULLIF ( - AVG ( DISTINCT + 54 ), + 15 ) / - - CAST ( NULL AS FLOAT8 )
+----
+NULL
query I rowsort
SELECT ALL + - 30 * - ( + 77 ) col1
@@ -48580,10 +48595,13 @@ SELECT DISTINCT - + 87 * - 23 + + 58
----
2059
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-9266
SELECT + COALESCE ( + ( + - COUNT ( * ) ), + NULLIF ( AVG ( DISTINCT - 62 ), - CAST ( 33 AS INTEGER ) ) * - - ( 25 ), + + 95 + + 36 ) - 57 - + + CAST ( NULL AS INTEGER )
+----
+NULL
query II rowsort label-9267
SELECT ALL CAST ( + 44 AS INTEGER ), + MAX ( ALL - - 2 ) * + 40 AS col2
@@ -49274,10 +49292,13 @@ SELECT - COUNT ( DISTINCT + 12 ) + + 97 / + 50 + + COUNT ( * ) AS col0
----
1
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-9397
SELECT ALL - + 87 * - ( - - CAST ( NULL AS INTEGER ) ) * 20 - + 91 + - AVG ( DISTINCT - 23 ) / - COUNT ( * )
+----
+NULL
query I rowsort label-9398
SELECT + - CASE - + 66 WHEN + - COALESCE ( + 44, - 32, - 95 ) THEN - - 28 WHEN MIN ( ALL 45 ) * + + COUNT ( * ) * - COUNT ( ALL 76 ) THEN + 19 * + ( CAST ( 78 AS INTEGER ) ) * 97 + - - SUM ( + ( 95 ) ) + - - CASE + + 96 WHEN - COALESCE ( - 92, 11 + + 75 * - 24, 11 ) THEN - 29 ELSE NULL END ELSE NULL END AS col0
diff --git a/data/sqlite/random/expr/slt_good_115.slt b/data/sqlite/random/expr/slt_good_115.slt
index 108ebf3..fdb8b14 100644
--- a/data/sqlite/random/expr/slt_good_115.slt
+++ b/data/sqlite/random/expr/slt_good_115.slt
@@ -6109,10 +6109,13 @@ SELECT ALL + 35 * - 48 AS col0
----
-1680
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-1162
SELECT - COALESCE ( + - 98, - 38, 0 / + COUNT ( * ), + + 78 / + AVG ( DISTINCT - 91 ) ) * - 33 / + MIN ( DISTINCT + 16 ) * + 96 - ( 64 ) * + CAST ( NULL AS INTEGER ) AS col2
+----
+NULL
query I rowsort label-1163
SELECT ALL - NULLIF ( - COUNT ( - 53 ), - 81 - ( - + CAST ( + 71 AS INTEGER ) ) + 16 ) * 28
@@ -7882,11 +7885,14 @@ SELECT DISTINCT - 84 * - 24
----
2016
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - 28
-# Datafusion - Expected - 4215
-query error DataFusion error: Arrow error: Divide by zero error
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] I[I]
+# Datafusion - [Actual ] I[R]
+query IR rowsort label-1499
SELECT 28 col2, + 11 + + + NULLIF ( - 19, + 64 + + 58 + - + CAST ( NULL AS FLOAT8 ) + COALESCE ( + 30, + - 16, 20 / + - 0 * COUNT ( * ) + + CAST ( NULL AS INTEGER ), - CAST ( + 77 AS INTEGER ) * 71 + + 99 + + - 60 + + 1 ) ) + - ( 79 ) * - 50 + - + 70 / SUM ( + - 35 ) * 94 + + 85 AS col0
+----
+28
+4215
query II rowsort label-1500
SELECT 63 AS col1, + 94 / + + ( + - 36 ) * + COUNT ( * ) + + + COUNT ( DISTINCT + COALESCE ( + 25, - NULLIF ( 79, - 25 ) ) ) + - + COUNT ( * ) + MAX ( - 90 ) / - - MIN ( + 7 ) + - 75 * - 57
@@ -8016,11 +8022,14 @@ SELECT 59 + - MIN ( - 15 ) * ( + + COUNT ( * ) ) + - COUNT ( * ) AS col2
----
73
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - 81
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] I[I]
+# Datafusion - [Actual ] I[R]
+query IR rowsort label-1524
SELECT 94 - 13 AS col2, AVG ( 43 ) - AVG ( DISTINCT + + 47 ) + CAST ( NULL AS INTEGER ) * + 46 + - 99 + + + 69 + ( + - 54 ) + - 27 / + + COUNT ( * ) AS col1
+----
+81
+NULL
query I rowsort
SELECT 98 * 97
@@ -12912,10 +12921,13 @@ SELECT ALL CAST ( + + 24 AS INTEGER ) AS col1
----
24
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-2457
SELECT DISTINCT - ( + 54 ) + - + AVG ( DISTINCT - ( + + 45 ) ) + + 71 / CAST ( NULL AS INTEGER )
+----
+NULL
query I rowsort
SELECT 35 - - + 51 * - + 52
@@ -13057,10 +13069,10 @@ SELECT CAST ( NULL AS INTEGER ) - + 20 + COUNT ( * ) / - - 19 * COUNT ( * ) + -
----
NULL
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+query I rowsort label-2485
SELECT CAST ( NULL AS INTEGER ) + - CASE - 42 WHEN AVG ( DISTINCT + 65 ) + + 28 THEN NULL WHEN CAST ( 1 AS INTEGER ) THEN NULL WHEN - - 0 THEN NULL ELSE COUNT ( * ) END AS col2
+----
+NULL
query I rowsort label-2486
SELECT DISTINCT ( + 6 ) / - + 54 AS col2
@@ -13799,10 +13811,13 @@ SELECT DISTINCT 80 * + - CAST ( NULL AS INTEGER ) + 1 - - 73 * + 85 * - 5 AS col
----
NULL
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-2627
SELECT DISTINCT CAST ( NULL AS FLOAT8 ) * + - 54 + 53 / AVG ( DISTINCT 9 ) + - - 60 AS col2
+----
+NULL
query I rowsort label-2628
SELECT MAX ( ALL - + 7 ) AS col2
@@ -20811,10 +20826,13 @@ SELECT AVG ( + ( + CAST ( NULL AS INTEGER ) ) )
----
NULL
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-3970
SELECT ALL - 51 * + CAST ( NULL AS INTEGER ) * - - AVG ( DISTINCT - 81 )
+----
+NULL
query I rowsort label-3971
SELECT + 99 / 99 AS col1
@@ -21464,10 +21482,10 @@ SELECT DISTINCT - CASE + - CASE + 74 WHEN + 93 + + - 8 + - - 67 + + - ( COUNT (
----
NULL
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Arrow error: Divide by zero error
+query I rowsort label-4094
SELECT DISTINCT - SUM ( 57 ) * - 55 + CAST ( NULL AS INTEGER ) + + 17 / - CAST ( - COUNT ( + CAST ( NULL AS INTEGER ) ) AS INTEGER ) * + CASE + 99 WHEN - 21 THEN + CASE + 64 WHEN - + 54 + - 12 THEN NULL WHEN - 69 THEN - 3 * + 64 + - + 66 WHEN + 64 THEN - 63 * NULLIF ( - MAX ( DISTINCT 39 ), + COUNT ( ALL - 35 ) * - 69 ) END * - ( + 80 - NULLIF ( - 69, + 56 - + 84 ) ) + 53 * - COUNT ( * ) WHEN + 84 * 4 THEN NULL END AS col1
+----
+NULL
query I rowsort label-4095
SELECT - COUNT ( * ) / 55 / - 21
@@ -28043,10 +28061,13 @@ SELECT DISTINCT - 67 * + 40 AS col1
----
-2680
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-5350
SELECT 76 * + AVG ( DISTINCT + CAST ( NULL AS INTEGER ) ) + - + CAST ( NULL AS INTEGER ) col1
+----
+NULL
query I rowsort
SELECT 92 * 41
@@ -31767,10 +31788,13 @@ SELECT - - ( + 50 ) AS col2
----
50
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-6058
SELECT - 70 - 83 * 42 + - 76 + - 37 - + CAST ( NULL AS INTEGER ) / + ( - + 98 ) * - + 10 + + 91 + 91 * 2 + + ( + 76 ) + AVG ( DISTINCT + + 84 ) AS col1
+----
+NULL
query I rowsort
SELECT DISTINCT + - 20 + 75
@@ -32947,10 +32971,13 @@ SELECT + + 10 + + 77 AS col0
----
87
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-6280
SELECT DISTINCT + ( + CAST ( NULL AS INTEGER ) ) * - + CASE + 79 WHEN + + COUNT ( * ) THEN + COUNT ( * ) + 81 END + + + 97 + - COALESCE ( - 86, - - AVG ( DISTINCT - 63 ) ) * + - 32 * - 1
+----
+NULL
query I rowsort label-6281
SELECT ALL COUNT ( * ) * 23 + - - 46 * - COUNT ( * ) AS col2
@@ -32978,10 +33005,13 @@ SELECT DISTINCT - 77 * + 46 col2
----
-3542
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-6286
SELECT DISTINCT + 99 * - COUNT ( * ) * - + CAST ( NULL AS INTEGER ) - + 8 * - - AVG ( DISTINCT 79 )
+----
+NULL
query I rowsort
SELECT ALL - 66 * + 18 - 22 AS col0
@@ -40954,10 +40984,13 @@ SELECT ALL - COUNT ( - + 92 ) col2
----
-1
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-7809
SELECT ALL 11 + - CAST ( NULL AS INTEGER ) + CAST ( + 11 AS FLOAT8 ) * - AVG ( DISTINCT + 58 )
+----
+NULL
query I rowsort
SELECT ALL 70 + + + 73 AS col2
@@ -41145,11 +41178,14 @@ SELECT DISTINCT 91 * + 47 + - 7 / - + 76 AS col1
----
4277
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-# Datafusion - Expected - 459
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]I
+# Datafusion - [Actual ] [R]I
+query RI rowsort label-7845
SELECT ALL AVG ( DISTINCT 92 ) * - CAST ( NULL AS INTEGER ) + 79 + + 60 AS col2, 17 * 27
+----
+NULL
+459
query II rowsort label-7846
SELECT ALL + 58 * - 81 + - 65 * + 78 + + COUNT ( * ), 83 * 89 + 90 AS col1
@@ -47499,11 +47535,14 @@ SELECT 22 + - + 30 AS col1
----
-8
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - 190
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] I[I]
+# Datafusion - [Actual ] I[R]
+query IR rowsort label-9053
SELECT MAX ( + 95 ) * - - 2 AS col1, ( + - MIN ( - + ( 71 ) ) ) - CAST ( NULL AS INTEGER ) + + MIN ( 17 ) + - COUNT ( * ) + + + AVG ( DISTINCT 55 ) / + - CASE - COUNT ( * ) WHEN + + 52 THEN + - 19 END + - 8 AS col2
+----
+190
+NULL
query I rowsort label-9054
SELECT ALL + COUNT ( * ) + 31 col0
@@ -48721,10 +48760,13 @@ SELECT ALL + 60 + 21 AS col2
----
81
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-9287
SELECT DISTINCT + 87 + 76 + + + MIN ( DISTINCT + 28 ) - + SUM ( DISTINCT 7 ) / 4 + + - CASE + - 98 WHEN - - 47 * - 92 * 53 THEN - - 63 / + 70 * + 86 - - 5 WHEN + + 73 + + ( + COUNT ( * ) ) - - - 97 THEN + CASE - + 74 WHEN + - 13 THEN 78 END * - 29 * COUNT ( * ) - + + 93 + - 8 - - - 83 * - AVG ( DISTINCT - 78 ) END AS col0
+----
+NULL
query I rowsort label-9288
SELECT 95 * MAX ( DISTINCT + 54 ) / 31 / NULLIF ( + MAX ( - 41 ), + CASE - ( 33 ) WHEN COUNT ( DISTINCT 39 ) / 19 + + COUNT ( * ) THEN 3 + - 53 + + 45 + + + 88 + + + 78 / - 19 + - 48 + CAST ( - - 92 AS INTEGER ) END + - + CASE - 69 WHEN + 29 THEN 84 * + CASE + 51 WHEN + + 20 + 35 THEN 64 WHEN 88 + - ( + 56 ) THEN + 99 * - 87 ELSE - ( + MIN ( DISTINCT 26 ) ) END WHEN 20 + COUNT ( * ) THEN - 77 ELSE NULL END + - 83 ) + + COUNT ( * )
diff --git a/data/sqlite/random/expr/slt_good_116.slt b/data/sqlite/random/expr/slt_good_116.slt
index 258f10c..b828480 100644
--- a/data/sqlite/random/expr/slt_good_116.slt
+++ b/data/sqlite/random/expr/slt_good_116.slt
@@ -9520,10 +9520,13 @@ SELECT + 20 * ( 76 ) + - ( + 58 ) / CASE - ( COALESCE ( - MAX ( ALL 46 ), COUNT
----
1519
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-1809
SELECT ALL 89 * - CAST ( NULL AS INTEGER ) - AVG ( DISTINCT - - 59 ) AS col1
+----
+NULL
query II rowsort label-1810
SELECT DISTINCT - ( + 5 ) AS col1, NULLIF ( + + 49, - 94 + - 24 / + - 20 ) + - COUNT ( * ) * + 27
@@ -13888,10 +13891,13 @@ SELECT + 91 * + CAST ( - ( - - 78 ) AS INTEGER ) AS col2
----
-7098
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-2641
SELECT 48 * + 99 + + 84 - - - CAST ( NULL AS INTEGER ) + + + 13 + AVG ( DISTINCT + 68 ) AS col1
+----
+NULL
query I rowsort label-2642
SELECT ALL + 92 + 90 + NULLIF ( + 90, + COUNT ( * ) + - 30 - - - 90 + + - 57 / - 70 * - 18 ) + + 46 * - 57 AS col2
@@ -16859,10 +16865,13 @@ SELECT - CASE 3 WHEN CAST ( NULL AS INTEGER ) THEN 54 * + 42 + - 18 END AS col2
----
NULL
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-3212
SELECT + - COUNT ( * ) + + NULLIF ( + AVG ( DISTINCT - 85 ) + + CAST ( NULL AS INTEGER ), 96 * + 21 ) AS col2
+----
+NULL
query I rowsort
SELECT - + 74 * 37 AS col0
@@ -21987,10 +21996,10 @@ SELECT ALL 78 * + 14 - 93 - - - 74 AS col1
----
925
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+query I rowsort label-4191
SELECT ALL 60 / + CASE + 18 WHEN + 5 * CASE + - AVG ( DISTINCT - 92 ) WHEN + 52 THEN NULL WHEN - CASE COUNT ( ALL 97 ) WHEN 7 + + 76 + 53 THEN - - 45 * - 29 END THEN + ( + 75 ) END + - 90 + 38 - 40 THEN NULL WHEN + 77 * CAST ( - 64 AS INTEGER ) / COUNT ( * ) + - - 40 + + COUNT ( * ) THEN + 89 + + - 85 ELSE 9 * + ( 56 / 18 ) END + CASE 84 WHEN + 94 THEN NULL WHEN - CAST ( NULL AS INTEGER ) THEN 38 ELSE NULL END
+----
+NULL
query I rowsort label-4192
SELECT ALL + + COALESCE ( - COUNT ( * ), - COUNT ( * ) ) AS col1
@@ -24421,10 +24430,13 @@ SELECT + 87 * COALESCE ( + 57, - 12 ) * + - COUNT ( * ) * + 49 - - - 7 + - ( - +
----
NULL
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-4657
SELECT - AVG ( - - 60 ) / ( + 95 ) * + ( 59 ) / CAST ( NULL AS INTEGER ) / - 23 + + + 15 + 13 + + 99 - + 87 * 90 / + AVG ( DISTINCT + - ( - 52 ) ) * COUNT ( * ) - - + 6 + 47
+----
+NULL
query II rowsort label-4658
SELECT ALL + COUNT ( * ), + COUNT ( * ) AS col2
@@ -45942,11 +45954,14 @@ SELECT ALL + 59, 19 * - + 74 * COUNT ( * ) AS col2
59
-1406
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - -2
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] I[I]
+# Datafusion - [Actual ] I[R]
+query IR rowsort label-8753
SELECT + - 2, COALESCE ( + 53, - - COUNT ( * ), + + AVG ( DISTINCT + + NULLIF ( - 73, 42 ) ) ) - - 7 + + + 99 * - 14 * COUNT ( * ) - - NULLIF ( - 18, - - 16 * COUNT ( DISTINCT + - 89 ) * + 92 ) + + + MAX ( DISTINCT + 72 ) + - 70 * - CAST ( NULL AS FLOAT8 ) AS col0
+----
+-2
+NULL
query I rowsort label-8754
SELECT + 86 / + 22 + + COUNT ( * ) + - CAST ( NULL AS INTEGER )
@@ -49411,10 +49426,13 @@ SELECT ALL - 21 + - 52 + - NULLIF ( + 49, + 71 ) col2
----
-122
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-9416
SELECT + - 74 * + + 20 * AVG ( DISTINCT - 54 ) + 97 + - 42 * - - ( - 84 ) * 66 * + + CAST ( NULL AS INTEGER ) AS col2
+----
+NULL
query I rowsort
SELECT DISTINCT 82 + 76 AS col1
@@ -50072,10 +50090,13 @@ SELECT DISTINCT + + 23 - + - ( CAST ( NULL AS INTEGER ) ) + 61 - - COALESCE ( -
----
NULL
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-9544
SELECT ALL - ( + ( - CAST ( NULL AS INTEGER ) ) ) / COALESCE ( - AVG ( DISTINCT + 42 ), + - 30, - 41 * + NULLIF ( - - 53, 88 ) ) AS col0
+----
+NULL
# Datafusion - Types were automatically converted from:
# Datafusion - [Expected] [I]
@@ -51458,10 +51479,13 @@ SELECT ALL 84 + - 53 - + + 74 * + 94 AS col2
----
-6925
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-9812
SELECT DISTINCT - AVG ( DISTINCT 89 ) + ( CASE WHEN - ( + COUNT ( * ) ) IS NULL THEN 14 - - 50 WHEN NULL IS NOT NULL THEN NULL END )
+----
+NULL
query I rowsort label-9813
SELECT ALL SUM ( 97 ) AS col2
diff --git a/data/sqlite/random/expr/slt_good_117.slt b/data/sqlite/random/expr/slt_good_117.slt
index 7ead889..6eef954 100644
--- a/data/sqlite/random/expr/slt_good_117.slt
+++ b/data/sqlite/random/expr/slt_good_117.slt
@@ -1796,10 +1796,10 @@ SELECT - 12 * + 22 * - CASE 64 WHEN 81 * - 12 + - - 7 + 42 THEN + 78 * 67 WHEN C
----
-496321
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+query I rowsort label-337
SELECT ALL + CAST ( NULL AS INTEGER ) * + + 33 + + ( - 24 ) + + CASE - 16 WHEN - 73 THEN + 70 + - 72 WHEN + COALESCE ( - COUNT ( * ), + + 66, + 34 ) * + MIN ( 92 ) + 20 * + AVG ( DISTINCT - 85 ) THEN + 7 ELSE NULL END * COALESCE ( - 83, - 30, 42 ) * + 26 col0
+----
+NULL
query I rowsort
SELECT DISTINCT + 38 * - 81
@@ -9065,10 +9065,10 @@ SELECT + - ( - 69 ) col2, NULLIF ( + 18, + ( + - SUM ( + COALESCE ( + 87, 7 ) )
69
18
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+query I rowsort label-1730
SELECT - CAST ( NULL AS INTEGER ) * - - 47 + MAX ( - 83 ) + + + 98 + + 73 * - - ( + CASE CAST ( NULL AS INTEGER ) WHEN AVG ( DISTINCT + + 87 ) THEN + + 55 + - 92 / + CAST ( + 59 * + 10 AS INTEGER ) END ) * CASE - COUNT ( - 69 ) WHEN 20 * 81 THEN NULL ELSE - 59 END
+----
+NULL
query II rowsort label-1731
SELECT - COUNT ( * ) + + NULLIF ( + + MAX ( - 65 ), - 19 ), + CASE + + 82 WHEN + 29 + CAST ( 3 AS INTEGER ) THEN + 50 END AS col2
@@ -9935,10 +9935,10 @@ SELECT - 93 + 50 AS col1, 97
-43
97
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - -41
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+query I rowsort label-1894
SELECT + CASE + CAST ( NULL AS INTEGER ) WHEN + 81 * - 10 - + + 27 - 9 / + 48 THEN NULL WHEN AVG ( DISTINCT - 45 ) / - + ( + 90 ) / - + CAST ( NULL AS INTEGER ) + - 94 THEN NULL ELSE - 41 END col2
+----
+-41
# Datafusion - Types were automatically converted from:
# Datafusion - [Expected] [I]
@@ -11577,11 +11577,14 @@ SELECT DISTINCT + ( 87 ) + + 93 col1, COUNT ( * ) + 27 AS col2
180
28
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - -720
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] I[I]
+# Datafusion - [Actual ] I[R]
+query IR rowsort label-2204
SELECT 16 * + - 45, 78 + - 15 + - CAST ( NULL AS INTEGER ) + AVG ( DISTINCT - 46 ) * + 40 / + 48 + - - CASE 16 WHEN + + 56 * + - 91 * + ( 76 ) THEN + COUNT ( * ) ELSE NULL END / - 88 + - 80 AS col0
+----
+-720
+NULL
query I rowsort label-2205
SELECT ALL + 4 * - COUNT ( * ) * - COUNT ( * ) AS col1
@@ -12322,10 +12325,13 @@ SELECT + - 52 + + 89 + + - COUNT ( + 74 ) + + 65 AS col2
----
101
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-2346
SELECT + 2 - + + ( - 61 ) * - 91 - - + CAST ( NULL AS INTEGER ) * - COALESCE ( - CASE + CAST ( NULL AS INTEGER ) WHEN - + 30 THEN ( + + 68 ) / - 1 WHEN - 87 THEN NULL WHEN - + 83 THEN NULL END, + 21, CASE - - 0 WHEN + - 48 THEN 18 WHEN 32 THEN NULL WHEN + + 24 + - + 99 THEN - 6 / ( - AVG ( ALL - - 82 ) ) / - 53 END ) + - + AVG ( DISTINCT + 74 ) / NULLIF ( + - COALESCE ( CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ), 2 ), + 29 + + COUNT ( * ) ) * - 75 AS col1
+----
+NULL
query I rowsort
SELECT + + 78 + + 54
@@ -14110,10 +14116,13 @@ SELECT ALL - CAST ( 63 AS INTEGER ), 36 * + - COUNT ( * ) * + + 47 AS col2, - CA
-1692
NULL
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-2685
SELECT ALL + COUNT ( * ) + - CAST ( NULL AS FLOAT8 ) * + - COUNT ( * ) + - COALESCE ( 90, AVG ( DISTINCT + 21 ) ) AS col2
+----
+NULL
query I rowsort
SELECT ALL CASE 97 WHEN 90 + - - 67 THEN + 77 * 58 + + + 64 * - - 43 * - 23 ELSE + + 47 * - 5 END + - - 87
@@ -14588,10 +14597,13 @@ SELECT ALL 8 * - - 51
----
408
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-2776
SELECT - AVG ( DISTINCT - + 12 ) / 26 * - + CAST ( NULL AS INTEGER ) * + - 33 - 92 + + 66 col1
+----
+NULL
query I rowsort
SELECT ALL - ( + + NULLIF ( + 83, - - 21 ) ) * - 96
@@ -15475,10 +15487,10 @@ SELECT ALL 40 * + 41 + 34 AS col1
----
1674
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - -64
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+query I rowsort label-2944
SELECT + CASE 70 WHEN AVG ( DISTINCT 0 ) - + CAST ( NULL AS INTEGER ) THEN NULL ELSE - 64 END AS col1
+----
+-64
query I rowsort label-2945
SELECT + 85 / + 90 AS col2
@@ -27575,10 +27587,13 @@ SELECT ALL 51 / 18 - - 30 + + 10 AS col1
----
42
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-5248
SELECT + + SUM ( ALL 24 ) * - - CAST ( NULL AS INTEGER ) + - 33 + + - AVG ( DISTINCT - + 17 ) + - 90 + + CAST ( NULL AS INTEGER ) + + + 59 * + + 54 * + + 29 * - COALESCE ( - 32, - + 58 ) / + 97 + - AVG ( ALL - CAST ( NULL AS INTEGER ) ) / - COALESCE ( - + 56, - 90 ) - + - 85 col2
+----
+NULL
# Datafusion - Types were automatically converted from:
# Datafusion - [Expected] [I]
@@ -30396,10 +30411,13 @@ SELECT DISTINCT - ( + SUM ( DISTINCT - 71 ) ), COALESCE ( - + MAX ( DISTINCT + 1
71
1055
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-5784
SELECT 41 * - - ( CASE - + 57 WHEN + + COUNT ( * ) THEN + + 78 + + 11 WHEN 82 THEN 52 + + 38 ELSE - 17 END ) + + ( 18 ) - + AVG ( DISTINCT - - 50 ) + + - 32 - - CAST ( NULL AS INTEGER ) * + 52 * COUNT ( * ) AS col0
+----
+NULL
query II rowsort label-5785
SELECT + 45 * + 85 - 70 col2, - COUNT ( * )
@@ -36849,10 +36867,10 @@ SELECT ALL 4 AS col2, 25
4
25
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - -73
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+query I rowsort label-7007
SELECT ALL + COUNT ( * ) + ( 14 ) + NULLIF ( - 88, - NULLIF ( - - 57, - 9 + - - CASE - CASE WHEN NOT + COUNT ( * ) IN ( + + 81, + AVG ( ALL - 98 ) + - CASE + - 8 WHEN + 94 THEN NULL WHEN + COALESCE ( + 98, COALESCE ( - 49, + NULLIF ( + ( + COUNT ( * ) ), - 27 ) * AVG ( 66 ) ), + 26 / - MIN ( 38 ) - 99 ) THEN - 85 * + 74 END ) THEN NULL ELSE + 18 END WHEN COUNT ( * ) * + AVG ( DISTINCT 68 ) + + CAST ( NULL AS INTEGER ) THEN COUNT ( * ) - - COUNT ( * ) WHEN 9 / + 96 + - 66 THEN NULL ELSE 1 [...]
+----
+-73
query II rowsort label-7008
SELECT - COUNT ( * ) * 65 AS col1, - 46 + - NULLIF ( 98, - 24 )
@@ -37713,10 +37731,13 @@ SELECT DISTINCT - MAX ( ALL - 87 ) - + + 93
----
-6
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-7170
SELECT ALL 0 / - + CAST ( NULL AS INTEGER ) / + - 66 * - + AVG ( DISTINCT + 1 )
+----
+NULL
query I rowsort label-7171
SELECT - SUM ( + + 82 ) AS col2
@@ -40188,10 +40209,13 @@ SELECT - CAST ( NULL AS FLOAT8 ) * + 87 AS col0
----
NULL
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-7639
SELECT - CAST ( NULL AS INTEGER ) - 75 + 43 - - COUNT ( ALL 64 ) + 56 + AVG ( DISTINCT 72 ) + - + 94 + - - ( 89 ) * 11 * + MIN ( + 46 ) * - + 32 * + 52
+----
+NULL
query I rowsort
SELECT ALL 27 * - 12 AS col1
@@ -43083,10 +43107,13 @@ SELECT ALL - MIN ( ALL 5 ) * 0 * - 97 * + 37 * + - 87 * + 71 - MIN ( DISTINCT -
----
45
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-8193
SELECT + 62 + 84 + - - AVG ( DISTINCT - 91 ) / - 30 * - + 7 + - + 58 + + 13 * + - CAST ( NULL AS INTEGER ) + + - 71 AS col1
+----
+NULL
query II rowsort
SELECT 92 AS col2, - 23 AS col0
@@ -45657,10 +45684,13 @@ SELECT 55 / - 12 + 13
----
9
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-8682
SELECT ALL 93 + + - 32 + CAST ( NULL AS INTEGER ) * + - CASE + 42 WHEN 76 - 92 / 6 THEN AVG ( DISTINCT 10 ) - 0 - + 58 * + + 0 * CASE + 77 WHEN + + NULLIF ( - 41, - + 10 ) - COUNT ( * ) THEN + 77 * + ( 2 ) * + 21 / - 59 WHEN - 45 THEN NULL END END
+----
+NULL
query I rowsort
SELECT ALL - 87 * + - 28 + + - 9 AS col2
@@ -48455,10 +48485,13 @@ SELECT + 42 / + 16 AS col2
----
2
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-9214
SELECT - 48 * - + 40 / - 76 * + AVG ( DISTINCT + 71 ) * - CAST ( NULL AS INTEGER ) AS col1
+----
+NULL
query I rowsort
SELECT + 19 * - 20 AS col1
diff --git a/data/sqlite/random/expr/slt_good_118.slt b/data/sqlite/random/expr/slt_good_118.slt
index a0f5529..42b24b5 100644
--- a/data/sqlite/random/expr/slt_good_118.slt
+++ b/data/sqlite/random/expr/slt_good_118.slt
@@ -3925,10 +3925,13 @@ SELECT DISTINCT MAX ( + 79 ) + - 77 + - - 7 * + 34
----
240
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-746
SELECT DISTINCT CASE + 34 WHEN - 42 * + 3 THEN + + 24 ELSE - AVG ( DISTINCT + 16 ) * + COUNT ( * ) - + CAST ( NULL AS INTEGER ) + 92 END / 98 AS col0
+----
+NULL
query I rowsort label-747
SELECT + 99 + + 19 + - COUNT ( * ) * 25 / 85 AS col0
@@ -7536,10 +7539,13 @@ SELECT - - 97 + 10 AS col1
----
107
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-1434
SELECT ALL 98 * - + AVG ( DISTINCT + 63 ) * + 80 * - 11 + - - 82 - + CAST ( NULL AS INTEGER ) AS col1
+----
+NULL
query I rowsort label-1435
SELECT DISTINCT - 58 * COUNT ( * ) AS col1
@@ -12787,10 +12793,13 @@ SELECT DISTINCT + - 39 + - - CAST ( + + 25 AS INTEGER ) * 29
----
686
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-2438
SELECT ALL - NULLIF ( - CASE + - 1 WHEN - 69 + + 56 THEN - 21 - + ( - CASE - + 52 WHEN - ( 21 ) * 62 + 63 * - 19 / + + 77 THEN 58 + + - 82 - + 68 * + 17 * SUM ( + 82 ) WHEN + - 92 * + + ( + - 84 ) * + 54 / 69 * - 37 + COUNT ( * ) + + 21 THEN + - 38 - - + 86 WHEN + ( - 32 ) * - ( + - 38 ) + + - 54 + + 25 THEN - 26 ELSE NULL END ) * - + 57 ELSE - COALESCE ( - 27, + 30 ) * AVG ( DISTINCT - 48 * - 77 ) - - CAST ( NULL AS INTEGER ) / ( + 68 ) END, - COUNT ( - ( 85 ) ) - 64 )
+----
+NULL
query I rowsort
SELECT + ( - + 34 )
@@ -21558,10 +21567,10 @@ SELECT DISTINCT 96 + + COUNT ( * ) + - 2 * + 47
----
3
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - 375
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+query I rowsort label-4110
SELECT + 25 * - NULLIF ( - NULLIF ( 15, - - CASE WHEN 75 NOT IN ( + COUNT ( * ) * + - 14, - COUNT ( + 13 ), + 26, + - 3 * + + 43 + 3, - 54 * - 25 * - ( 13 ), + 71 * AVG ( DISTINCT + 94 ) / + 89 + CAST ( NULL AS INTEGER ), - 6 + + - 71 * + COUNT ( + 16 ), + NULLIF ( COUNT ( * ), + 68 ) ) THEN NULL ELSE - - 42 END + - + 35 ), + 70 ) AS col2
+----
+375
query I rowsort
SELECT ALL 31 + 90 + - 89
@@ -49754,11 +49763,14 @@ SELECT - COUNT ( * ) / ( - - 88 ) + - NULLIF ( COUNT ( * ), 7 )
----
-1
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] I[I]
+# Datafusion - [Actual ] I[R]
+query IR rowsort label-9486
SELECT CASE + 8 WHEN + COUNT ( * ) THEN NULL WHEN + + 26 THEN - CAST ( NULL AS INTEGER ) END, - 37 + CAST ( NULL AS INTEGER ) + 26 + + AVG ( DISTINCT - - 8 ) * - SUM ( DISTINCT - 5 )
+----
+NULL
+NULL
query I rowsort
SELECT + ( + ( - + 45 ) )
@@ -50700,10 +50712,13 @@ SELECT - 66 * 26 AS col2
----
-1716
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-9665
SELECT ALL - - AVG ( DISTINCT 79 ) * - CAST ( NULL AS FLOAT8 )
+----
+NULL
query I rowsort label-9666
SELECT DISTINCT 98 + - COUNT ( * ) + - ( - 32 ) / 6
@@ -50923,10 +50938,13 @@ SELECT COALESCE ( 1, + 44 ) + - 29 AS col0
----
-28
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-9707
SELECT DISTINCT CASE - + 71 WHEN - 45 * - 64 THEN - 94 * COUNT ( * ) - - NULLIF ( + 66, 61 ) / 70 WHEN - + 75 THEN NULL ELSE + CAST ( NULL AS INTEGER ) + + 9 + AVG ( DISTINCT - ( - + 87 ) ) / + - ( - COUNT ( * ) ) END + 28
+----
+NULL
query I rowsort label-9708
SELECT DISTINCT 12 - - + 86 + - COUNT ( - 70 ) * 22 * - COUNT ( * )
diff --git a/data/sqlite/random/expr/slt_good_119.slt b/data/sqlite/random/expr/slt_good_119.slt
index eb55bb1..23d14ef 100644
--- a/data/sqlite/random/expr/slt_good_119.slt
+++ b/data/sqlite/random/expr/slt_good_119.slt
@@ -4265,10 +4265,13 @@ SELECT ALL 20 / + CASE - 13 WHEN - 20 THEN + 91 ELSE NULL END - - 90 AS col0
----
NULL
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort
SELECT ALL + 29 / - CASE 98 WHEN - 87 THEN + 58 + - 70 ELSE NULL END / COALESCE ( 36 * CASE 23 WHEN 91 THEN + 54 * 98 WHEN - 12 + 94 THEN - 55 / + 42 END, - ( 36 ) ) - - AVG ( DISTINCT - 39 ) AS col2
+----
+NULL
query I rowsort label-812
SELECT DISTINCT 63 * + ( - MIN ( - 5 ) )
@@ -24578,10 +24581,13 @@ SELECT ALL - 56 * + 1
----
-56
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-4682
SELECT CASE + 49 WHEN + - COALESCE ( 49, + 72 ) THEN 88 END + - 14 / + AVG ( DISTINCT - 21 ) + - COUNT ( * ) + + COALESCE ( + + CASE + - ( - ( + 24 ) ) WHEN 95 THEN NULL ELSE 61 + 2 END, - - COUNT ( * ) + + 79 / 41, ( - COUNT ( * ) ) ) + - 78 + - 13
+----
+NULL
query I rowsort
SELECT 72 * - 96 AS col0
@@ -26988,10 +26994,13 @@ SELECT DISTINCT 60 * 24
----
1440
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-5143
SELECT 33 / + 15 + + AVG ( DISTINCT - - 37 ) + 53 - - 61 / + + 84 + - CAST ( NULL AS INTEGER ) * - CASE - - COALESCE ( - + 74, - 70 + 93 * CASE + 44 WHEN 5 * - 29 + - COUNT ( * ) THEN NULL WHEN 35 THEN NULL WHEN + 69 THEN NULL ELSE - + CASE ( - 59 ) WHEN - 73 / + SUM ( + 93 ) - - COUNT ( 0 ) * + + 16 * 65 THEN + 16 END END * + 25 ) WHEN + AVG ( ALL + + 49 ) + + COUNT ( * ) THEN CAST ( NULL AS INTEGER ) * + + 93 - - - 79 + 2 WHEN + 67 THEN 5 * - 80 END AS col1
+----
+NULL
query I rowsort
SELECT - 38 + - 77
@@ -31221,10 +31230,13 @@ SELECT - COUNT ( * ) * - - 76 * 90, 44 + + 57 AS col2
-6840
101
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-5957
SELECT ALL - + 73 * + 57 + - AVG ( DISTINCT + 66 ) + + + 73 + - - 9 / - 91 * + 91 + 9 + + 5 + + 20 + - 34 / - COUNT ( * ) * CAST ( NULL AS INTEGER ) + AVG ( - 20 ) AS col0
+----
+NULL
query I rowsort label-5958
SELECT - CASE + 38 WHEN + ( - + 67 ) + - + 99 THEN 83 WHEN + 17 THEN NULL WHEN - 29 * CAST ( + 26 AS INTEGER ) * 39 - - 25 + - ( 48 ) THEN NULL END AS col0
@@ -32348,11 +32360,14 @@ SELECT - 66 + - COALESCE ( 54, 21 * + - 87 * - + 78 + + 69, - + 43 + - 20 + + 28
----
-120
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-# Datafusion - Expected - 29
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]I
+# Datafusion - [Actual ] [R]I
+query RI rowsort label-6172
SELECT - + 45 + - 7 - - - COUNT ( * ) * - - 26 + + + 10 - AVG ( DISTINCT 52 ) + CAST ( NULL AS INTEGER ) AS col2, 29
+----
+NULL
+29
query I rowsort
SELECT - CASE - + 85 WHEN + + 27 * 64 THEN NULL ELSE NULLIF ( + + 21, - 43 ) END
@@ -43472,10 +43487,13 @@ SELECT ALL + COUNT ( * ) * - 54 * - COUNT ( * ) + - 97 / + + 79 + - 31 - CASE +
----
NULL
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-8288
SELECT 42 + 52 * NULLIF ( + 62, + - NULLIF ( + 10, + 95 * - 75 + - - CASE 16 WHEN - 46 THEN - 67 + + 7 + ( + 78 ) + + - 40 * - 60 / - 19 END + 36 + - + CASE CASE + - 68 WHEN + - 77 * - + 98 + + CAST ( 75 AS FLOAT8 ) THEN NULL WHEN 93 * - - ( 22 ) + + 77 THEN + 26 ELSE NULL END WHEN + + ( 21 ) * + 71 THEN + 52 WHEN + ( - 32 ) * - ( CAST ( - 2 AS INTEGER ) ) THEN + 29 / ( - 78 ) ELSE + COUNT ( * ) END ) / + AVG ( DISTINCT 93 ) ) / 24 - + ( + COUNT ( ALL 85 ) + CASE 87 + + CAST ( + 21 AS IN [...]
+----
+NULL
query I rowsort
SELECT + NULLIF ( + 51, 78 ) AS col1
diff --git a/data/sqlite/random/expr/slt_good_12.slt b/data/sqlite/random/expr/slt_good_12.slt
index fcdd72b..8dc9f87 100644
--- a/data/sqlite/random/expr/slt_good_12.slt
+++ b/data/sqlite/random/expr/slt_good_12.slt
@@ -327,10 +327,13 @@ SELECT + 66 * + + 29 + - 98 AS col0
----
1816
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-56
SELECT - - 90 * - + SUM ( DISTINCT + ( + - 48 ) ) * + 26 + - CAST ( - - 64 AS INTEGER ) * + + 79 + - CASE + 32 WHEN 76 THEN 47 END * + COUNT ( * ) + AVG ( DISTINCT 38 ) / - 38 AS col1
+----
+NULL
# Datafusion - Types were automatically converted from:
# Datafusion - [Expected] [I]
@@ -2684,10 +2687,13 @@ SELECT MIN ( DISTINCT - + ( + 77 ) )
----
-77
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-505
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - 87 * - SUM ( + - 22 ) + + - AVG ( DISTINCT + 73 ) + - - 37 - 58 AS col1
+----
+NULL
query II rowsort label-506
SELECT ALL + 4, - COUNT ( * ) AS col0
@@ -4061,10 +4067,13 @@ SELECT + 54 - - 94
----
148
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-767
SELECT ALL + 90 * - AVG ( DISTINCT + 65 ) / + CAST ( NULL AS INTEGER )
+----
+NULL
query I rowsort
SELECT DISTINCT - 14 * - 35 + - 43 * - + 4
@@ -5832,10 +5841,13 @@ SELECT DISTINCT + SUM ( ALL + + 21 )
----
21
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] [I]
+# Datafusion - [Actual ] [R]
+query R rowsort label-1108
SELECT + ( + 21 ) * + CAST ( NULL AS INTEGER ) - + + AVG ( DISTINCT - 25 )
+----
+NULL
query I rowsort label-1109
SELECT ALL MIN ( ALL + - 76 )
@@ -6918,11 +6930,14 @@ SELECT ALL - 71 - CAST ( NULL AS INTEGER ), - CAST ( NULL AS INTEGER ) AS col0
NULL
NULL
-# Datafusion - Datafusion expected results:
-# Datafusion - Expected - 89
-# Datafusion - Expected - NULL
-query error DataFusion error: Execution error: avg\(DISTINCT\) aggregations are not available
+# Datafusion - Types were automatically converted from:
+# Datafusion - [Expected] I[I]
+# Datafusion - [Actual ] I[R]
+query IR rowsort label-1314
SELECT 89 col2, - AVG ( DISTINCT 17 ) + - 69 * + 79 + + 68 + + CAST ( NULL AS INTEGER ) + + - CAST ( NULL AS INTEGER ) + - - 22 + + + 93 * - AVG ( 58 ) / + COUNT ( DISTINCT + 5 ) * - 53 AS col1
+----
+89
... 15559 lines suppressed ...
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@datafusion.apache.org
For additional commands, e-mail: commits-help@datafusion.apache.org