spark-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ravindra Pesala (JIRA)" <>
Subject [jira] [Commented] (SPARK-3298) [SQL] registerAsTable / registerTempTable overwrites old tables
Date Fri, 19 Sep 2014 07:12:34 GMT


Ravindra Pesala commented on SPARK-3298:

I guess, we should add some API like *SqlContext.isTableExists(tableName)* to check whether
the table already exists or not. So by using this API user can check the table existence 
and then register the table.
The current API *SqlContext.table(tableName)*  throws exception if the table is not present,so
we cannot use it for this purpose. Please comment on it.

> [SQL] registerAsTable / registerTempTable overwrites old tables
> ---------------------------------------------------------------
>                 Key: SPARK-3298
>                 URL:
>             Project: Spark
>          Issue Type: Bug
>          Components: SQL
>    Affects Versions: 1.0.2
>            Reporter: Evan Chan
>            Priority: Minor
>              Labels: newbie
> At least in Spark 1.0.2,  calling registerAsTable("a") when "a" had been registered before
does not cause an error.  However, there is no way to access the old table, even though it
may be cached and taking up space.
> How about at least throwing an error?

This message was sent by Atlassian JIRA

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message