Skip to content

Commit

Permalink
upgrade pretty-xmlish to fix singleton lists pretty printing (#778)
Browse files Browse the repository at this point in the history
Signed-off-by: ice1000 <ice1000kotlin@foxmail.com>
  • Loading branch information
ice1000 authored Feb 21, 2023
1 parent 60ceb9e commit 10e511f
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 35 deletions.
25 changes: 13 additions & 12 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

39 changes: 16 additions & 23 deletions tests/planner_test/tpch.planner.sql
Original file line number Diff line number Diff line change
Expand Up @@ -229,9 +229,8 @@ Projection
│ └── o_orderdate
├── cost: 63647.88
└── Aggregate
├── aggs:
│ ┌── sum
│ │ └── * { lhs: l_extendedprice, rhs: - { lhs: 1, rhs: l_discount } }
├── aggs: sum
│ └── * { lhs: l_extendedprice, rhs: - { lhs: 1, rhs: l_discount } }
├── group_by: [ l_orderkey, o_orderdate, o_shippriority ]
├── cost: 62224.105
└── Projection
Expand Down Expand Up @@ -290,15 +289,13 @@ Projection
│ └── * { lhs: l_extendedprice, rhs: - { lhs: 1, rhs: l_discount } }
├── cost: 163126.61
└── Order
├── by:
│ ┌── desc
│ │ └── sum
│ │ └── * { lhs: l_extendedprice, rhs: - { lhs: 1, rhs: l_discount } }
├── by: desc
│ └── sum
│ └── * { lhs: l_extendedprice, rhs: - { lhs: 1, rhs: l_discount } }
├── cost: 161626.61
└── Aggregate
├── aggs:
│ ┌── sum
│ │ └── * { lhs: l_extendedprice, rhs: - { lhs: 1, rhs: l_discount } }
├── aggs: sum
│ └── * { lhs: l_extendedprice, rhs: - { lhs: 1, rhs: l_discount } }
├── group_by: [ n_name ]
├── cost: 156142.28
└── Projection { exprs: [ n_name, l_extendedprice, l_discount ], cost: 154242.28 }
Expand Down Expand Up @@ -360,14 +357,12 @@ where

/*
Projection
├── exprs:
│ ┌── sum
│ │ └── * { lhs: l_discount, rhs: l_extendedprice }
├── exprs: sum
│ └── * { lhs: l_discount, rhs: l_extendedprice }
├── cost: 8163.5923
└── Aggregate
├── aggs:
│ ┌── sum
│ │ └── * { lhs: l_discount, rhs: l_extendedprice }
├── aggs: sum
│ └── * { lhs: l_discount, rhs: l_extendedprice }
├── group_by: []
├── cost: 8161.992
└── Projection { exprs: [ l_extendedprice, l_discount ], cost: 7964.3843 }
Expand Down Expand Up @@ -435,15 +430,13 @@ Projection
└── TopN
├── limit: 20
├── offset: 0
├── order_by:
│ ┌── desc
│ │ └── sum
│ │ └── * { lhs: l_extendedprice, rhs: - { lhs: 1, rhs: l_discount } }
├── order_by: desc
│ └── sum
│ └── * { lhs: l_extendedprice, rhs: - { lhs: 1, rhs: l_discount } }
├── cost: 137869.53
└── Aggregate
├── aggs:
│ ┌── sum
│ │ └── * { lhs: l_extendedprice, rhs: - { lhs: 1, rhs: l_discount } }
├── aggs: sum
│ └── * { lhs: l_extendedprice, rhs: - { lhs: 1, rhs: l_discount } }
├── group_by: [ c_custkey, c_name, c_acctbal, c_phone, n_name, c_address, c_comment ]
├── cost: 135513.38
└── Projection
Expand Down

0 comments on commit 10e511f

Please sign in to comment.