layout: global title: UNSUPPORTED_SUBQUERY_EXPRESSION_CATEGORY error class displayTitle: UNSUPPORTED_SUBQUERY_EXPRESSION_CATEGORY error class license: | Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to You under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unsupported subquery expression:
This error class has the following derived error classes:
Accessing outer query column is not allowed in this location<treeNode>
.
Found an aggregate function in a correlated predicate that has both outer and local references, which is not supported: <function>
.
Correlated column is not allowed in predicate: <treeNode>
.
A correlated outer name reference within a subquery expression body was not found in the enclosing query: <value>
.
Expressions referencing the outer query are not supported outside of WHERE/HAVING clauses: <sqlExprs>
.
Lateral join condition cannot be non-deterministic: <condition>
.
Correlated scalar subqueries must be aggregated to return at most one row.
A GROUP BY clause in a scalar correlated subquery cannot contain non-correlated columns: <value>
.
Non-deterministic lateral subqueries are not supported when joining with outer relations that produce more than one row<treeNode>
.
Correlated column reference ‘<expr>
’ cannot be <dataType>
type.
Correlated scalar subqueries can only be used in filters, aggregations, projections, and UPDATE/MERGE/DELETE commands<treeNode>
.
IN/EXISTS predicate subqueries can only be used in filters, joins, aggregations, window functions, projections, and UPDATE/MERGE/DELETE commands<treeNode>
.