Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 2 additions & 18 deletions internal/explain/dictionary.go
Original file line number Diff line number Diff line change
Expand Up @@ -153,23 +153,7 @@ func explainDictionaryLayout(sb *strings.Builder, n *ast.DictionaryLayout, inden
}

// explainDictionaryRange outputs a dictionary RANGE clause.
// Note: ClickHouse's EXPLAIN does not output children for Dictionary range.
func explainDictionaryRange(sb *strings.Builder, n *ast.DictionaryRange, indent string, depth int) {
children := 0
if n.Min != nil {
children++
}
if n.Max != nil {
children++
}
if children > 0 {
fmt.Fprintf(sb, "%sDictionary range (children %d)\n", indent, children)
if n.Min != nil {
Node(sb, n.Min, depth+1)
}
if n.Max != nil {
Node(sb, n.Max, depth+1)
}
} else {
fmt.Fprintf(sb, "%sDictionary range\n", indent)
}
fmt.Fprintf(sb, "%sDictionary range\n", indent)
}
Original file line number Diff line number Diff line change
@@ -1,5 +1 @@
{
"explain_todo": {
"stmt1": true
}
}
{}