hawq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kavinderd <...@git.apache.org>
Subject [GitHub] incubator-hawq-docs pull request #39: HAWQ-1071 - add examples for HiveText ...
Date Thu, 27 Oct 2016 16:42:12 GMT
Github user kavinderd commented on a diff in the pull request:

    --- Diff: pxf/HivePXF.html.md.erb ---
    @@ -339,21 +601,21 @@ postgres=# CREATE EXTERNAL TABLE pxf_sales_part(
       delivery_state TEXT, 
       delivery_city TEXT
    -LOCATION ('pxf://namenode_host:51200/sales_part?Profile=Hive')
    +LOCATION ('pxf://namenode:51200/sales_part?Profile=Hive')
     FORMAT 'custom' (FORMATTER='pxfwritable_import');
     postgres=# SELECT * FROM pxf_sales_part;
    -### <a id="example3"></a>Example
    +### <a id="example3"></a>Query Without Pushdown
     In the following example, the HAWQ query filters the `delivery_city` partition `Sacramento`.
The filter onĀ  `item_name` is not pushed down, since it is not a partition column. It is
performed on the HAWQ side after all the data on `Sacramento` is transferred for processing.
     ``` sql
    -postgres=# SELECT * FROM pxf_sales_part WHERE delivery_city = 'Sacramento' AND item_name
= 'shirt';
    +postgres=# SELECT * FROM pxf_sales_part WHERE delivery_city = 'Sacramento' AND item_name
= 'cube';
    -### <a id="example4"></a>Example
    +### <a id="example4"></a>Query With Pushdown
    --- End diff --
    Somewhere it should be stated that the HAWQ GUC `pxf_enable_filter_pushdown` needs to
be turned on. If this is off no filter pushdown will occur regardless of the nature of the

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 infrastructure@apache.org or file a JIRA ticket
with INFRA.

View raw message