HyukjinKwon commented on PR #47744:
URL: https://github.com/apache/spark/pull/47744#issuecomment-2290116488

   > @HyukjinKwon Just added to the doc. We don't need to especially expose it. 
.option("useUnsafeRow", "true") will just work. This is also how other options 
are used.
   
   
   Should probably expose it here? All options are there in Python
   
   ```python
       def json(
           self,
           path: Union[str, List[str], "RDD[str]"],
           schema: Optional[Union[StructType, str]] = None,
           primitivesAsString: Optional[Union[bool, str]] = None,
           prefersDecimal: Optional[Union[bool, str]] = None,
           allowComments: Optional[Union[bool, str]] = None,
           allowUnquotedFieldNames: Optional[Union[bool, str]] = None,
           allowSingleQuotes: Optional[Union[bool, str]] = None,
           allowNumericLeadingZero: Optional[Union[bool, str]] = None,
           allowBackslashEscapingAnyCharacter: Optional[Union[bool, str]] = 
None,
           mode: Optional[str] = None,
           columnNameOfCorruptRecord: Optional[str] = None,
           dateFormat: Optional[str] = None,
           timestampFormat: Optional[str] = None,
           multiLine: Optional[Union[bool, str]] = None,
           allowUnquotedControlChars: Optional[Union[bool, str]] = None,
           lineSep: Optional[str] = None,
           samplingRatio: Optional[Union[float, str]] = None,
           dropFieldIfAllNull: Optional[Union[bool, str]] = None,
           encoding: Optional[str] = None,
           locale: Optional[str] = None,
           pathGlobFilter: Optional[Union[bool, str]] = None,
           recursiveFileLookup: Optional[Union[bool, str]] = None,
           modifiedBefore: Optional[Union[bool, str]] = None,
           modifiedAfter: Optional[Union[bool, str]] = None,
           allowNonNumericNumbers: Optional[Union[bool, str]] = None,
       ) -> "DataFrame":
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to