Github user yhuai commented on the pull request: https://github.com/apache/spark/pull/999#issuecomment-45640690 My thought on `SchemaResolutionMode` is that we may be able to hide implementation details on how we infer the schema by using `SchemaResolutionMode` in `jsonFile` and `jsonRDD`. If we expose `samplingRatio` in `jsonFile` and `jsonRDD`, when we have other methods to infer the schema (lazy resolution), we need to change existing interfaces or add new interfaces.
--- 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 infrastruct...@apache.org or file a JIRA ticket with INFRA. ---