[
https://issues.apache.org/jira/browse/SPARK-3298?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14119407#comment-14119407
]
Michael Armbrust commented on SPARK-3298:
-----------------------------------------
Yeah I guess my thoughts when implementing this were that these temporary
tables are like variables and you don't get an error for reassignment. Since
they don't persist anyway this seems like reasonable semantics to me. (and
really most HiveQL code that is see is always DROP TABLE X IF EXISTS... CREATE
TABLE X ..., which seems unnecessarily verbose to me).
> [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
> 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: [email protected]
For additional commands, e-mail: [email protected]