I want to incrementally load data into a delta table. However, my "COPY INTO" command is not working in spark sql prompt of command line terminal.
The same command is working in databricks.
Please let me know does this command only works in databricks environment.
The
COPY INTO
is a SQL statement specific to Databricks (docs), you can't use it with the open source Spark. But basically it's just a simplification of the following streaming code: