Pyspark job aborted due to stage failure
I am trying to create PySpark dataframe by using the following code #!/usr/bin/env python # coding: utf-8 import pyspark from pyspark.sql.session import SparkSession import pyspark.sql.functions as f from pyspark.sql.functions import coalesce spark = SparkSession.builder.appName("Test").enableHiveSupport().getOrCreate() #spark.sql("use bocconi") tableName = "dynamic_pricing.final" inputDF = spark.sql("""SELECT * FROM dynamic_pricing.final WHERE year = '2019' AND mercati_id = '6'""") I get the following error: Py4JJavaError: An error occurred while calling o48.sql. : org.apache.spark.SparkExcep
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.