You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Dongjoon Hyun (JIRA)" <ji...@apache.org> on 2016/07/13 23:44:20 UTC
[jira] [Created] (SPARK-16536) Expose `sql` in PySpark shell
Dongjoon Hyun created SPARK-16536:
-------------------------------------
Summary: Expose `sql` in PySpark shell
Key: SPARK-16536
URL: https://issues.apache.org/jira/browse/SPARK-16536
Project: Spark
Issue Type: Improvement
Components: PySpark
Reporter: Dongjoon Hyun
Priority: Minor
This issue exposes `sql` in PySparkShell like Scala/R shells.
**Background**
{code}
scala> sql("select 1 a")
res0: org.apache.spark.sql.DataFrame = [a: int]
{code}
{code}
> sql("select 1")
SparkDataFrame[1:int]
{code}
**Before**
{code}
>>> sql("select 1 a")
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
NameError: name 'sql' is not defined
{code}
**After**
{code}
>>> sql("select 1 a")
DataFrame[a: int]
{code}
--
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