Github user GodenYao commented on a diff in the pull request:

    https://github.com/apache/incubator-hawq/pull/873#discussion_r77076673
  
    --- Diff: 
pxf/pxf-hive/src/main/java/org/apache/hawq/pxf/plugins/hive/utilities/HiveUtilities.java
 ---
    @@ -256,4 +257,68 @@ private static boolean verifyIntegerModifiers(String[] 
modifiers) {
                 throw new RuntimeException("Failed connecting to Hive 
MetaStore service: " + cause.getMessage(), cause);
             }
         }
    +
    +
    +    /**
    +     * Converts HAWQ type to hive type. The supported mappings are:<ul>
    +     * <li>{@code BOOLEAN -> boolean}</li>
    +     * <li>{@code SMALLINT -> smallint (tinyint is converted to 
smallint)}</li>
    +     * <li>{@code BIGINT -> bigint}</li>
    +     * <li>{@code TIMESTAMP -> timestamp}</li>
    +     * <li>{@code NUMERIC -> decimal}</li>
    +     * <li>{@code BYTEA -> binary}</li>
    +     * <li>{@code INTERGER -> int}</li>
    +     * <li>{@code TEXT -> string}</li>
    +     * <li>{@code REAL -> float}</li>
    +     * <li>{@code FLOAT8 -> double}</li>
    +     * </ul>
    --- End diff --
    
    based on the logic we also support:
    `
                   case VARCHAR:
     +            case BPCHAR:
     +            case CHAR:
    `


---
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.
---

Reply via email to