understanding how to use mergeSchema=True

Mantri Sai Ashish 0 Reputation points
2024-11-07T09:17:43.31+00:00

In COPY INTO under FORMAT_OPTIONS generally i use mergeSchema=True but in few queries i am seeing that it is also metioned under copy_options why ? and I have also seen mergeSchema=true given under options while read or readStream, i have seen that in readStream sometimes ,mergeSchema=True is used along with inferSchema which doesnt make sense as each readStream read as individual batches right

Azure Databricks
Azure Databricks
An Apache Spark-based analytics platform optimized for Azure.
2,218 questions
{count} votes

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.