Github user zasdfgbnm commented on a diff in the pull request:

    https://github.com/apache/spark/pull/18444#discussion_r126806942
  
    --- Diff: core/src/main/scala/org/apache/spark/api/python/SerDeUtil.scala 
---
    @@ -72,7 +72,11 @@ private[spark] object SerDeUtil extends Logging {
             val typecode = args(0).asInstanceOf[String].charAt(0)
             // This must be ISO 8859-1 / Latin 1, not UTF-8, to interoperate 
correctly
             val data = 
args(1).asInstanceOf[String].getBytes(StandardCharsets.ISO_8859_1)
    -        construct(typecode, machineCodes(typecode), data)
    +        val machine_code = machineCodes(typecode)
    +        // fix data alignment
    +        val unit_length = if (machine_code==18 || machine_code==19) 2 else 
4
    +        val aligned_data = data ++ Array.fill[Byte](unit_length - 
data.length % unit_length)(0)
    --- End diff --
    
    Not done yet. I think this will only works on little endian


---
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 [email protected] or file a JIRA ticket
with INFRA.
---

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

Reply via email to