Skip to content
This repository was archived by the owner on Dec 18, 2021. It is now read-only.
This repository was archived by the owner on Dec 18, 2021. It is now read-only.

Add array support #3

Open
Open

Description

@sylphy-zh

If I create table 'USER', and it's schema defined 'PERSONA'.

database_url = "http://master:8765/"
conn = phoenixdb.connect(database_url, autocommit=True)
cursor = conn.cursor()
cursor.execute("SELECT * FROM USER")

It has a error: Table undefined , tableName='USER'.
But When I use below query:

SELECT * FROM PERSON.USER

this will have a ERROR: UnsupportedOperationException: Currently not supported.

When I see the source code and not found anywhere I can specify the schema parameter.

How to solve this? Any idea?

Activity

  1. lalinsky commented on Sep 4, 2017

    @lalinsky
    Owner

    How did you get the query server running with schema support? I'm trying to do it myself, but I'm failing on this:

    Inconsistent namespace mapping properites.. Ensure that config phoenix.schema.isNamespaceMappingEnabled is consitent on client and server.
    

    Can you please share how are you running the query server?

  2. added a commit that references this issue on Sep 4, 2017
  3. lalinsky commented on Sep 4, 2017

    @lalinsky
    Owner

    I have added a test to check that schema support works:

    424a375

    I'm unable to reproduce your problem. Can you please describe how are you running HBase/Phoenix?

  4. sylphy-zh commented on Sep 5, 2017

    @sylphy-zh
    Author

    @lalinsky Thanks for your response. When I see some doc found that the phoenixdb is still not support array type field. Because there have some array type fields in my table, and query the non-array fields is ok. But when I use /path/to/phoenix/sqlline.py, same query is work fine.

    Env : phoenixdb => 0.7
    

    phoenixdb use protocol buffer transport default, I don't know whether json is support to use array type fields. Docs seems still not suport now.

  5. lalinsky commented on Sep 5, 2017

    @lalinsky
    Owner

    Array support is not implemented yet. It has been added to Avatica/Phoenix since I started working in this project, but the type encoding/decoding code still needs to be updated.

  6. changed the title [-]phoenixdb.errors.ProgrammingError: u'Table undefined[/-] [+]Add array support[/+] on Sep 5, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions