Github user chenghao-intel commented on a diff in the pull request:
https://github.com/apache/spark/pull/7444#discussion_r34796606
--- Diff: python/pyspark/sql/readwriter.py ---
@@ -146,14 +146,24 @@ def table(self, tableName):
return self._df(self._jreader.table(tableName))
@since(1.4)
- def parquet(self, *path):
+ def parquet(self, *paths):
"""Loads a Parquet file, returning the result as a
:class:`DataFrame`.
>>> df =
sqlContext.read.parquet('python/test_support/sql/parquet_partitioned')
>>> df.dtypes
[('name', 'string'), ('year', 'int'), ('month', 'int'), ('day',
'int')]
"""
- return
self._df(self._jreader.parquet(_to_seq(self._sqlContext._sc, path)))
+ return
self._df(self._jreader.parquet(_to_seq(self._sqlContext._sc, paths)))
+
+ @since(1.5)
+ def orc(self, path):
--- End diff --
As the function `parquet` support multiple path in loading, should the api
`orc` support that also?
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]