I created a content view that has a filter group using the AND operator that is ANDed with another filter group using the OR operator (see image below)
However, the query constructed is all AND operators and groups aren't even applied. Here is the WHERE clause of the query:
WHERE
(
(
// Content: Type (= On-demand)
node__field_format.field_format_target_id = '29'
)
)
AND
(
(
(
// Content: Published (= Yes)
"node_field_data"."status" = '1'
)
AND
(
// Content: Content type (in Event, Training)
"node_field_data"."type" IN ('event', 'training_session')
)
)
AND
(
(
// (field_date_and_location: Paragraph) Paragraph: Date Range (>= + 0 minutes)
DATE_FORMAT((paragraphs_item_field_data_node__field_date_and_location__paragraph__field_date_range.field_date_range_value + INTERVAL -21600 SECOND), '%Y-%m-%d\T%H:%i:%s') >= DATE_FORMAT(('2021-10-19T18:53:48' + INTERVAL -21600 SECOND), '%Y-%m-%d\T%H:%i:%s')
)
)
)
This query isn't even remotely close to what I have it configured as... By my configurations, I would expect the WHERE clause to be
WHERE
(
(
// Content: Published (= Yes)
"node_field_data"."status" = '1'
)
AND
(
// Content: Content type (in Event, Training)
"node_field_data"."type" IN ('event', 'training_session')
)
)
AND
(
(
// Content: Type (= On-demand)
node__field_format.field_format_target_id = '29'
)
OR
(
// (field_date_and_location: Paragraph) Paragraph: Date Range (>= + 0 minutes)
DATE_FORMAT((paragraphs_item_field_data_node__field_date_and_location__paragraph__field_date_range.field_date_range_value + INTERVAL -21600 SECOND), '%Y-%m-%d\T%H:%i:%s') >= DATE_FORMAT(('2021-10-19T18:53:48' + INTERVAL -21600 SECOND), '%Y-%m-%d\T%H:%i:%s')
)
)
What's the issue with my configurations? I feel this should be pretty a straightforward implementation but the degree to which the query is incorrect seems off..