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

fix 6892 - avoid adding clause when table not present #6943

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Marco-De-Stefani
Copy link
Contributor

@Marco-De-Stefani Marco-De-Stefani commented Feb 8, 2024

Summary

Fixing #6892
by removing the clause if the table does not exists

Does this close any open issues?

Closes #6892

@d4x1
Copy link
Contributor

d4x1 commented Feb 9, 2024

LGTM.

data.Options.ProjectId, data.Options.ConnectionId,
),
}

if db.HasTable("_raw_gitlab_api_trigger_job") {
clauses = append(clauses, dal.Where("and gp.gitlab_id not in (select json_extract(tj.input, '$.GitlabId') as gitlab_id from _raw_gitlab_api_trigger_job tj)"))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please remove the and at the beginning of the sql

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 this pull request may close these issues.

[Bug][GitLab] raw table is missing when collecting api trigger jobs
3 participants