You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@iotdb.apache.org by "jt2594838 (via GitHub)" <gi...@apache.org> on 2024/08/30 11:57:22 UTC
[PR] Fix WAL Exception catch & support new DataTypes in QueryDataSetUtils [iotdb]
jt2594838 opened a new pull request, #13359:
URL: https://github.com/apache/iotdb/pull/13359
(no comment)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: reviews-unsubscribe@iotdb.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Fix WAL Exception catch & support new DataTypes in QueryDataSetUtils [iotdb]
Posted by "sonarcloud[bot] (via GitHub)" <gi...@apache.org>.
sonarcloud[bot] commented on PR #13359:
URL: https://github.com/apache/iotdb/pull/13359#issuecomment-2323727908
## [](https://sonarcloud.io/dashboard?id=apache_iotdb&pullRequest=13359) **Quality Gate passed**
Issues
 [10 New issues](https://sonarcloud.io/project/issues?id=apache_iotdb&pullRequest=13359&issueStatuses=OPEN,CONFIRMED&sinceLeakPeriod=true)
 [0 Accepted issues](https://sonarcloud.io/project/issues?id=apache_iotdb&pullRequest=13359&issueStatuses=ACCEPTED)
Measures
 [0 Security Hotspots](https://sonarcloud.io/project/security_hotspots?id=apache_iotdb&pullRequest=13359&issueStatuses=OPEN,CONFIRMED&sinceLeakPeriod=true)
 [0.0% Coverage on New Code](https://sonarcloud.io/component_measures?id=apache_iotdb&pullRequest=13359&metric=new_coverage&view=list)
 [0.7% Duplication on New Code](https://sonarcloud.io/component_measures?id=apache_iotdb&pullRequest=13359&metric=new_duplicated_lines_density&view=list)
[See analysis details on SonarCloud](https://sonarcloud.io/dashboard?id=apache_iotdb&pullRequest=13359)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: reviews-unsubscribe@iotdb.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Fix WAL Exception catch & support new DataTypes in QueryDataSetUtils [iotdb]
Posted by "jt2594838 (via GitHub)" <gi...@apache.org>.
jt2594838 commented on code in PR #13359:
URL: https://github.com/apache/iotdb/pull/13359#discussion_r1740277662
##########
integration-test/src/main/java/org/apache/iotdb/db/query/udf/example/UDAFSum.java:
##########
@@ -101,6 +101,8 @@ public void addInput(State state, Column[] columns, BitMap bitMap) {
addDoubleInput(sumState, columns, bitMap);
return;
case TEXT:
+ case STRING:
+ case BLOB:
Review Comment:
Added.
##########
iotdb-core/node-commons/src/main/java/org/apache/iotdb/commons/udf/builtin/UDTFAbs.java:
##########
@@ -89,6 +97,14 @@ public Object transform(Row row) throws IOException {
return Math.abs(row.getFloat(0));
case DOUBLE:
return Math.abs(row.getDouble(0));
+ case VECTOR:
+ case UNKNOWN:
Review Comment:
Removed.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: reviews-unsubscribe@iotdb.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Fix WAL Exception catch & support new DataTypes in QueryDataSetUtils [iotdb]
Posted by "jt2594838 (via GitHub)" <gi...@apache.org>.
jt2594838 commented on code in PR #13359:
URL: https://github.com/apache/iotdb/pull/13359#discussion_r1740277728
##########
iotdb-core/node-commons/src/assembly/resources/conf/iotdb-system.properties:
##########
@@ -27,21 +27,21 @@ cluster_name=defaultCluster
### Seed ConfigNode
####################
-cn_seed_config_node=127.0.0.1:10710
+cn_seed_config_node=nel-22:10710
Review Comment:
Reverted.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: reviews-unsubscribe@iotdb.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Fix WAL Exception catch & support new DataTypes in QueryDataSetUtils [iotdb]
Posted by "sonarcloud[bot] (via GitHub)" <gi...@apache.org>.
sonarcloud[bot] commented on PR #13359:
URL: https://github.com/apache/iotdb/pull/13359#issuecomment-2323764927
## [](https://sonarcloud.io/dashboard?id=apache_iotdb&pullRequest=13359) **Quality Gate passed**
Issues
 [10 New issues](https://sonarcloud.io/project/issues?id=apache_iotdb&pullRequest=13359&issueStatuses=OPEN,CONFIRMED&sinceLeakPeriod=true)
 [0 Accepted issues](https://sonarcloud.io/project/issues?id=apache_iotdb&pullRequest=13359&issueStatuses=ACCEPTED)
Measures
 [0 Security Hotspots](https://sonarcloud.io/project/security_hotspots?id=apache_iotdb&pullRequest=13359&issueStatuses=OPEN,CONFIRMED&sinceLeakPeriod=true)
 [0.0% Coverage on New Code](https://sonarcloud.io/component_measures?id=apache_iotdb&pullRequest=13359&metric=new_coverage&view=list)
 [0.7% Duplication on New Code](https://sonarcloud.io/component_measures?id=apache_iotdb&pullRequest=13359&metric=new_duplicated_lines_density&view=list)
[See analysis details on SonarCloud](https://sonarcloud.io/dashboard?id=apache_iotdb&pullRequest=13359)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: reviews-unsubscribe@iotdb.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Fix WAL Exception catch & support new DataTypes in QueryDataSetUtils [iotdb]
Posted by "sonarcloud[bot] (via GitHub)" <gi...@apache.org>.
sonarcloud[bot] commented on PR #13359:
URL: https://github.com/apache/iotdb/pull/13359#issuecomment-2321014721
## [](https://sonarcloud.io/dashboard?id=apache_iotdb&pullRequest=13359) **Quality Gate passed**
Issues
 [10 New issues](https://sonarcloud.io/project/issues?id=apache_iotdb&pullRequest=13359&issueStatuses=OPEN,CONFIRMED&sinceLeakPeriod=true)
 [0 Accepted issues](https://sonarcloud.io/project/issues?id=apache_iotdb&pullRequest=13359&issueStatuses=ACCEPTED)
Measures
 [0 Security Hotspots](https://sonarcloud.io/project/security_hotspots?id=apache_iotdb&pullRequest=13359&issueStatuses=OPEN,CONFIRMED&sinceLeakPeriod=true)
 [0.0% Coverage on New Code](https://sonarcloud.io/component_measures?id=apache_iotdb&pullRequest=13359&metric=new_coverage&view=list)
 [0.7% Duplication on New Code](https://sonarcloud.io/component_measures?id=apache_iotdb&pullRequest=13359&metric=new_duplicated_lines_density&view=list)
[See analysis details on SonarCloud](https://sonarcloud.io/dashboard?id=apache_iotdb&pullRequest=13359)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: reviews-unsubscribe@iotdb.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Fix WAL Exception catch & support new DataTypes in QueryDataSetUtils [iotdb]
Posted by "codecov[bot] (via GitHub)" <gi...@apache.org>.
codecov[bot] commented on PR #13359:
URL: https://github.com/apache/iotdb/pull/13359#issuecomment-2321147478
## [Codecov](https://app.codecov.io/gh/apache/iotdb/pull/13359?dropdown=coverage&src=pr&el=h1&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) Report
Attention: Patch coverage is `28.57143%` with `5 lines` in your changes missing coverage. Please review.
> Project coverage is 41.01%. Comparing base [(`c547916`)](https://app.codecov.io/gh/apache/iotdb/commit/c5479169f59c2e37cb02456e55d2968b7b0ac882?dropdown=coverage&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) to head [(`5b1892d`)](https://app.codecov.io/gh/apache/iotdb/commit/5b1892d09683c1cafc1292b52e5593388a9d27b0?dropdown=coverage&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache).
> Report is 2 commits behind head on master.
| [Files with missing lines](https://app.codecov.io/gh/apache/iotdb/pull/13359?dropdown=coverage&src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | Patch % | Lines |
|---|---|---|
| [.../db/storageengine/dataregion/wal/io/WALReader.java](https://app.codecov.io/gh/apache/iotdb/pull/13359?src=pr&el=tree&filepath=iotdb-core%2Fdatanode%2Fsrc%2Fmain%2Fjava%2Forg%2Fapache%2Fiotdb%2Fdb%2Fstorageengine%2Fdataregion%2Fwal%2Fio%2FWALReader.java&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache#diff-aW90ZGItY29yZS9kYXRhbm9kZS9zcmMvbWFpbi9qYXZhL29yZy9hcGFjaGUvaW90ZGIvZGIvc3RvcmFnZWVuZ2luZS9kYXRhcmVnaW9uL3dhbC9pby9XQUxSZWFkZXIuamF2YQ==) | 28.57% | [5 Missing :warning: ](https://app.codecov.io/gh/apache/iotdb/pull/13359?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) |
<details><summary>Additional details and impacted files</summary>
```diff
@@ Coverage Diff @@
## master #13359 +/- ##
============================================
+ Coverage 40.97% 41.01% +0.03%
Complexity 71 71
============================================
Files 3929 3945 +16
Lines 242315 243334 +1019
Branches 29251 29434 +183
============================================
+ Hits 99296 99807 +511
- Misses 143019 143527 +508
```
</details>
[:umbrella: View full report in Codecov by Sentry](https://app.codecov.io/gh/apache/iotdb/pull/13359?dropdown=coverage&src=pr&el=continue&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache).
:loudspeaker: Have feedback on the report? [Share it here](https://about.codecov.io/codecov-pr-comment-feedback/?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache).
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: reviews-unsubscribe@iotdb.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Fix WAL Exception catch & support new DataTypes in QueryDataSetUtils [iotdb]
Posted by "jt2594838 (via GitHub)" <gi...@apache.org>.
jt2594838 merged PR #13359:
URL: https://github.com/apache/iotdb/pull/13359
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: reviews-unsubscribe@iotdb.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Fix WAL Exception catch & support new DataTypes in QueryDataSetUtils [iotdb]
Posted by "shuwenwei (via GitHub)" <gi...@apache.org>.
shuwenwei commented on code in PR #13359:
URL: https://github.com/apache/iotdb/pull/13359#discussion_r1740266558
##########
integration-test/src/main/java/org/apache/iotdb/db/query/udf/example/UDAFSum.java:
##########
@@ -101,6 +101,8 @@ public void addInput(State state, Column[] columns, BitMap bitMap) {
addDoubleInput(sumState, columns, bitMap);
return;
case TEXT:
+ case STRING:
+ case BLOB:
Review Comment:
Missing data type TIMESTAMP and DATE
##########
integration-test/src/main/java/org/apache/iotdb/db/query/udf/example/UDAFAvg.java:
##########
@@ -101,6 +101,8 @@ public void addInput(State state, Column[] columns, BitMap bitMap) {
addDoubleInput(avgState, columns, bitMap);
return;
case TEXT:
+ case STRING:
+ case BLOB:
Review Comment:
Missing data type TIMESTAMP and DATE
##########
iotdb-core/node-commons/src/assembly/resources/conf/iotdb-system.properties:
##########
@@ -27,21 +27,21 @@ cluster_name=defaultCluster
### Seed ConfigNode
####################
-cn_seed_config_node=127.0.0.1:10710
+cn_seed_config_node=nel-22:10710
Review Comment:
It also needs to be modified in iotdb-system.properties.template
##########
iotdb-core/node-commons/src/main/java/org/apache/iotdb/commons/udf/builtin/UDTFAbs.java:
##########
@@ -89,6 +97,14 @@ public Object transform(Row row) throws IOException {
return Math.abs(row.getFloat(0));
case DOUBLE:
return Math.abs(row.getDouble(0));
+ case VECTOR:
+ case UNKNOWN:
Review Comment:
Should we add VECTOR and UNKNOWN types to other switch case statements?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: reviews-unsubscribe@iotdb.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org