Giter Site home page Giter Site logo

Comments (6)

pyramation avatar pyramation commented on August 29, 2024 1

so this is not technically a bug since timestamp is by definition without timezone. The AST produces the same syntax regardless of variations. Does that make sense?

https://www.postgresql.org/docs/9.1/datatype-datetime.html

So in your example, the type wasn't actually changed, but the syntax expressing it was.

from pgsql-parser.

pyramation avatar pyramation commented on August 29, 2024 1

two queries can create the same AST. One AST, however, can only create one query.

from pgsql-parser.

divyenduz avatar divyenduz commented on August 29, 2024

Curious, it makes sense but I don't understand why the query fingerprint changed. Isn't finger print supposed to remain same for various syntaxes of the same query? 🤔

from pgsql-parser.

divyenduz avatar divyenduz commented on August 29, 2024

Thank you, but do you think that fingerprint of two queries which produce the same AST should be the same?

from pgsql-parser.

pyramation avatar pyramation commented on August 29, 2024

what I'm suggesting is that, the deparser is not a bijective function, in other words It's lossy. So I think the fingerprints of two different queries should each be unique, however, once they are passed through the parser/deparser and back, they would only ever produce one query and thus one fingerprint.

from pgsql-parser.

divyenduz avatar divyenduz commented on August 29, 2024

Got it, thank you for taking the time to explain.

from pgsql-parser.

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.