-
Notifications
You must be signed in to change notification settings - Fork 28.7k
[SPARK-7738] [SQL] [PySpark] add reader and writer API in Python #6238
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
Conversation
Merged build triggered. |
Merged build started. |
Test build #33011 has started for PR 6238 at commit |
Test build #33011 has finished for PR 6238 at commit
|
Merged build finished. Test FAILed. |
Test FAILed. |
retest this please |
Merged build triggered. |
Merged build started. |
Test build #33035 has started for PR 6238 at commit |
@@ -50,8 +50,15 @@ private[spark] object PythonUtils { | |||
/** | |||
* Convert list of T into seq of T (for calling API with varargs) | |||
*/ | |||
def toSeq[T](cols: JList[T]): Seq[T] = { | |||
cols.toList.toSeq | |||
def toSeq[T](vs: JList[T]): Seq[T] = { |
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.
what does vs mean?
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.
value -> v, values => vs :)
Test build #33035 has finished for PR 6238 at commit
|
Merged build finished. Test FAILed. |
Test FAILed. |
Merged build triggered. |
Merged build started. |
Test build #33054 has started for PR 6238 at commit |
Merged build triggered. |
Merged build started. |
Test build #33055 has started for PR 6238 at commit |
Test build #33054 has finished for PR 6238 at commit
|
Merged build finished. Test PASSed. |
Test PASSed. |
Test build #33055 has finished for PR 6238 at commit
|
Merged build finished. Test PASSed. |
Test PASSed. |
else: | ||
jwrite.save(path) | ||
|
||
def saveAsTable(self, name, format=None, mode="error", **options): |
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.
are there any test cases covering this?
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 covered by df.saveAsTable(), had updated the tests to use new API.
@davies I think this has the wrong JIRA number in the title. |
@jkbradley, thanks, corrected. |
Merged build triggered. |
Merged build started. |
Test build #33091 has started for PR 6238 at commit |
Test build #33091 has finished for PR 6238 at commit
|
Merged build finished. Test PASSed. |
Test PASSed. |
cc rxin, please take a quick look, I'm working on tests. Author: Davies Liu <[email protected]> Closes #6238 from davies/readwrite and squashes the following commits: c7200eb [Davies Liu] update tests 9cbf01b [Davies Liu] Merge branch 'master' of github.com:apache/spark into readwrite f0c5a04 [Davies Liu] use sqlContext.read.load 5f68bc8 [Davies Liu] update tests 6437e9a [Davies Liu] Merge branch 'master' of github.com:apache/spark into readwrite bcc6668 [Davies Liu] add reader amd writer API in Python (cherry picked from commit 4de74d2) Signed-off-by: Reynold Xin <[email protected]>
cc rxin, please take a quick look, I'm working on tests. Author: Davies Liu <[email protected]> Closes apache#6238 from davies/readwrite and squashes the following commits: c7200eb [Davies Liu] update tests 9cbf01b [Davies Liu] Merge branch 'master' of github.com:apache/spark into readwrite f0c5a04 [Davies Liu] use sqlContext.read.load 5f68bc8 [Davies Liu] update tests 6437e9a [Davies Liu] Merge branch 'master' of github.com:apache/spark into readwrite bcc6668 [Davies Liu] add reader amd writer API in Python
cc rxin, please take a quick look, I'm working on tests. Author: Davies Liu <[email protected]> Closes apache#6238 from davies/readwrite and squashes the following commits: c7200eb [Davies Liu] update tests 9cbf01b [Davies Liu] Merge branch 'master' of github.com:apache/spark into readwrite f0c5a04 [Davies Liu] use sqlContext.read.load 5f68bc8 [Davies Liu] update tests 6437e9a [Davies Liu] Merge branch 'master' of github.com:apache/spark into readwrite bcc6668 [Davies Liu] add reader amd writer API in Python
cc rxin, please take a quick look, I'm working on tests. Author: Davies Liu <[email protected]> Closes apache#6238 from davies/readwrite and squashes the following commits: c7200eb [Davies Liu] update tests 9cbf01b [Davies Liu] Merge branch 'master' of github.com:apache/spark into readwrite f0c5a04 [Davies Liu] use sqlContext.read.load 5f68bc8 [Davies Liu] update tests 6437e9a [Davies Liu] Merge branch 'master' of github.com:apache/spark into readwrite bcc6668 [Davies Liu] add reader amd writer API in Python
cc @rxin, please take a quick look, I'm working on tests.