cockroachdb / cockroach

CockroachDB — the cloud native, distributed SQL database designed for high availability, effortless scale, and control over data placement.
https://www.cockroachlabs.com
Other
29.9k stars 3.78k forks source link

sql: "SELECT~~+~++~\xbd(*)" and handling *StarExpr in EvalExpr #1948

Closed tbg closed 9 years ago

tbg commented 9 years ago
Expr: (*parser.StarExpr)(0x20849c028)({
 TableName: (*parser.QualifiedName)(<nil>)
})
panic: eval: unsupported expression type: *parser.StarExpr

I'm not sure whether

petermattis commented 9 years ago

Definitely a bug, but I need to think about this further. Expanding StarExpr into the full list of columns isn't necessarily correct for aggregation functions like COUNT(*).