Github user dyozie commented on a diff in the pull request:
https://github.com/apache/incubator-hawq-docs/pull/90#discussion_r102345563
--- Diff: markdown/pxf/HivePXF.html.md.erb ---
@@ -766,20 +766,42 @@ In this example, you will use the `Hive` profile to
query a partitioned Hive ext
hive> SELECT * from hive_multiformpart WHERE year='2016';
```
-6. Show the partitions defined for the `hive_multiformpart` table:
+6. Show the partitions defined for the `hive_multiformpart` table and exit
`hive`:
``` sql
hive> SHOW PARTITIONS hive_multiformpart;
year=2013
year=2016
+ hive> quit;
```
-7. Use the PXF `Hive` profile to create a readable HAWQ external table
derived from the Hive `hive_multiformpart` external table created in the
previous steps:
+7. Start the `psql` subsystem:
``` shell
$ psql -d postgres
```
+
+7. Use PXF HCatalog integration to query the Hive `hive_multiformpart`
external table you created in the previous steps:
+
+ ``` sql
+ postgres=# SELECT * FROM hcatalog.default.hive_multiformpart;
+ ```
+ ``` shell
+ location | month | number_of_orders | total_sales | year
+ ---------------+-------+------------------+-------------+------
+ ...
+ Prague | Dec | 333 | 9894.77 | 2013
+ Bangalore | Jul | 271 | 8320.55 | 2013
+ Beijing | Dec | 100 | 4248.41 | 2013
+ Prague | Jan | 101 | 4875.33 | 2016
+ Rome | Mar | 87 | 1557.39 | 2016
+ Bangalore | May | 317 | 8936.99 | 2016
+ ...
+ ```
+
+7. Now use the PXF `Hive` profile to create a readable HAWQ external table
derived from the Hive `hive_multiformpart` external table you created in the
previous steps:
--- End diff --
Remove "Now" (just start with "Use").
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---