Skip to content

Commit 6c7c840

Browse files
author
Sreekanth Iyer (Ushta Te Consultancy Services)
committed
Improved Corectness Score
1 parent 5b14a8c commit 6c7c840

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -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)