Giter VIP home page Giter VIP logo

Comments (8)

jingw avatar jingw commented on May 28, 2024

The error is on the Hive server side so it's hard to say what's going on. Are you able to run queries on beeline? In principle beeline also connects to HiveServer2 via Thrift. If beeline works, can you run set with both pyhive and beeline and diff the outputs?

from pyhive.

ispmarin avatar ispmarin commented on May 28, 2024

I did some more tests.

  1. set works both on beeline and pyhive
  2. doing a select on a table with name starting with a letter ('mytable') works fine both on pyhive and beeline
  3. doing a select on a table with the name starting with a number ('2016_mytable') gives me the error, on different tables and different databases. The same query works on beeline

Can I provide anything else to help?

from pyhive.

jingw avatar jingw commented on May 28, 2024

Can you try backticking the names? It sounds like the two clients might be
using different Hive configuration. Hive has some config options that
affect identifier handling, e.g. hive.support.quoted.identifiers.

It would be useful to know if set returns the same output from both
clients, or if there's some config option that's different.

On Thu, Jan 14, 2016 at 10:51 AM, Ivan Marin [email protected]
wrote:

I did some more tests.

  1. set works both on beeline and pyhive
  2. doing a select on a table with name starting with a letter
    ('mytable') works fine both on pyhive and beeline
  3. doing a select on a table with the name starting with a number
    ('2016_mytable') gives me the error, on different tables and different
    databases. The same query works on beeline

Can I provide anything else to help?


Reply to this email directly or view it on GitHub
#35 (comment).

from pyhive.

ispmarin avatar ispmarin commented on May 28, 2024

I can't backtick the names, but I tested with different tables on the same database and with very similar structure, with the only difference being the names with or without numbers on the beginning of the table names, and got the same results as reported before.

I got the two different sets and they're different. For example, the variable hive.support_quoted_identifies is getting u'hive.support.quoted.identifiers=column' from Pyhive and beeline. Which other variables are important?

Cheers

from pyhive.

jingw avatar jingw commented on May 28, 2024

Could you post the full diff of the set outputs? I'm not familiar with Tez so I'm not sure what would be relevant. At this point, I'm pretty sure this is an issue with configuration rather than an issue with the client.

from pyhive.

ispmarin avatar ispmarin commented on May 28, 2024

Unfortunately I can't post the diffs because of company policies. If you could guide me I can try to debug on my side to check what could be going wrong.

from pyhive.

jingw avatar jingw commented on May 28, 2024

I can't really help much, sorry. All I can say is to go through every single config and figure out what's different and whether it matters. This is probably a problem with the config that beeline and pyhive are passing up to the thrift server.

from pyhive.

basebase avatar basebase commented on May 28, 2024

Do you solved?
I also met

from pyhive.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.