Github user OopsOutOfMemory commented on the pull request:

    https://github.com/apache/spark/pull/2770#issuecomment-61664006
  
    @wangxiaojing @tianyi   @marmbrus 
    Hi, wangxiaojing, I have an issues for this PR.  
    Currently the ```truncate table``` works fine in the situation that current 
table is in the corresponding  database session. But it doesn't work in the 
scenario which the table is not in the corresponding database session. 
    What I mean is :
    Assume we have two database:``` default```, ``` dw```.  A table named 
```test_table``` in database ```dw```
    By default we login as default database session. So I run:
    ```
    use dw;
    truncate table test_table [partions......];  is OK.
    ```
    If I just use the default database ```default``` to run:
    ```
    use default;
    truncate table dw.test_table;
    ```
    It will throw exception 
    ```
    Failed to parse: truncate table dw.test_table.
     line 1:17 missing EOF at '.' near 'dw'
    ```
    It's a bug when parsing the ```truncate table xxx```
    It would be nicer to fix it : )


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