You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please include any relevant guides or documentation you're referencing
No response
Describe the bug
Since amplify-android version 1.34.0, a new change has been introduced to SQLiteModelFieldTypeConverter.java to ensure unified DateTime, and Time string formats to ensure correct sorting when query sorting by these values.
We've identified this new changes breaks query by AWSTime field functionality in amplify-flutter.
Originally amplify-android directly writes amplify-flutter passed Time values in String type into SQLite
Now amplify-android reformats the values in String type as well
The new format of the Time value in amplify-android is different from amplify-flutter
Under this condition, when query data using amplify-flutter, it returns empty result, e.g.
With the new format, 00:00:00 is written in SQLite as 00:00:000000000Z. The format of the value of the query predicate, however, is handled by Temporal.Time#format, which doesn't format value into the format as what in the DB tables. therefore DB query returns empty result.
Summary
The newly add formatting logic is standalone and Temporal.Time#format has a different formatter
amplify-android should probably not reformat amplify-flutter passed string value
Reproduction steps (if applicable)
No response
Code Snippet
// Put your code below this line.
Log output
// Put your logs below this line
amplifyconfiguration.json
No response
GraphQL Schema
// Putyourschema below this line
Additional information and screenshots
No response
The text was updated successfully, but these errors were encountered:
Comments on closed issues are hard for our team to see.
If you need more assistance, please either tag a team member or open a new issue that references this one.
If you wish to keep having a conversation with other community members under this issue feel free to do so.
Before opening, please confirm:
Language and Async Model
Java
Amplify Categories
DataStore
Gradle script dependencies
// Put output below this line
Environment information
Please include any relevant guides or documentation you're referencing
No response
Describe the bug
Since amplify-android version 1.34.0, a new change has been introduced to
SQLiteModelFieldTypeConverter.java
to ensure unified DateTime, and Time string formats to ensure correct sorting when query sorting by these values.We've identified this new changes breaks query by AWSTime field functionality in amplify-flutter.
String
type into SQLiteString
type as wellUnder this condition, when query data using amplify-flutter, it returns empty result, e.g.
Query model with
awsTimeField
values as00:00:00
With the new format,
00:00:00
is written in SQLite as00:00:000000000Z
. The format of the value of the query predicate, however, is handled byTemporal.Time#format
, which doesn't format value into the format as what in the DB tables. therefore DB query returns empty result.Summary
Temporal.Time#format
has a different formatterReproduction steps (if applicable)
No response
Code Snippet
// Put your code below this line.
Log output
amplifyconfiguration.json
No response
GraphQL Schema
Additional information and screenshots
No response
The text was updated successfully, but these errors were encountered: