schema inference in Synapse Analytics

What is meant by schema inference.And please explain me with example.But i am not able to find the proper example for this schema inference.

Thanks in advance

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.

4,851 questions Sign in to follow 0 comments No comments Report a concern I have the same question I have the same question 0 votes Add comment

1 answer

Sort by: Most helpful Most helpful Newest Oldest

PRADEEPCHEEKATLA-MSFT 88,561 Reputation points • Microsoft Employee 2021-06-03T10:48:49.037+00:00 Hello @Rohit Kulkarni , Thanks for the question and using MS Q&A platform.
What is schema inference?
Infer schema will automatically guess the data types for each field.
In Azure Synapse Analytics, schema inference works only for parquet format.

102030-image.png

For other formats:

Infer schema will automatically guess the data types for each field. If we set this option to TRUE, the API will read some sample records from the file to infer the schema.

102038-image.png

To example, in more details I had create two dataframe one with inferschema=’False’ and another inferschema=’True’ with a sample data.

102092-image.png

Hope this helps. Do let us know if you any further queries.

Please "Accept the answer" if the information helped you. This will help us and others in the community as well.