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

[Instruments] Handle empty bulkLoadInstanceData #8857

Merged
merged 1 commit into from
Aug 10, 2023

Conversation

driusan
Copy link
Collaborator

@driusan driusan commented Aug 8, 2023

The logic of bulkLoadInstanceData constructs an SQL statement with the parameters bound to it by looping over the iterable passed to it. If the iterable is empty, the result will be SQL with the string .. IN () which is not valid SQL. This returns an empty array in that case before attempting to run the generated SQL, since the result of bulk loading nothing should be nothing.

The logic of bulkLoadInstanceData constructs an SQL statement
with the parameters bound to it by looping over the iterable
passed to it. If the iterable is empty, the result will generate
SQL with the string `.. IN ()` which is not valid SQL. This
returns an empty array in that case before attempting to generate
the SQL, since the result of bulk loading nothing should be
nothing.
@driusan driusan added Category: Bug PR or issue that aims to report or fix a bug Blocking PR should be prioritized because it is blocking the progress of another task labels Aug 8, 2023
Copy link
Collaborator

@ridz1208 ridz1208 left a comment

Choose a reason for hiding this comment

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

havent seen my friend $i since Java

@driusan driusan merged commit faa7472 into aces:main Aug 10, 2023
@ridz1208 ridz1208 added this to the 26.0.0 milestone Nov 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Blocking PR should be prioritized because it is blocking the progress of another task Category: Bug PR or issue that aims to report or fix a bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants