File tree Expand file tree Collapse file tree 3 files changed +2
-4
lines changed Expand file tree Collapse file tree 3 files changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -1429,7 +1429,7 @@ pub enum TableFactor {
1429
1429
/// List of dimensions or expression referring to dimensions (e.g. DATE_PART('year', col))
1430
1430
dimensions : Vec < Expr > ,
1431
1431
/// List of metrics (references to objects like orders.value, value, orders.*)
1432
- metrics : Vec < ObjectName > ,
1432
+ metrics : Vec < Expr > ,
1433
1433
/// List of facts or expressions referring to facts or dimensions.
1434
1434
facts : Vec < Expr > ,
1435
1435
/// WHERE clause for filtering
Original file line number Diff line number Diff line change @@ -13958,8 +13958,7 @@ impl<'a> Parser<'a> {
13958
13958
"METRICS clause can only be specified once".to_string(),
13959
13959
));
13960
13960
}
13961
- metrics = self
13962
- .parse_comma_separated(|parser| parser.parse_object_name_inner(true, true))?;
13961
+ metrics = self.parse_comma_separated(Parser::parse_wildcard_expr)?;
13963
13962
} else if self.parse_keyword(Keyword::FACTS) {
13964
13963
if !facts.is_empty() {
13965
13964
return Err(ParserError::ParserError(
Original file line number Diff line number Diff line change @@ -16981,7 +16981,6 @@ fn test_parse_semantic_view_table_factor() {
16981
16981
let invalid_sqls = [
16982
16982
"SELECT * FROM SEMANTIC_VIEW(model DIMENSIONS dim1 INVALID inv1)",
16983
16983
"SELECT * FROM SEMANTIC_VIEW(model DIMENSIONS dim1 DIMENSIONS dim2)",
16984
- "SELECT * FROM SEMANTIC_VIEW(model METRICS SUM(met1.avg))",
16985
16984
];
16986
16985
16987
16986
for sql in invalid_sqls {
You can’t perform that action at this time.
0 commit comments