Skip to content

Commit

Permalink
Skip parsing for the PERMISSIVE mode only
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxGekk committed Aug 17, 2018
1 parent 6b34018 commit 3240405
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,10 @@ class FailureSafeParser[IN](
}

private val skipParsing = {
SQLConf.get.bypassParserForEmptySchema && optimizeEmptySchema && schema.isEmpty
SQLConf.get.bypassParserForEmptySchema && optimizeEmptySchema && mode == PermissiveMode &&
schema.isEmpty
}

def parse(input: IN): Iterator[InternalRow] = {
try {
if (skipParsing) {
Expand Down

0 comments on commit 3240405

Please sign in to comment.