Query loading file

Niren Adhikary 96 Reputation points
2023-06-19T11:04:19.71+00:00

Hello, is it possible to load files into delta table in azure environment from an output file .csv pushed into datalake where the columns are not static and dynamically changing everytime.

Azure Data Lake Storage
Azure Data Lake Storage
An Azure service that provides an enterprise-wide hyper-scale repository for big data analytic workloads and is integrated with Azure Blob Storage.
1,564 questions
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,389 questions
Azure Databricks
Azure Databricks
An Apache Spark-based analytics platform optimized for Azure.
2,562 questions
Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
11,683 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Bhargava-MSFT 31,261 Reputation points Microsoft Employee Moderator
    2023-06-21T00:03:39.18+00:00

    Niren Adhikary

    You can use ADF mapping dataflow to copy data to and from a delta lake stored in Azure data lake using the delta format. Delta is only available as an inline dataset and, by default, doesn't have an associated schema.

    High level steps:

    create linked service and dataset that connect to your data source (data lake) where csv is stored

    delta table as sink

    To get column metadata, click the Import schema button in the Projection tab. This will allow you to reference the column names and data types specified by the corpus. To import the schema, a data flow debug session must be active and you must have an existing CDM entity definition file to point to

    To use ADF to load files into a delta table where the columns are not static and dynamically changing every time, you can use the delta source script example provided in the below document. The delta source script allows you to specify the column names and data types for the source data. You can modify the script to match the column names and data types in your .csv file.

    I hope this helps! Let me know if you have any further questions.

    Please see the below document and demonstration video in the document.

    https://learn.microsoft.com/en-us/azure/data-factory/format-delta

    I hope this helps. Please let us know if you have any further questions.

    0 comments No comments

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.