You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Herman van Hovell (JIRA)" <ji...@apache.org> on 2016/06/15 22:39:09 UTC

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

Herman van Hovell created SPARK-15977:
-----------------------------------------

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