Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inner join with audit does not returns expected result... #488

Closed
sybaris opened this issue Jun 18, 2024 · 1 comment · Fixed by #497
Closed

Inner join with audit does not returns expected result... #488

sybaris opened this issue Jun 18, 2024 · 1 comment · Fixed by #497

Comments

@sybaris
Copy link

sybaris commented Jun 18, 2024

Hi

The following query does not returns correct rows :

select count(*)
from systemuser 
inner join Audit on systemuserid = userid
where systemuserid='...'

image

I take the systemuserid of a user.
So I find 1 user in systemuser.
This user have 183 rows in audit table.
So when we are making an inner join between this 2 datasets, I except to have 183 rows.
Instead, we have 1234874 rows.
Note that 1234874 is also the number of rows of Audit table...

Regards
Sybaris

@sybaris sybaris changed the title Inner join does not returns expected result... Inner join with audit does not returns expected result... Jun 18, 2024
@MarkMpn
Copy link
Owner

MarkMpn commented Jun 18, 2024

Thanks for the details. It looks like the server is interpreting the inner joins as outer joins. With some more testing I've found some more attributes that it doesn't seem to support filtering on either, listing them here for my reference to fix shortly:

  • attributemask
  • userid & callinguserid (with eq-userid and ne-userid conditions)
  • objectidname

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants