Created
April 25, 2024 17:36
-
-
Save dipankarmazumdar/aa0c616284fa69a1cc0713820b560404 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| spark.sql( | |
| """CREATE OR REPLACE TEMPORARY VIEW salesview USING csv | |
| OPTIONS (path "file:/home/docker/All_Data_Aldi.csv", header true)""" | |
| ) | |
| spark.sql("INSERT INTO hdfs_catalog.retail_ice SELECT * FROM salesview") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment