Add explain message

parent a1530f6f
...@@ -2807,7 +2807,7 @@ type selectDummyPlan struct { ...@@ -2807,7 +2807,7 @@ type selectDummyPlan struct {
func (r *selectDummyPlan) hasID() bool { return true } func (r *selectDummyPlan) hasID() bool { return true }
func (r *selectDummyPlan) explain(w strutil.Formatter) { func (r *selectDummyPlan) explain(w strutil.Formatter) {
// w.Format("┌Iterate all rows of table %q\n└Output field names %v\n", r.t.name, qnames(r.fieldNames())) w.Format("┌Iselects values from dummy table\n└Output field names %v\n", qnames(r.fieldNames()))
} }
func (r *selectDummyPlan) fieldNames() []string { return make([]string, len(r.fields)) } func (r *selectDummyPlan) fieldNames() []string { return make([]string, len(r.fields)) }
......
...@@ -8398,6 +8398,8 @@ SELECT * FROM t WHERE c1 == 1; ...@@ -8398,6 +8398,8 @@ SELECT * FROM t WHERE c1 == 1;
---- 1347 ---- 1347
SELECT 42; SELECT 42;
┌Iselects values from dummy table
└Output field names [""]
┌Evaluate 42 as "", ┌Evaluate 42 as "",
└Output field names [""] └Output field names [""]
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment