You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Apache Spark (JIRA)" <ji...@apache.org> on 2016/06/16 03:57:05 UTC

[jira] [Commented] (SPARK-15977) TRUNCATE TABLE does not work with Datasource tables outside of Hive

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

Apache Spark commented on SPARK-15977:
--------------------------------------

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

> TRUNCATE TABLE does not work with Datasource tables outside of Hive
> -------------------------------------------------------------------
>
>                 Key: SPARK-15977
>                 URL: https://issues.apache.org/jira/browse/SPARK-15977
>             Project: Spark
>          Issue Type: Bug
>            Reporter: Herman van Hovell
>            Assignee: Herman van Hovell
>
> The {{TRUNCATE TABLE}} command does not work with datasource tables without Hive support. For example the following doesn't work:
> {noformat}
> DROP TABLE IF EXISTS test
> CREATE TABLE test(a INT, b STRING) USING JSON
> INSERT INTO test VALUES (1, 'a'), (2, 'b'), (3, 'c')
> SELECT * FROM test
> TRUNCATE TABLE test
> SELECT * FROM test
> {noformat}



--
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