spark-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael Armbrust (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (SPARK-3298) [SQL] registerAsTable / registerTempTable overwrites old tables
Date Mon, 22 Sep 2014 19:01:34 GMT

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

Michael Armbrust commented on SPARK-3298:
-----------------------------------------

I think the plan here is to add an allowExisting flag to registerTempTable that checks to
see if the table exists and throws an exception.  This flag will default to false.  I'll add
this as part of the work I'm going to fix our caching behavior.

> [SQL] registerAsTable / registerTempTable overwrites old tables
> ---------------------------------------------------------------
>
>                 Key: SPARK-3298
>                 URL: https://issues.apache.org/jira/browse/SPARK-3298
>             Project: Spark
>          Issue Type: Bug
>          Components: SQL
>    Affects Versions: 1.0.2
>            Reporter: Evan Chan
>            Assignee: Michael Armbrust
>            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
(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