Spark SQL temp table names format restrictions?
<p>Is there a restriction on the format of temp table names allowed in Spark SQL ? I ask this because when I use:</p>

<pre><code>json_RDD.registerTempTable("tweet_data")
trends_data=hiveCtx.sql("SELECT * FROM tweet_data")
</code></pre>

<p>I obtained the following exception:</p>

<pre><code>/opt/spark-1.4.1/python/lib/py4j-0.8.2.1-src.zip/py4j/protocol.py in get_return_value(answer, gateway_client, target_id, name)
298                 raise Py4JJavaError(
299                     'An error occurred while calling {0}{1}{2}.\n'.
</code></pre>

<p>but when I used </p>

<pre><code>json_RDD.registerTempTable("tweets")
trends_data=hiveCtx.sql("SELECT * FROM tweets")
</code></pre>

<p>it worked fine. I am using PySpark and the version of Spark is 1.4.1</p>