spark-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Apache Spark (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (SPARK-19120) Returned an Empty Result after Loading a Hive Table
Date Sun, 08 Jan 2017 00:34:58 GMT

    [ https://issues.apache.org/jira/browse/SPARK-19120?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15808406#comment-15808406
] 

Apache Spark commented on SPARK-19120:
--------------------------------------

User 'gatorsmile' has created a pull request for this issue:
https://github.com/apache/spark/pull/16500

> Returned an Empty Result after Loading a Hive Table
> ---------------------------------------------------
>
>                 Key: SPARK-19120
>                 URL: https://issues.apache.org/jira/browse/SPARK-19120
>             Project: Spark
>          Issue Type: Bug
>          Components: SQL
>    Affects Versions: 2.1.0
>            Reporter: Xiao Li
>            Assignee: Xiao Li
>            Priority: Critical
>              Labels: correctness
>
> {noformat}
>         sql(
>           """
>             |CREATE TABLE test (a STRING)
>             |STORED AS PARQUET
>           """.stripMargin)
>        spark.table("test").show()
>         sql(
>           s"""
>              |LOAD DATA LOCAL INPATH '$newPartitionDir' OVERWRITE
>              |INTO TABLE test
>            """.stripMargin)
>         spark.table("test").show()
> {noformat}
> The returned result is empty after table loading. We should refresh the metadata cache
after loading the data to the table. 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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


Mime
View raw message