Related record filtering issue in 25.2

Certified Associate Developer

O/P - 1

Output_1

O/P - 2

Output_2

O/P - 3

When I directly query the comments table with a filter to fetch comments where the audit is null, it returns the expected results(O/P - 1). However, when I apply the same filter in a related record query from the main test table, it does not return any comments(O/P - 2). Interestingly, if I remove the audit filter, the related record query returns the correct data(O/P - 3). Any idea what could be causing this issue?

  Discussion posts and replies are publicly visible