How to store LineString or Point data type in Azure Synapse?

Ze'ev Shavit 0 Reputation points
2023-02-20T09:13:03.48+00:00

I have JSON files that I need to store in Azure Synapse table.

One record looks like this:

{ "type": "Feature", "properties": { "id": 12356}, "geometry": { "type": "LineString", "coordinates": [ [ 35.016271, 31.887695 ], [ 35.016253, 31.887745 ], [ 35.016238, 31.888256 ]]}

In the Synapse documentation I noticed that Synapse does not support geometry or geography types or array type.

Is there any alternative solution to store array in a column?

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,245 questions
{count} votes

1 answer

Sort by: Most helpful
  1. ShaikMaheer-MSFT 38,516 Reputation points Microsoft Employee
    2023-02-21T11:46:08.4866667+00:00

    Hi Ze'ev Shavit,

    Thank you for posting query in Microsoft Q&A Platform.

    Yes you are right. At this moment synapse does not support geography or geometry types. You can consider using varbinary as workaround.

    Below documentation, talks about unsupported datatypes and workarounds for them. Kindly check it once.

    https://github.com/MicrosoftDocs/azure-docs/blob/main/articles/synapse-analytics/sql/develop-tables-data-types.md

    Hope this helps.


    Please consider hitting Accept Answer button. Accepted answers help community as well.


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.