Skip to content

Commit

Permalink
HHH-16974 IllegalStateException Unsupported tuple comparison combination
Browse files Browse the repository at this point in the history
  • Loading branch information
dreab8 authored and beikov committed Feb 7, 2024
1 parent e7f9875 commit e9946db
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -7734,7 +7734,8 @@ else if ( needsTupleComparisonEmulation( operator ) ) {
else if ( ( rhsTuple = SqlTupleContainer.getSqlTuple( comparisonPredicate.getRightHandExpression() ) ) != null ) {
final Expression lhsExpression = comparisonPredicate.getLeftHandExpression();

if ( lhsExpression instanceof SelectStatement && ( (SelectStatement) lhsExpression ).getQueryPart() instanceof QueryGroup ) {
if ( lhsExpression instanceof SqlTupleContainer
|| lhsExpression instanceof SelectStatement && ( (SelectStatement) lhsExpression ).getQueryPart() instanceof QueryGroup ) {
if ( rhsTuple.getExpressions().size() == 1 ) {
// Special case for tuples with arity 1 as any DBMS supports scalar IN predicates
renderComparison(
Expand Down

0 comments on commit e9946db

Please sign in to comment.