Adding upstream version 26.12.0.
Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
parent
aa70b5e889
commit
4118582692
70 changed files with 1134 additions and 340 deletions
479
tests/fixtures/optimizer/tpc-ds/tpc-ds.sql
vendored
479
tests/fixtures/optimizer/tpc-ds/tpc-ds.sql
vendored
|
@ -1227,7 +1227,408 @@ WITH "a1" AS (
|
|||
SUBSTRING("customer_address"."ca_zip", 1, 5) AS "ca_zip"
|
||||
FROM "customer_address" AS "customer_address"
|
||||
WHERE
|
||||
SUBSTRING("customer_address"."ca_zip", 1, 5) IN ('67436', '26121', '38443', '63157', '68856', '19485', '86425', '26741', '70991', '60899', '63573', '47556', '56193', '93314', '87827', '62017', '85067', '95390', '48091', '10261', '81845', '41790', '42853', '24675', '12840', '60065', '84430', '57451', '24021', '91735', '75335', '71935', '34482', '56943', '70695', '52147', '56251', '28411', '86653', '23005', '22478', '29031', '34398', '15365', '42460', '33337', '59433', '73943', '72477', '74081', '74430', '64605', '39006', '11226', '49057', '97308', '42663', '18187', '19768', '43454', '32147', '76637', '51975', '11181', '45630', '33129', '45995', '64386', '55522', '26697', '20963', '35154', '64587', '49752', '66386', '30586', '59286', '13177', '66646', '84195', '74316', '36853', '32927', '12469', '11904', '36269', '17724', '55346', '12595', '53988', '65439', '28015', '63268', '73590', '29216', '82575', '69267', '13805', '91678', '79460', '94152', '14961', '15419', '48277', '62588', '55493', '28360', '14152', '55225', '18007', '53705', '56573', '80245', '71769', '57348', '36845', '13039', '17270', '22363', '83474', '25294', '43269', '77666', '15488', '99146', '64441', '43338', '38736', '62754', '48556', '86057', '23090', '38114', '66061', '18910', '84385', '23600', '19975', '27883', '65719', '19933', '32085', '49731', '40473', '27190', '46192', '23949', '44738', '12436', '64794', '68741', '15333', '24282', '49085', '31844', '71156', '48441', '17100', '98207', '44982', '20277', '71496', '96299', '37583', '22206', '89174', '30589', '61924', '53079', '10976', '13104', '42794', '54772', '15809', '56434', '39975', '13874', '30753', '77598', '78229', '59478', '12345', '55547', '57422', '42600', '79444', '29074', '29752', '21676', '32096', '43044', '39383', '37296', '36295', '63077', '16572', '31275', '18701', '40197', '48242', '27219', '49865', '84175', '30446', '25165', '13807', '72142', '70499', '70464', '71429', '18111', '70857', '29545', '36425', '52706', '36194', '42963', '75068', '47921', '74763', '90990', '89456', '62073', '88397', '73963', '75885', '62657', '12530', '81146', '57434', '25099', '41429', '98441', '48713', '52552', '31667', '14072', '13903', '44709', '85429', '58017', '38295', '44875', '73541', '30091', '12707', '23762', '62258', '33247', '78722', '77431', '14510', '35656', '72428', '92082', '35267', '43759', '24354', '90952', '11512', '21242', '22579', '56114', '32339', '52282', '41791', '24484', '95020', '28408', '99710', '11899', '43344', '72915', '27644', '62708', '74479', '17177', '32619', '12351', '91339', '31169', '57081', '53522', '16712', '34419', '71779', '44187', '46206', '96099', '61910', '53664', '12295', '31837', '33096', '10813', '63048', '31732', '79118', '73084', '72783', '84952', '46965', '77956', '39815', '32311', '75329', '48156', '30826', '49661', '13736', '92076', '74865', '88149', '92397', '52777', '68453', '32012', '21222', '52721', '24626', '18210', '42177', '91791', '75251', '82075', '44372', '45542', '20609', '60115', '17362', '22750', '90434', '31852', '54071', '33762', '14705', '40718', '56433', '30996', '40657', '49056', '23585', '66455', '41021', '74736', '72151', '37007', '21729', '60177', '84558', '59027', '93855', '60022', '86443', '19541', '86886', '30532', '39062', '48532', '34713', '52077', '22564', '64638', '15273', '31677', '36138', '62367', '60261', '80213', '42818', '25113', '72378', '69802', '69096', '55443', '28820', '13848', '78258', '37490', '30556', '77380', '28447', '44550', '26791', '70609', '82182', '33306', '43224', '22322', '86959', '68519', '14308', '46501', '81131', '34056', '61991', '19896', '87804', '65774', '92564')
|
||||
SUBSTRING("customer_address"."ca_zip", 1, 5) IN (
|
||||
'67436',
|
||||
'26121',
|
||||
'38443',
|
||||
'63157',
|
||||
'68856',
|
||||
'19485',
|
||||
'86425',
|
||||
'26741',
|
||||
'70991',
|
||||
'60899',
|
||||
'63573',
|
||||
'47556',
|
||||
'56193',
|
||||
'93314',
|
||||
'87827',
|
||||
'62017',
|
||||
'85067',
|
||||
'95390',
|
||||
'48091',
|
||||
'10261',
|
||||
'81845',
|
||||
'41790',
|
||||
'42853',
|
||||
'24675',
|
||||
'12840',
|
||||
'60065',
|
||||
'84430',
|
||||
'57451',
|
||||
'24021',
|
||||
'91735',
|
||||
'75335',
|
||||
'71935',
|
||||
'34482',
|
||||
'56943',
|
||||
'70695',
|
||||
'52147',
|
||||
'56251',
|
||||
'28411',
|
||||
'86653',
|
||||
'23005',
|
||||
'22478',
|
||||
'29031',
|
||||
'34398',
|
||||
'15365',
|
||||
'42460',
|
||||
'33337',
|
||||
'59433',
|
||||
'73943',
|
||||
'72477',
|
||||
'74081',
|
||||
'74430',
|
||||
'64605',
|
||||
'39006',
|
||||
'11226',
|
||||
'49057',
|
||||
'97308',
|
||||
'42663',
|
||||
'18187',
|
||||
'19768',
|
||||
'43454',
|
||||
'32147',
|
||||
'76637',
|
||||
'51975',
|
||||
'11181',
|
||||
'45630',
|
||||
'33129',
|
||||
'45995',
|
||||
'64386',
|
||||
'55522',
|
||||
'26697',
|
||||
'20963',
|
||||
'35154',
|
||||
'64587',
|
||||
'49752',
|
||||
'66386',
|
||||
'30586',
|
||||
'59286',
|
||||
'13177',
|
||||
'66646',
|
||||
'84195',
|
||||
'74316',
|
||||
'36853',
|
||||
'32927',
|
||||
'12469',
|
||||
'11904',
|
||||
'36269',
|
||||
'17724',
|
||||
'55346',
|
||||
'12595',
|
||||
'53988',
|
||||
'65439',
|
||||
'28015',
|
||||
'63268',
|
||||
'73590',
|
||||
'29216',
|
||||
'82575',
|
||||
'69267',
|
||||
'13805',
|
||||
'91678',
|
||||
'79460',
|
||||
'94152',
|
||||
'14961',
|
||||
'15419',
|
||||
'48277',
|
||||
'62588',
|
||||
'55493',
|
||||
'28360',
|
||||
'14152',
|
||||
'55225',
|
||||
'18007',
|
||||
'53705',
|
||||
'56573',
|
||||
'80245',
|
||||
'71769',
|
||||
'57348',
|
||||
'36845',
|
||||
'13039',
|
||||
'17270',
|
||||
'22363',
|
||||
'83474',
|
||||
'25294',
|
||||
'43269',
|
||||
'77666',
|
||||
'15488',
|
||||
'99146',
|
||||
'64441',
|
||||
'43338',
|
||||
'38736',
|
||||
'62754',
|
||||
'48556',
|
||||
'86057',
|
||||
'23090',
|
||||
'38114',
|
||||
'66061',
|
||||
'18910',
|
||||
'84385',
|
||||
'23600',
|
||||
'19975',
|
||||
'27883',
|
||||
'65719',
|
||||
'19933',
|
||||
'32085',
|
||||
'49731',
|
||||
'40473',
|
||||
'27190',
|
||||
'46192',
|
||||
'23949',
|
||||
'44738',
|
||||
'12436',
|
||||
'64794',
|
||||
'68741',
|
||||
'15333',
|
||||
'24282',
|
||||
'49085',
|
||||
'31844',
|
||||
'71156',
|
||||
'48441',
|
||||
'17100',
|
||||
'98207',
|
||||
'44982',
|
||||
'20277',
|
||||
'71496',
|
||||
'96299',
|
||||
'37583',
|
||||
'22206',
|
||||
'89174',
|
||||
'30589',
|
||||
'61924',
|
||||
'53079',
|
||||
'10976',
|
||||
'13104',
|
||||
'42794',
|
||||
'54772',
|
||||
'15809',
|
||||
'56434',
|
||||
'39975',
|
||||
'13874',
|
||||
'30753',
|
||||
'77598',
|
||||
'78229',
|
||||
'59478',
|
||||
'12345',
|
||||
'55547',
|
||||
'57422',
|
||||
'42600',
|
||||
'79444',
|
||||
'29074',
|
||||
'29752',
|
||||
'21676',
|
||||
'32096',
|
||||
'43044',
|
||||
'39383',
|
||||
'37296',
|
||||
'36295',
|
||||
'63077',
|
||||
'16572',
|
||||
'31275',
|
||||
'18701',
|
||||
'40197',
|
||||
'48242',
|
||||
'27219',
|
||||
'49865',
|
||||
'84175',
|
||||
'30446',
|
||||
'25165',
|
||||
'13807',
|
||||
'72142',
|
||||
'70499',
|
||||
'70464',
|
||||
'71429',
|
||||
'18111',
|
||||
'70857',
|
||||
'29545',
|
||||
'36425',
|
||||
'52706',
|
||||
'36194',
|
||||
'42963',
|
||||
'75068',
|
||||
'47921',
|
||||
'74763',
|
||||
'90990',
|
||||
'89456',
|
||||
'62073',
|
||||
'88397',
|
||||
'73963',
|
||||
'75885',
|
||||
'62657',
|
||||
'12530',
|
||||
'81146',
|
||||
'57434',
|
||||
'25099',
|
||||
'41429',
|
||||
'98441',
|
||||
'48713',
|
||||
'52552',
|
||||
'31667',
|
||||
'14072',
|
||||
'13903',
|
||||
'44709',
|
||||
'85429',
|
||||
'58017',
|
||||
'38295',
|
||||
'44875',
|
||||
'73541',
|
||||
'30091',
|
||||
'12707',
|
||||
'23762',
|
||||
'62258',
|
||||
'33247',
|
||||
'78722',
|
||||
'77431',
|
||||
'14510',
|
||||
'35656',
|
||||
'72428',
|
||||
'92082',
|
||||
'35267',
|
||||
'43759',
|
||||
'24354',
|
||||
'90952',
|
||||
'11512',
|
||||
'21242',
|
||||
'22579',
|
||||
'56114',
|
||||
'32339',
|
||||
'52282',
|
||||
'41791',
|
||||
'24484',
|
||||
'95020',
|
||||
'28408',
|
||||
'99710',
|
||||
'11899',
|
||||
'43344',
|
||||
'72915',
|
||||
'27644',
|
||||
'62708',
|
||||
'74479',
|
||||
'17177',
|
||||
'32619',
|
||||
'12351',
|
||||
'91339',
|
||||
'31169',
|
||||
'57081',
|
||||
'53522',
|
||||
'16712',
|
||||
'34419',
|
||||
'71779',
|
||||
'44187',
|
||||
'46206',
|
||||
'96099',
|
||||
'61910',
|
||||
'53664',
|
||||
'12295',
|
||||
'31837',
|
||||
'33096',
|
||||
'10813',
|
||||
'63048',
|
||||
'31732',
|
||||
'79118',
|
||||
'73084',
|
||||
'72783',
|
||||
'84952',
|
||||
'46965',
|
||||
'77956',
|
||||
'39815',
|
||||
'32311',
|
||||
'75329',
|
||||
'48156',
|
||||
'30826',
|
||||
'49661',
|
||||
'13736',
|
||||
'92076',
|
||||
'74865',
|
||||
'88149',
|
||||
'92397',
|
||||
'52777',
|
||||
'68453',
|
||||
'32012',
|
||||
'21222',
|
||||
'52721',
|
||||
'24626',
|
||||
'18210',
|
||||
'42177',
|
||||
'91791',
|
||||
'75251',
|
||||
'82075',
|
||||
'44372',
|
||||
'45542',
|
||||
'20609',
|
||||
'60115',
|
||||
'17362',
|
||||
'22750',
|
||||
'90434',
|
||||
'31852',
|
||||
'54071',
|
||||
'33762',
|
||||
'14705',
|
||||
'40718',
|
||||
'56433',
|
||||
'30996',
|
||||
'40657',
|
||||
'49056',
|
||||
'23585',
|
||||
'66455',
|
||||
'41021',
|
||||
'74736',
|
||||
'72151',
|
||||
'37007',
|
||||
'21729',
|
||||
'60177',
|
||||
'84558',
|
||||
'59027',
|
||||
'93855',
|
||||
'60022',
|
||||
'86443',
|
||||
'19541',
|
||||
'86886',
|
||||
'30532',
|
||||
'39062',
|
||||
'48532',
|
||||
'34713',
|
||||
'52077',
|
||||
'22564',
|
||||
'64638',
|
||||
'15273',
|
||||
'31677',
|
||||
'36138',
|
||||
'62367',
|
||||
'60261',
|
||||
'80213',
|
||||
'42818',
|
||||
'25113',
|
||||
'72378',
|
||||
'69802',
|
||||
'69096',
|
||||
'55443',
|
||||
'28820',
|
||||
'13848',
|
||||
'78258',
|
||||
'37490',
|
||||
'30556',
|
||||
'77380',
|
||||
'28447',
|
||||
'44550',
|
||||
'26791',
|
||||
'70609',
|
||||
'82182',
|
||||
'33306',
|
||||
'43224',
|
||||
'22322',
|
||||
'86959',
|
||||
'68519',
|
||||
'14308',
|
||||
'46501',
|
||||
'81131',
|
||||
'34056',
|
||||
'61991',
|
||||
'19896',
|
||||
'87804',
|
||||
'65774',
|
||||
'92564'
|
||||
)
|
||||
INTERSECT
|
||||
SELECT
|
||||
"a1"."ca_zip" AS "ca_zip"
|
||||
|
@ -1580,7 +1981,13 @@ LEFT JOIN "_u_4" AS "_u_4"
|
|||
ON "_u_4"."_u_5" = "c"."c_customer_sk"
|
||||
JOIN "customer_address" AS "ca"
|
||||
ON "c"."c_current_addr_sk" = "ca"."ca_address_sk"
|
||||
AND "ca"."ca_county" IN ('Lycoming County', 'Sheridan County', 'Kandiyohi County', 'Pike County', 'Greene County')
|
||||
AND "ca"."ca_county" IN (
|
||||
'Lycoming County',
|
||||
'Sheridan County',
|
||||
'Kandiyohi County',
|
||||
'Pike County',
|
||||
'Greene County'
|
||||
)
|
||||
JOIN "customer_demographics" AS "customer_demographics"
|
||||
ON "c"."c_current_cdemo_sk" = "customer_demographics"."cd_demo_sk"
|
||||
WHERE
|
||||
|
@ -2413,7 +2820,13 @@ LEFT JOIN "_u_3" AS "_u_3"
|
|||
ON "_u_3"."_u_4" = "cs1"."cs_order_number"
|
||||
JOIN "call_center" AS "call_center"
|
||||
ON "call_center"."cc_call_center_sk" = "cs1"."cs_call_center_sk"
|
||||
AND "call_center"."cc_county" IN ('Williamson County', 'Williamson County', 'Williamson County', 'Williamson County', 'Williamson County')
|
||||
AND "call_center"."cc_county" IN (
|
||||
'Williamson County',
|
||||
'Williamson County',
|
||||
'Williamson County',
|
||||
'Williamson County',
|
||||
'Williamson County'
|
||||
)
|
||||
JOIN "customer_address" AS "customer_address"
|
||||
ON "cs1"."cs_ship_addr_sk" = "customer_address"."ca_address_sk"
|
||||
AND "customer_address"."ca_state" = 'IA'
|
||||
|
@ -4221,7 +4634,16 @@ WITH "dn" AS (
|
|||
ELSE NULL
|
||||
END > 1.2
|
||||
JOIN "store" AS "store"
|
||||
ON "store"."s_county" IN ('Williamson County', 'Williamson County', 'Williamson County', 'Williamson County', 'Williamson County', 'Williamson County', 'Williamson County', 'Williamson County')
|
||||
ON "store"."s_county" IN (
|
||||
'Williamson County',
|
||||
'Williamson County',
|
||||
'Williamson County',
|
||||
'Williamson County',
|
||||
'Williamson County',
|
||||
'Williamson County',
|
||||
'Williamson County',
|
||||
'Williamson County'
|
||||
)
|
||||
AND "store"."s_store_sk" = "store_sales"."ss_store_sk"
|
||||
GROUP BY
|
||||
"store_sales"."ss_ticket_number",
|
||||
|
@ -6339,7 +6761,12 @@ WITH "tmp1" AS (
|
|||
WHERE
|
||||
(
|
||||
"item"."i_brand" IN ('amalgimporto #1', 'edu packscholar #1', 'exportiimporto #1', 'importoamalg #1')
|
||||
OR "item"."i_brand" IN ('scholaramalgamalg #14', 'scholaramalgamalg #7', 'exportiunivamalg #9', 'scholaramalgamalg #9')
|
||||
OR "item"."i_brand" IN (
|
||||
'scholaramalgamalg #14',
|
||||
'scholaramalgamalg #7',
|
||||
'exportiunivamalg #9',
|
||||
'scholaramalgamalg #9'
|
||||
)
|
||||
)
|
||||
AND (
|
||||
"item"."i_brand" IN ('amalgimporto #1', 'edu packscholar #1', 'exportiimporto #1', 'importoamalg #1')
|
||||
|
@ -6350,11 +6777,21 @@ WITH "tmp1" AS (
|
|||
OR "item"."i_class" IN ('personal', 'portable', 'reference', 'self-help')
|
||||
)
|
||||
AND (
|
||||
"item"."i_brand" IN ('scholaramalgamalg #14', 'scholaramalgamalg #7', 'exportiunivamalg #9', 'scholaramalgamalg #9')
|
||||
"item"."i_brand" IN (
|
||||
'scholaramalgamalg #14',
|
||||
'scholaramalgamalg #7',
|
||||
'exportiunivamalg #9',
|
||||
'scholaramalgamalg #9'
|
||||
)
|
||||
OR "item"."i_category" IN ('Women', 'Music', 'Men')
|
||||
)
|
||||
AND (
|
||||
"item"."i_brand" IN ('scholaramalgamalg #14', 'scholaramalgamalg #7', 'exportiunivamalg #9', 'scholaramalgamalg #9')
|
||||
"item"."i_brand" IN (
|
||||
'scholaramalgamalg #14',
|
||||
'scholaramalgamalg #7',
|
||||
'exportiunivamalg #9',
|
||||
'scholaramalgamalg #9'
|
||||
)
|
||||
OR "item"."i_class" IN ('accessories', 'classical', 'fragrances', 'pants')
|
||||
)
|
||||
AND (
|
||||
|
@ -7755,7 +8192,12 @@ WITH "tmp1" AS (
|
|||
WHERE
|
||||
(
|
||||
"item"."i_brand" IN ('amalgimporto #1', 'edu packscholar #1', 'exportiimporto #1', 'importoamalg #1')
|
||||
OR "item"."i_brand" IN ('scholaramalgamalg #14', 'scholaramalgamalg #7', 'exportiunivamalg #9', 'scholaramalgamalg #9')
|
||||
OR "item"."i_brand" IN (
|
||||
'scholaramalgamalg #14',
|
||||
'scholaramalgamalg #7',
|
||||
'exportiunivamalg #9',
|
||||
'scholaramalgamalg #9'
|
||||
)
|
||||
)
|
||||
AND (
|
||||
"item"."i_brand" IN ('amalgimporto #1', 'edu packscholar #1', 'exportiimporto #1', 'importoamalg #1')
|
||||
|
@ -7766,11 +8208,21 @@ WITH "tmp1" AS (
|
|||
OR "item"."i_class" IN ('personal', 'portable', 'reference', 'self-help')
|
||||
)
|
||||
AND (
|
||||
"item"."i_brand" IN ('scholaramalgamalg #14', 'scholaramalgamalg #7', 'exportiunivamalg #9', 'scholaramalgamalg #9')
|
||||
"item"."i_brand" IN (
|
||||
'scholaramalgamalg #14',
|
||||
'scholaramalgamalg #7',
|
||||
'exportiunivamalg #9',
|
||||
'scholaramalgamalg #9'
|
||||
)
|
||||
OR "item"."i_category" IN ('Women', 'Music', 'Men')
|
||||
)
|
||||
AND (
|
||||
"item"."i_brand" IN ('scholaramalgamalg #14', 'scholaramalgamalg #7', 'exportiunivamalg #9', 'scholaramalgamalg #9')
|
||||
"item"."i_brand" IN (
|
||||
'scholaramalgamalg #14',
|
||||
'scholaramalgamalg #7',
|
||||
'exportiunivamalg #9',
|
||||
'scholaramalgamalg #9'
|
||||
)
|
||||
OR "item"."i_class" IN ('accessories', 'classical', 'fragrances', 'pants')
|
||||
)
|
||||
AND (
|
||||
|
@ -9677,7 +10129,12 @@ WITH "dj" AS (
|
|||
ELSE NULL
|
||||
END > 1
|
||||
JOIN "store" AS "store"
|
||||
ON "store"."s_county" IN ('Williamson County', 'Williamson County', 'Williamson County', 'Williamson County')
|
||||
ON "store"."s_county" IN (
|
||||
'Williamson County',
|
||||
'Williamson County',
|
||||
'Williamson County',
|
||||
'Williamson County'
|
||||
)
|
||||
AND "store"."s_store_sk" = "store_sales"."ss_store_sk"
|
||||
GROUP BY
|
||||
"store_sales"."ss_ticket_number",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue