diff --git a/ast.go b/ast.go index caa324f..6d661fb 100644 --- a/ast.go +++ b/ast.go @@ -3475,7 +3475,11 @@ func (m *Measurement) String() string { _, _ = buf.WriteString(m.Regex.String()) } - return buf.String() + if buf.Len() == 0 { + return QuoteIdent("") + } else { + return buf.String() + } } // SubQuery is a source with a SelectStatement as the backing store.