-
Notifications
You must be signed in to change notification settings - Fork 322
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
feat: support custom order in insert stmt #2075
feat: support custom order in insert stmt #2075
Conversation
Codecov Report
@@ Coverage Diff @@
## main #2075 +/- ##
============================================
+ Coverage 75.69% 75.80% +0.11%
- Complexity 347 354 +7
============================================
Files 615 616 +1
Lines 116901 117102 +201
Branches 1015 1029 +14
============================================
+ Hits 88484 88766 +282
+ Misses 28208 28125 -83
- Partials 209 211 +2
Continue to review full report at Codecov.
|
java/openmldb-jdbc/src/main/java/com/_4paradigm/openmldb/common/Pair.java
Show resolved
Hide resolved
@@ -48,7 +50,8 @@ public class InsertPreparedStatementImpl implements PreparedStatement { | |||
private final List<Object> currentDatas; | |||
private final List<DataType> currentDatasType; | |||
private final List<Boolean> hasSet; | |||
private final List<Integer> scehmaIdxs; | |||
// stmt insert idx -> real table schema idx | |||
private final List<Pair<Long, Integer>> schemaIdxes; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the first type of pair is the same as second. set as Integer
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
uint32 is long, and idx type of list is int, no the same.
...penmldb-jdbc/src/main/java/com/_4paradigm/openmldb/sdk/impl/InsertPreparedStatementImpl.java
Outdated
Show resolved
Hide resolved
...penmldb-jdbc/src/main/java/com/_4paradigm/openmldb/sdk/impl/InsertPreparedStatementImpl.java
Outdated
Show resolved
Hide resolved
…db into sql-insert-row-order
Closes #2059