MaxGekk commented on code in PR #40632:
URL: https://github.com/apache/spark/pull/40632#discussion_r1158296188
##########
sql/catalyst/src/main/scala/org/apache/spark/sql/errors/QueryExecutionErrors.scala:
##########
@@ -1404,8 +1404,8 @@ private[sql] object QueryExecutionErrors extends
QueryErrorsBase {
def cannotParseJsonArraysAsStructsError(): SparkRuntimeException = {
new SparkRuntimeException(
- errorClass = "_LEGACY_ERROR_TEMP_2132",
- messageParameters = Map.empty)
+ errorClass = "CANNOT_PARSE_JSON_ARRAYS_AS_STRUCTS",
Review Comment:
hmm, both error classes are valuable:
```
Caused by: org.apache.spark.SparkException: [MALFORMED_RECORD_IN_PARSING]
Malformed records are detected in record parsing: [null,null].
Caused by: org.apache.spark.SparkRuntimeException:
[CANNOT_PARSE_JSON_ARRAYS_AS_STRUCTS] Parsing JSON arrays as structs is
forbidden.
```
Don't think we should just skip `MALFORMED_RECORD_IN_PARSING`. WDYT
@cloud-fan @HyukjinKwon @srielau ?
--
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]