GitHub user gabrywu opened a pull request:

    https://github.com/apache/phoenix/pull/407

    PHOENIX-4804 PhoenixStorageHandler ERROR: Undefined column

    1. modify 
DEFAULT_IS_NAMESPACE_MAPPING_ENABLED/DEFAULT_IS_SYSTEM_TABLE_MAPPED_TO_NAMESPACE
 to true
    2. fix PHOENIX-4804 bugs 
(https://issues.apache.org/jira/browse/PHOENIX-4804)
    
    In some case columnList will be start with a temp string , the 
replaceColumns method should filter it.
    
    hive.io.file.readcolumn.ids is null 
    hive.io.file.readcolumn.names is  , col1,col2,col3
    
    In this case columnList is " , col1,col2,col3",when phoenix compile the 
query ,the result is 
    SELECT "","COL1","COL2","COL3" from TABLENAME   exception throw 
    
java.lang.RuntimeException(org.apache.phoenix.schema.ColumnNotFoundException: 
ERROR 504 (42703): Undefined column. columnName=TABLENAME 
    


You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/gabrywu/phoenix master

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/phoenix/pull/407.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #407
    
----
commit 66715753fc346392c01fb5e6ff4b561fb486370d
Author: 吴绍杰 <wusj@...>
Date:   2018-11-23T06:14:06Z

    1. modify 
DEFAULT_IS_NAMESPACE_MAPPING_ENABLED/DEFAULT_IS_SYSTEM_TABLE_MAPPED_TO_NAMESPACE
 to true
    2. fix PHOENIX-4804 bugs 
(https://issues.apache.org/jira/browse/PHOENIX-4804)

----


---

Reply via email to