How can I create a temporary table in Spark ?

WeirdMan 340 Reputation points
2023-10-09T17:25:29.0766667+00:00

I am using apache spark in Azure Synapse and I cannot find how to create a temporary table.

Is it possible to do that or there is a workaround?

Azure Synapse Analytics
Azure Synapse Analytics
An Azure analytics service that brings together data integration, enterprise data warehousing, and big data analytics. Previously known as Azure SQL Data Warehouse.
5,373 questions
0 comments No comments
{count} votes

Accepted answer
  1. Amira Bedhiafi 33,071 Reputation points Volunteer Moderator
    2023-10-09T17:42:44.98+00:00

    In Spark SQL, I think the concept of sql temporary tables doesn't exist.

    PySpark dataframes can provide similar functionality.

    You can check this thread : https://stackoverflow.com/questions/77175754/how-to-create-a-temporary-table-in-spark-sql-not-a-temp-view

    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.