-
Notifications
You must be signed in to change notification settings - Fork 123
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
support geo encoder #380
support geo encoder #380
Conversation
047f35c
to
e12c08a
Compare
Codecov Report
@@ Coverage Diff @@
## master #380 +/- ##
============================================
+ Coverage 63.43% 63.73% +0.30%
- Complexity 692 705 +13
============================================
Files 65 65
Lines 3274 3337 +63
Branches 459 471 +12
============================================
+ Hits 2077 2127 +50
- Misses 883 888 +5
- Partials 314 322 +8
Continue to review full report at Codecov.
|
client/src/main/java/com/vesoft/nebula/encoder/RowWriterImpl.java
Outdated
Show resolved
Hide resolved
List<List<Coordinate>> rings = new ArrayList<List<Coordinate>>(); | ||
rings.add(shell); | ||
rings.add(hole); | ||
geogPolygonVal.setGgVal(Geography.pgVal(new Polygon(rings))); |
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.
please add test for null geograph value.
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.
It's not a need, because null geo value is no different from other types. And TestEncoder.java also just test null value of int64
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.
It's necessary, it happens out of bound error
before for null string value int the properties. So you should add test like there are three geography properties but one is null
to avoid that problem.
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.
OK
6daaf9d
to
61a114a
Compare
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.
LGTM
* support geo encoder * debug * remove debug log * let WKBWriter use machine byte order * add null test for geo * debug * format code
No description provided.