Skip to content

Commit

Permalink
Add missing check for predicate in primitive collection simplificatio…
Browse files Browse the repository at this point in the history
…ns (#3196)

Fixes #3195

(cherry picked from commit 3b71c73)
  • Loading branch information
roji committed Jun 8, 2024
1 parent a2ce3ee commit 1292512
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -542,6 +542,7 @@ protected override Expression ApplyInferredTypeMappings(
Source1:
{
Tables: [PgUnnestExpression { Array: var array1 }],
Predicate: null,
GroupBy: [],
Having: null,
IsDistinct: false,
Expand All @@ -551,6 +552,7 @@ protected override Expression ApplyInferredTypeMappings(
Source2:
{
Tables: [PgUnnestExpression { Array: var array2 }],
Predicate: null,
GroupBy: [],
Having: null,
IsDistinct: false,
Expand Down Expand Up @@ -667,6 +669,7 @@ protected override Expression ApplyInferredTypeMappings(
&& source.QueryExpression is SelectExpression
{
Tables: [PgUnnestExpression { Array: var array }],
Predicate: null,
GroupBy: [],
Having: null,
IsDistinct: false,
Expand Down Expand Up @@ -704,6 +707,7 @@ protected override ShapedQueryExpression TranslateConcat(ShapedQueryExpression s
if (source1.QueryExpression is SelectExpression
{
Tables: [PgUnnestExpression { Array: var array1 } unnestExpression1],
Predicate: null,
GroupBy: [],
Having: null,
IsDistinct: false,
Expand All @@ -714,6 +718,7 @@ protected override ShapedQueryExpression TranslateConcat(ShapedQueryExpression s
&& source2.QueryExpression is SelectExpression
{
Tables: [PgUnnestExpression { Array: var array2 }],
Predicate: null,
GroupBy: [],
Having: null,
IsDistinct: false,
Expand Down Expand Up @@ -780,6 +785,7 @@ protected override ShapedQueryExpression TranslateConcat(ShapedQueryExpression s
&& source.QueryExpression is SelectExpression
{
Tables: [PgUnnestExpression { Array: var array }],
Predicate: null,
GroupBy: [],
Having: null,
IsDistinct: false,
Expand Down Expand Up @@ -907,6 +913,7 @@ protected override ShapedQueryExpression TranslateConcat(ShapedQueryExpression s
if (source.QueryExpression is SelectExpression
{
Tables: [PgUnnestExpression { Array: var array } unnestExpression],
Predicate: null,
GroupBy: [],
Having: null,
IsDistinct: false,
Expand Down Expand Up @@ -970,6 +977,7 @@ protected override ShapedQueryExpression TranslateConcat(ShapedQueryExpression s
if (source.QueryExpression is SelectExpression
{
Tables: [PgUnnestExpression { Array: var array } unnestExpression],
Predicate: null,
GroupBy: [],
Having: null,
IsDistinct: false,
Expand Down

0 comments on commit 1292512

Please sign in to comment.