-
Notifications
You must be signed in to change notification settings - Fork 27
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
doc: pyspark write example #55
Conversation
Codecov Report
@@ Coverage Diff @@
## master #55 +/- ##
=========================================
Coverage 74.09% 74.09%
Complexity 153 153
=========================================
Files 24 24
Lines 1594 1594
Branches 256 256
=========================================
Hits 1181 1181
Misses 266 266
Partials 147 147 Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
"graphAddress", "graphd1:9669").option( | ||
"passwd", "nebula").option( | ||
"writeMode", "delete").option( | ||
"user", "root").save() |
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.
well done! great example!
val RANK_AS_PROP: String = "rankAsProp" | ||
val WRITE_MODE: String = "writeMode" | ||
val DELETE_EDGE: String = "deleteEdge" | ||
``` |
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.
should we post the option's datatype here?
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.
Do you mean we should add things like bool for deleteEdge
or? Should we expose those options here or not?
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.
We could add comment inline on supported value/type like(assuming # is a valid comment string for scala)?
val RANK_AS_PROP: String = "rankAsProp" # bool, i.e. true
val WRITE_MODE: String = "writeMode" # string, i.e. 'update', 'insert', 'delete'
val DELETE_EDGE: String = "deleteEdge" # bool, i.e. true
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.
We could add comment inline on supported value/type like(assuming # is a valid comment string for scala)?
val RANK_AS_PROP: String = "rankAsProp" # bool, i.e. true val WRITE_MODE: String = "writeMode" # string, i.e. 'update', 'insert', 'delete' val DELETE_EDGE: String = "deleteEdge" # bool, i.e. true
Yeah, great way. The information for options is enough now.
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
* pyspark example added (#51) * pyspark example added * Update README_CN.md * support delete related edges when delete vertex (#53) * support delete related edges when delete vertex * add test * add example for delete vertex with edge (#54) * doc: pyspark write example (#55) * doc: pyspark write example * Added pyshell calling lines and python file header discussed in #50 Thanks to @Reid00 * Update README.md wording * Update README_CN.md * Update README.md * Update README_CN.md * Update README.md * Update README_CN.md * spark2.2 reader initial commit * spark2.2 reader initial commit * extract common config for multi spark version * delete common config files * extract common config and utils * remove common test * spark connector reader for spark 2.2 * spark connector writer for spark 2.2 * revert example * refactor spark version & close metaProvider after finish writing * refactor common package name * fix scan part * refactor spark version for spark2.2 * connector writer for spark2.2 Co-authored-by: Wey Gu <[email protected]>
as titled