GithubHelp home page GithubHelp logo

Comments (5)

zach-data avatar zach-data commented on August 23, 2024

The first issue is caused by an issue with how SQL comments are handled within querytext by the Redshift JDBC 1.1.13 driver. You can mitigate this behavior with the 1.1.10 version of the Redshift driver until we release the next version.

The ORDER BY clauses are to ensure a consistent positioning of columns, but testing against the pg_catalog tables shows this consistent ordering is enforced already. These are likely to be redundant - will test and remove if confirmed to be the case.

from amazon-redshift-utils.

jrandrews avatar jrandrews commented on August 23, 2024

Thank you, reverting from the Redshift JDBC 1.1.13 driver to the 1.1.10 driver worked.

I'm curious -- I can't see any references now to the 1.1.13 driver anywhere but I know I must have downloaded it from somewhere before. Was the 1.1.13 driver formerly available on Amazon's site and then removed due to some issues found with the driver?

from amazon-redshift-utils.

zach-data avatar zach-data commented on August 23, 2024

We had previously identified the issue you raised here and removed the driver while we work on a fix.

from amazon-redshift-utils.

zach-data avatar zach-data commented on August 23, 2024

Is there a reason to have the ORDER BY clauses in the subqueries? ... I think there are some extra parentheses?

We globally sort by seq which is properly generated by incrementing attnum or abs(a.attsortkeyord) to maintain column order, so there is no meaningful value in these redundant ORDER BY clauses in the various subqueries. Benchmarks against a version of the VIEW where these are omitted resulted in a non-measurable performance change. I will remove these as well as the redundant parenthesis.

from amazon-redshift-utils.

jrandrews avatar jrandrews commented on August 23, 2024

Thanks, chrisz. I really appreciate the prompt feedback.

from amazon-redshift-utils.

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.