Code Monkey home page Code Monkey logo

Comments (6)

d4nt avatar d4nt commented on July 23, 2024

Hi Mark - from what you’ve said I suspect there might be something about the GreenPlum DB table definitions that’s confusing QueryTree. I’ll download the GPDB docker image and do some investigation.

from querytree.

d4nt avatar d4nt commented on July 23, 2024

Ok, so I ran the Greenplumb docker image, created a table named test (in the gpadmin schema)

create table test
(
  id          serial (10) default nextval('test_id_seq':: regclass ) not null
  constraint test_pkey
  primary key,
  name        varchar(50),
  description varchar(250)
);

and connected QueryTree to it, and all seems well:

screen shot 2018-05-10 at 14 27 29

Maybe there's something specific in your schema that's causing a problem. Perhaps you could create a new schema, point QueryTree at it, and then add some of your tables, checking QueryTree each time, until you find the one that causes QueryTree to fall over. Then you could send me the SQL and we can figure out why QueryTree doesn't like it.

from querytree.

whitemark avatar whitemark commented on July 23, 2024

Hello

Thanks so much for your prompt support, I think the difference is that I'm using greenplum 4.3.25 (there are two streams of greenplum still) where you possibly used the 5 stream, my version is based on PostgreSQL 8.3, your version I think is based on 8.4 and the catalogs may be different, in particular I think pg_enum is different or something like that on greenplum 4.3x stream

Anyway I believe the difference should be minimal as some tools, example redash, can see the tables of both greenplum streams

I also have several schemas, if you think that could be the issue, could you kindly point me to where I can setup the schema in querytree?

Thanks heaps!
Best regards
Mark

from querytree.

whitemark avatar whitemark commented on July 23, 2024

Quick update, I tried QueryTree on postgres 8, 9 and 10, it seems that it works well with 8.4 to 9, it does not work properly with 10, same issue of not showing the tables
Thanks!

from querytree.

d4nt avatar d4nt commented on July 23, 2024

Thanks for your help. I've tried QueryTree with Postgres 10 today and it seemed OK. So I think this must be something specific about your database schema that QueryTree can't handle properly.

When I say:

Perhaps you could create a new schema, point QueryTree at it, and then add some of your tables, checking QueryTree each time, until you find the one that causes QueryTree to fall over. Then you could send me the SQL and we can figure out why QueryTree doesn't like it.

What I mean is, the first time QueryTree connects to any database, it queries the INFORMATION_SCHEMA views in the database to see what tables, views and columns there are. (see DbManager.cs) So if you're not seeing any tables in the dropdown that suggests that either QueryTrees's connection details haven't given it access to any tables, or that the code has fallen over somehow while querying it. Maybe one of the columns has a type that's confused it. Or maybe a table has a strange character in its name.

If you could get to a point where you can post a schema definition script on this issue that reproduces the problem, then I'm sure we can fix it. E.g.

CREATE SCHEMA "QTIssue14";
SET search_path TO "QTIssue14";

CREATE TABLE ...;
CREATE TABLE ...;
CREATE TABLE ...;

One thing to keep in mind is that QueryTree caches the schema information once it's loaded it. So when you make schema changes, either restart QueryTree, or delete and recreate the database connection using the QueryTree UI.

from querytree.

stale avatar stale commented on July 23, 2024

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

from querytree.

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.