You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Dongjoon Hyun (Jira)" <ji...@apache.org> on 2020/12/18 08:04:00 UTC

[jira] [Assigned] (SPARK-33593) Vector reader got incorrect data with binary partition value

     [ https://issues.apache.org/jira/browse/SPARK-33593?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Dongjoon Hyun reassigned SPARK-33593:
-------------------------------------

    Assignee: angerszhu

> Vector reader got incorrect data with binary partition value
> ------------------------------------------------------------
>
>                 Key: SPARK-33593
>                 URL: https://issues.apache.org/jira/browse/SPARK-33593
>             Project: Spark
>          Issue Type: Bug
>          Components: SQL
>    Affects Versions: 2.0.2, 2.1.3, 2.2.3, 2.3.4, 2.4.7, 3.0.1, 3.1.0, 3.2.0
>            Reporter: angerszhu
>            Assignee: angerszhu
>            Priority: Blocker
>              Labels: correctness
>
> {code:java}
> test("Parquet vector reader incorrect with binary partition value") {
>   Seq(false, true).foreach(tag => {
>     withSQLConf("spark.sql.parquet.enableVectorizedReader" -> tag.toString) {
>       withTable("t1") {
>         sql(
>           """CREATE TABLE t1(name STRING, id BINARY, part BINARY)
>             | USING PARQUET PARTITIONED BY (part)""".stripMargin)
>         sql(s"INSERT INTO t1 PARTITION(part = 'Spark SQL') VALUES('a', X'537061726B2053514C')")
>         if (tag) {
>           checkAnswer(sql("SELECT name, cast(id as string), cast(part as string) FROM t1"),
>             Row("a", "Spark SQL", ""))
>         } else {
>           checkAnswer(sql("SELECT name, cast(id as string), cast(part as string) FROM t1"),
>             Row("a", "Spark SQL", "Spark SQL"))
>         }
>       }
>     }
>   })
> }
> {code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org