Skip to content

Commit 887e1b7

Browse files
Davies Liumarmbrus
authored andcommitted
[SPARK-6574] [PySpark] fix sql example
Fix the import in sql example. Author: Davies Liu <davies@databricks.com> Closes #5230 from davies/fix_sql_example and squashes the following commits: 7ecc5f4 [Davies Liu] fix sql example
1 parent 5d9c37c commit 887e1b7

File tree

1 file changed

+1
-1
lines changed
  • examples/src/main/python

1 file changed

+1
-1
lines changed

examples/src/main/python/sql.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
from pyspark import SparkContext
2121
from pyspark.sql import SQLContext
22-
from pyspark.sql import Row, StructField, StructType, StringType, IntegerType
22+
from pyspark.sql.types import Row, StructField, StructType, StringType, IntegerType
2323

2424

2525
if __name__ == "__main__":

0 commit comments

Comments
 (0)