[ https://issues.apache.org/jira/browse/SPARK-27398?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Sean Owen resolved SPARK-27398. ------------------------------- Resolution: Not A Problem > Get rid of sun.nio.cs.StreamDecoder in CreateJacksonParser > ---------------------------------------------------------- > > Key: SPARK-27398 > URL: https://issues.apache.org/jira/browse/SPARK-27398 > Project: Spark > Issue Type: Improvement > Components: SQL > Affects Versions: 2.4.0 > Reporter: Maxim Gekk > Priority: Trivial > > The CreateJacksonParser.getStreamDecoder method creates an instance of > ReadableByteChannel and returns the result as of sun.nio.cs.StreamDecoder. > This is unnecessary and overcomplicates the method. This code can be replaced > by: > {code:scala} > val bais = new ByteArrayInputStream(in, 0, length) > new InputStreamReader(bais, enc) > {code} -- This message was sent by Atlassian JIRA (v7.6.3#76005) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org For additional commands, e-mail: issues-h...@spark.apache.org