Skip to content
Merged
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
Original file line number Diff line number Diff line change
Expand Up @@ -269,8 +269,13 @@ public Analysis visitQuery(QueryStatement queryStatement, MPPQueryContext contex

// make sure paths in logical view is fetched
updateSchemaTreeByViews(analysis, schemaTree);
if (analysis.useLogicalView() && queryStatement.isAlignByDevice()) {
throw new SemanticException("Views cannot be used in ALIGN BY DEVICE query yet.");
if (analysis.useLogicalView()) {
if (queryStatement.isAlignByDevice()) {
throw new SemanticException("Views cannot be used in ALIGN BY DEVICE query yet.");
}
if (queryStatement.isGroupByTag()) {
throw new SemanticException("Views cannot be used in GROUP BY TAGS query yet.");
}
}
} finally {
logger.debug("[EndFetchSchema]");
Expand Down