Microsoft Fabric Updates Blog

Announcing improved JSON support in Fabric DW

We’ve improved the JSON support in Fabric Datawarehouse (Fabric DW) and have added the following features in Fabric DW:

  • Fabric DW enables you to use FOR JSON query option that formats the query results as JSON text. This was one of the features that is requested on Microsoft Fabric Idea site.
  • Fabric DW enables you to use all JSON scalar functions that can also be used in Azure SQL database. In addition to the existing JSON scalar functions (ISJSON, JSON_VALUE, JSON_QUERY, and JSON_MODIFY), we have added support for the latest JSON functions that exist in Azure SQL Database – JSON_PATH_EXISTS, JSON_OBJECT, and JSON_ARRAY.

The JSON_PATH_EXIST function checks if there is a value on the given path in JSON text. The JSON_OBJECT and JSON_ARRAY functions enable you to more easily create JSON objects or arrays based on a set of scalar values without a need to concatenate and escape the values to produce a properly formatted JSON text.

In the following example you can see the new approach that you can use to create JSON objects in the queries:

Formatting without JSON_OBJECTFormatting with JSON_OBJECT
SELECT
     CONCAT('{"name:"', name, '",
              "size":"', size,'",
              "color":"', color,'"}')
FROM Product
SELECT
     JSON_OBJECT('name':name,
                 'size': size,
                 'color': color)
FROM Product
Formatting the vales in the rows as JSON

With the new approach, you don’t need to worry about pairing curly brackets and quotes to properly format JSON objects, and you don’t need to ensure that you are properly escaping the values before you concatenate them.

In addition to the new functionalities, we have enabled you to use the OPENROWSET function with CROSS/OUTER APPLY operator. This was one of the feature requests asked in Microsoft Fabric Idea site.

With these improvements, the JSON support in Azure SQL database and Fabric DW is aligned. You can easily migrate code between Azure SQL database and Fabric without the need to rewrite and modify your T-SQL logic.

Seotud ajaveebipostitused

Announcing improved JSON support in Fabric DW

oktoober 28, 2024 korda Gali Reznick

The Data Activator team has rolled out usage reporting to help you better understand your capacity consumption and future charges. When you look at the Capacity Metrics App you’ll now see operations for the reflex items included. Our usage reporting is based on the following four meters: Rule uptime per hour: This is a flat … Continue reading “Usage reporting for Data Activator is now live”

oktoober 24, 2024 korda Ed Lima

  We are enhancing enterprise-grade security and authentication by introducing Service Principal Names (SPN) support for API for GraphQL in Microsoft Fabric. This new feature offers organizations looking to integrate their apps with API for GraphQL in Microsoft Fabric tie seamlessly with their enterprise identity and access management systems.  By leveraging SPNs, businesses can now … Continue reading “Adding more flexibility to your business applications with support for Service Principal Names (SPNs) in Fabric API for GraphQL”