@@ -489,73 +489,73 @@ explain SELECT /*+ SET_VAR(enforce_shuffle_join=1) SET_VAR(disable_join_reorder
489489Exchange
490490โโโ output columns: [min(to_yyyymm(a0t)) (#25), a00c.a0f (#28)]
491491โโโ exchange type: Merge
492- โโโ HashJoin
493- โโโ output columns: [min(to_yyyymm(a0t)) (#25), a00c.a0f (#28)]
494- โโโ join type: RIGHT OUTER
495- โโโ build keys: [t1.a0f (#28)]
496- โโโ probe keys: [t2.a0f (#2)]
497- โโโ keys is null equal: [false]
498- โโโ filters: []
499- โโโ build join filters(distributed):
500- โ โโโ filter id:0, build key:t1.a0f (#28), probe key:t2.a0f (#2), filter type:inlist,min_max
501- โโโ estimated rows: 0.00
502- โโโ Filter(Build)
503- โ โโโ output columns: [a00c.a0f (#28)]
504- โ โโโ filters: [row_number() OVER (PARTITION BY a0f ORDER BY a0t DESC NULLS LAST) (#50) = 1]
505- โ โโโ estimated rows: 0.00
506- โ โโโ Window
507- โ โโโ output columns: [a00c.a0f (#28), a00c.a0t (#42), row_number() OVER (PARTITION BY a0f ORDER BY a0t DESC NULLS LAST) (#50)]
508- โ โโโ aggregate function: [row_number]
509- โ โโโ partition by: [a0f]
510- โ โโโ order by: [a0t]
511- โ โโโ frame: [Range: Preceding(None) ~ CurrentRow]
512- โ โโโ WindowPartition
513- โ โโโ output columns: [a00c.a0f (#28), a00c.a0t (#42)]
514- โ โโโ hash keys: [a0f]
515- โ โโโ top: 1
516- โ โโโ estimated rows: 0.00
517- โ โโโ Exchange
518- โ โโโ output columns: [a00c.a0f (#28), a00c.a0t (#42)]
519- โ โโโ exchange type: Hash(a00c.a0f (#28))
520- โ โโโ TableScan
521- โ โโโ table: default.default.a00c
522- โ โโโ output columns: [a0f (#28), a0t (#42)]
523- โ โโโ read rows: 0
524- โ โโโ read size: 0
525- โ โโโ partitions total: 0
526- โ โโโ partitions scanned: 0
527- โ โโโ push downs: [filters: [], limit: NONE]
528- โ โโโ estimated rows: 0.00
529- โโโ Exchange(Probe)
530- โโโ output columns: [min(to_yyyymm(a0t)) (#25), a00c.a0f (#2)]
531- โโโ exchange type: Hash(t2.a0f (#2))
532- โโโ AggregateFinal
492+ โโโ Sequence
493+ โโโ MaterializedCTE: cte_cse_0
494+ โ โโโ TableScan
495+ โ โโโ table: default.default.a00c
496+ โ โโโ output columns: [a0f (#2), a0t (#16), a0w (#19)]
497+ โ โโโ read rows: 0
498+ โ โโโ read size: 0
499+ โ โโโ partitions total: 0
500+ โ โโโ partitions scanned: 0
501+ โ โโโ push downs: [filters: [], limit: NONE]
502+ โ โโโ estimated rows: 0.00
503+ โโโ HashJoin
504+ โโโ output columns: [min(to_yyyymm(a0t)) (#25), a00c.a0f (#28)]
505+ โโโ join type: RIGHT OUTER
506+ โโโ build keys: [t1.a0f (#28)]
507+ โโโ probe keys: [t2.a0f (#2)]
508+ โโโ keys is null equal: [false]
509+ โโโ filters: []
510+ โโโ build join filters(distributed):
511+ โ โโโ filter id:0, build key:t1.a0f (#28), probe key:t2.a0f (#2), filter type:inlist,min_max
512+ โโโ estimated rows: 0.00
513+ โโโ Filter(Build)
514+ โ โโโ output columns: [a00c.a0f (#28)]
515+ โ โโโ filters: [row_number() OVER (PARTITION BY a0f ORDER BY a0t DESC NULLS LAST) (#50) = 1]
516+ โ โโโ estimated rows: 0.00
517+ โ โโโ Window
518+ โ โโโ output columns: [a00c.a0f (#28), a00c.a0t (#42), a00c.a0w (#45), row_number() OVER (PARTITION BY a0f ORDER BY a0t DESC NULLS LAST) (#50)]
519+ โ โโโ aggregate function: [row_number]
520+ โ โโโ partition by: [a0f]
521+ โ โโโ order by: [a0t]
522+ โ โโโ frame: [Range: Preceding(None) ~ CurrentRow]
523+ โ โโโ WindowPartition
524+ โ โโโ output columns: [a00c.a0f (#28), a00c.a0t (#42), a00c.a0w (#45)]
525+ โ โโโ hash keys: [a0f]
526+ โ โโโ top: 1
527+ โ โโโ estimated rows: 0.00
528+ โ โโโ Exchange
529+ โ โโโ output columns: [a00c.a0f (#28), a00c.a0t (#42), a00c.a0w (#45)]
530+ โ โโโ exchange type: Hash(a00c.a0f (#28))
531+ โ โโโ MaterializeCTERef
532+ โ โโโ cte_name: cte_cse_0
533+ โ โโโ cte_schema: [a0f (#28), a0t (#42), a0w (#45)]
534+ โ โโโ estimated rows: 0.00
535+ โโโ Exchange(Probe)
533536 โโโ output columns: [min(to_yyyymm(a0t)) (#25), a00c.a0f (#2)]
534- โโโ group by: [a0f]
535- โโโ aggregate functions: [min(min_arg_0)]
536- โโโ estimated rows: 0.00
537- โโโ Exchange
537+ โโโ exchange type: Hash(t2.a0f (#2))
538+ โโโ AggregateFinal
538539 โโโ output columns: [min(to_yyyymm(a0t)) (#25), a00c.a0f (#2)]
539- โโโ exchange type: Hash(0)
540- โโโ AggregatePartial
541- โโโ group by: [a0f]
542- โโโ aggregate functions: [min(min_arg_0)]
543- โโโ estimated rows: 0.00
544- โโโ EvalScalar
545- โโโ output columns: [a00c.a0f (#2), min_arg_0 (#24)]
546- โโโ expressions: [to_yyyymm(CAST(a00c.a0t (#16) AS Date NULL))]
540+ โโโ group by: [a0f]
541+ โโโ aggregate functions: [min(min_arg_0)]
542+ โโโ estimated rows: 0.00
543+ โโโ Exchange
544+ โโโ output columns: [min(to_yyyymm(a0t)) (#25), a00c.a0f (#2)]
545+ โโโ exchange type: Hash(0)
546+ โโโ AggregatePartial
547+ โโโ group by: [a0f]
548+ โโโ aggregate functions: [min(min_arg_0)]
547549 โโโ estimated rows: 0.00
548- โโโ Filter
549- โโโ output columns: [a00c.a0f (#2), a00c.a0t (#16 )]
550- โโโ filters : [is_true( a00c.a0w (#19) = 'ๆฑ็ผด' )]
550+ โโโ EvalScalar
551+ โโโ output columns: [a00c.a0f (#2), min_arg_0 (#24 )]
552+ โโโ expressions : [to_yyyymm(CAST( a00c.a0t (#16) AS Date NULL) )]
551553 โโโ estimated rows: 0.00
552- โโโ TableScan
553- โโโ table: default.default.a00c
554- โโโ output columns: [a0f (#2), a0t (#16), a0w (#19)]
555- โโโ read rows: 0
556- โโโ read size: 0
557- โโโ partitions total: 0
558- โโโ partitions scanned: 0
559- โโโ push downs: [filters: [is_true(a00c.a0w (#19) = 'ๆฑ็ผด')], limit: NONE]
560- โโโ apply join filters: [#0]
561- โโโ estimated rows: 0.00
554+ โโโ Filter
555+ โโโ output columns: [a00c.a0f (#2), a00c.a0t (#16)]
556+ โโโ filters: [is_true(a00c.a0w (#19) = 'ๆฑ็ผด')]
557+ โโโ estimated rows: 0.00
558+ โโโ MaterializeCTERef
559+ โโโ cte_name: cte_cse_0
560+ โโโ cte_schema: [a0f (#2), a0t (#16), a0w (#19)]
561+ โโโ estimated rows: 0.00
0 commit comments