-
Notifications
You must be signed in to change notification settings - Fork 122
aws-logging-cloudwatch: Emitted logs not being deleted from local database #2772
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
Comments
Hi @hirengosalia86, thank you for your report. Could you provide full log for this issue? |
Hi @joon-won , there are no log outputs, but as you can see in the bulkDelete function, if there are more than 1 eventIds (1,2,3) there only exists 1 '?' corresponding to this, making it as a string '1,2,3' |
This should fix it. |
Thank you for your reply and suggestion . However will the current code fail when multiple ids are passed? |
Agreed, string representation works fine in sqlite, but above will be arrayOf() on a string. Making it
instead of
|
SQL Lite is untyped so it won't produce an error when trying to compare a column against the wrong datatype, instead what you get is a no-op. In order for this method to work as one would expect the ? in the statement would have to be bound to an array and not a string. Yet the android-database-sqlcipher library that's being used here is not capable of binding the ? to an array, it is only capable in binding single value types (see |
Thank you for providing your example and explanation, I see the point. I will share this with the team, and look into the issue |
…2776) Co-authored-by: JoonWon Choi <[email protected]>
This issue is resolved with Amplify Android |
This issue is now closed. Comments on closed issues are hard for our team to see. |
Before opening, please confirm:
Language and Async Model
Kotlin
Amplify Categories
Not applicable
Gradle script dependencies
Environment information
Please include any relevant guides or documentation you're referencing
No response
Describe the bug
bulkDelete function called in syncLogEventsWithCloudwatch fails on deleteing, when there are more than 1 events. This causes log being duplicated multiple times in cloudwatch
Reproduction steps (if applicable)
No response
Code Snippet
Log output
amplifyconfiguration.json
No response
GraphQL Schema
Additional information and screenshots
No response
The text was updated successfully, but these errors were encountered: