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
Interestingly enough, running readSqlTable(connection, "table") with limit multiple times results in a different subset of the database. (if my first call had a limit of 100, the next time I call it it results in [100..200], then [200..300] and so on. This is again unexpected. This does not happen when running it from the console.
My comment: cursor issues
Important to add tests for repeated calls
The text was updated successfully, but these errors were encountered:
Tests were added to the h2Test to cover cases reported in issues Kotlin#494 and Kotlin#498 in the DataFrame. Furthermore, SQL query validation in DataFrame.readSqlQuery was softened to accept SELECT statements only, removing other restrictions that checked against DDL or DML or DCL operators. New test cases were introduced to ensure that unexpected SQL statements result in thrown IllegalArgumentExceptions, improving overall robustness.
* Add validation for SQL queries in DataFrame.readSqlQuery
A validation function has been added to DataFrame.readSqlQuery to handle cases where an inappropriate SQL query is passed. The function verifies that the SQL query starts with "SELECT" and doesn't contain any other DDL, DML, or DCL operators to prevent data manipulation. Corresponding test cases were also added in h2Test to ensure that an IllegalArgumentException is thrown when the SQL query is incorrect.
* Add tests for SQL commit and refine validation
Tests were added to the h2Test to cover cases reported in issues #494 and #498 in the DataFrame. Furthermore, SQL query validation in DataFrame.readSqlQuery was softened to accept SELECT statements only, removing other restrictions that checked against DDL or DML or DCL operators. New test cases were introduced to ensure that unexpected SQL statements result in thrown IllegalArgumentExceptions, improving overall robustness.
* Add constants for SQL read query start and separator
From @Jolanrensen
My comment: cursor issues
Important to add tests for repeated calls
The text was updated successfully, but these errors were encountered: