Spark SQL saveAsTable returns empty result

后端 未结 2 502
梦毁少年i
梦毁少年i 2021-01-20 17:00

I am using the following code for creating / inserting data into a Hive table in Spark SQL:

val sc = SparkSession
  .builder()
  .appName(\"App\")
  .master(         


        
2条回答
  •  醉话见心
    2021-01-20 17:59

    You should just need to run MSCK REPAIR TABLE when adding new partitions. See Hive docs: https://cwiki.apache.org/confluence/display/Hive/LanguageManual+DDL#LanguageManualDDL-RecoverPartitions(MSCKREPAIRTABLE)

提交回复
热议问题