Skip to content

Commit aec3ae3

Browse files
Merge pull request #270741 from sreekzz/patch-25
Freshness MS date change
2 parents d6f1326 + 6c7c840 commit aec3ae3

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

articles/hdinsight/hadoop/using-json-in-hive.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: Analyze & process JSON with Apache Hive - Azure HDInsight
33
description: Learn how to use JSON documents and analyze them by using Apache Hive in Azure HDInsight.
44
ms.service: hdinsight
55
ms.topic: how-to
6-
ms.date: 04/24/2023
6+
ms.date: 03/31/2024
77
---
88

99
# Process and analyze JSON documents by using Apache Hive in Azure HDInsight
@@ -85,7 +85,7 @@ The **INSERT** statement populates the **StudentOneLine** table with the flatten
8585

8686
The **SELECT** statement only returns one row.
8787

88-
Here is the output of the **SELECT** statement:
88+
Here's the output of the **SELECT** statement:
8989

9090
:::image type="content" source="./media/using-json-in-hive/hdinsight-flatten-json.png" alt-text="HDInsight flattening the JSON document." border="true":::
9191

@@ -111,14 +111,14 @@ SELECT
111111
FROM StudentsOneLine;
112112
```
113113

114-
Here is the output when you run this query in the console window:
114+
Here's the output when you run this query in the console window:
115115

116116
:::image type="content" source="./media/using-json-in-hive/hdinsight-get-json-object.png" alt-text="Apache Hive gets json object UDF." border="true":::
117117

118118
There are limitations of the get_json_object UDF:
119119

120120
* Because each field in the query requires reparsing of the query, it affects the performance.
121-
* **GET\_JSON_OBJECT()** returns the string representation of an array. To convert this array to a Hive array, you have to use regular expressions to replace the square brackets "[" and "]", and then you also have to call split to get the array.
121+
* **GET\_JSON_OBJECT()** returns the string representation of an array. To convert this array to a Hive array, you've to use regular expressions to replace the square brackets "[" and "]", and then you also have to call split to get the array.
122122

123123
This conversion is why the Hive wiki recommends that you use **json_tuple**.
124124

@@ -151,5 +151,5 @@ The type of JSON operator in Hive that you choose depends on your scenario. With
151151

152152
For related articles, see:
153153

154-
* [Use Apache Hive and HiveQL with Apache Hadoop in HDInsight to analyze a sample Apache log4j file](./hdinsight-use-hive.md)
154+
* [Use Apache Hive and HiveQL with Apache Hadoop in HDInsight to analyze a sample Apache `log4j` file](./hdinsight-use-hive.md)
155155
* [Analyze flight delay data by using Interactive Query in HDInsight](../interactive-query/interactive-query-tutorial-analyze-flight-data.md)

0 commit comments

Comments
 (0)