Skip to content

Conversation

@gatorsmile
Copy link
Member

@gatorsmile gatorsmile commented Jun 29, 2016

What changes were proposed in this pull request?

In Python API, we have the same issue. Thanks for identifying this issue, @zsxwing ! Below is an example:

spark.read.format('json').load('python/test_support/sql/people.json')

How was this patch tested?

Existing test cases cover the changes by this PR

@SparkQA
Copy link

SparkQA commented Jun 29, 2016

Test build #61447 has finished for PR 13965 at commit 9cfd673.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

def json(path: String): DataFrame = {
// This method ensures that calls that explicit need single argument works, see SPARK-16009
json(Seq(path): _*)
option("path", path).json(Seq.empty: _*)
Copy link
Member

@zsxwing zsxwing Jun 29, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@gatorsmile setting path or using load(Seq[String]) are both fine for json, parquet, and other file formats. See https://github.com/apache/spark/blob/master/sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/DataSource.scala#L312

You don't need to change this file.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@zsxwing I see your point. The issue is from the others who build the data sources using the data source APIs. See the discussion in #13727 (comment)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nvm. I found the issue. Json, parquet and the other file formats will not affect the data source API developers. : ) Let me revert the changes.

@SparkQA
Copy link

SparkQA commented Jun 29, 2016

Test build #61477 has finished for PR 13965 at commit f5100d6.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@zsxwing
Copy link
Member

zsxwing commented Jun 29, 2016

LGTM. Merging to master and 2.0. Thanks!

asfgit pushed a commit that referenced this pull request Jun 29, 2016
…FrameReader

#### What changes were proposed in this pull request?
In Python API, we have the same issue. Thanks for identifying this issue, zsxwing ! Below is an example:
```Python
spark.read.format('json').load('python/test_support/sql/people.json')
```
#### How was this patch tested?
Existing test cases cover the changes by this PR

Author: gatorsmile <[email protected]>

Closes #13965 from gatorsmile/optionPaths.

(cherry picked from commit 39f2eb1)
Signed-off-by: Shixiong Zhu <[email protected]>
@asfgit asfgit closed this in 39f2eb1 Jun 29, 2016
LuciferYang pushed a commit that referenced this pull request May 28, 2024
### What changes were proposed in this pull request?
The pr aims to upgrade `netty` from `4.1.109.Final` to `4.1.110.Final`.

### Why are the changes needed?
- https://netty.io/news/2024/05/22/4-1-110-Final.html
  This version has brought some bug fixes and improvements, such as:
  Fix Zstd throws Exception on read-only volumes (netty/netty#13982)
  Add unix domain socket transport in netty 4.x via JDK16+ ([#13965](netty/netty#13965))
  Backport #13075: Add the AdaptivePoolingAllocator ([#13976](netty/netty#13976))
  Add no-value key handling only for form body ([#13998](netty/netty#13998))
  Add support for specifying SecureRandom in SSLContext initialization ([#14058](netty/netty#14058))

- https://github.com/netty/netty/issues?q=milestone%3A4.1.110.Final+is%3Aclosed

### Does this PR introduce _any_ user-facing change?
No.

### How was this patch tested?
Pass GA.

### Was this patch authored or co-authored using generative AI tooling?
No.

Closes #46744 from panbingkun/SPARK-48420.

Authored-by: panbingkun <[email protected]>
Signed-off-by: yangjie01 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants