Giter Club home page Giter Club logo

Comments (9)

DHRUV6029 avatar DHRUV6029 commented on September 23, 2024 1

Hi, Can i Work on this feature

from crate.

mfussenegger avatar mfussenegger commented on September 23, 2024

Referencing the columns by ordinal is an alternative - although a bit less convenient:

SELECT
  col1,
  agg(col2),
  col3
FROM t01;
GROUP BY
  1, 3;

from crate.

proddata avatar proddata commented on September 23, 2024

Referencing the columns by ordinal is an alternative - although a bit less convenient:

Which is even more error-prone when adjusting queries.
But overall this is more about convenience anyway.

from crate.

matriv avatar matriv commented on September 23, 2024

@DHRUV6029 Thx for volunteering to work on this!
Please let us know of any help you might need.

from crate.

DHRUV6029 avatar DHRUV6029 commented on September 23, 2024

Hello , Thanks for assigning me the task.
I had few queries @mfussenegger mentioned do we need ordinal number refrence or, we just want to support Group by ALL
clause

Thanks

from crate.

proddata avatar proddata commented on September 23, 2024

@DHRUV6029 Just GROUP BY ALL. Ordinal number references are already implemented.

from crate.

DHRUV6029 avatar DHRUV6029 commented on September 23, 2024

Hi can you guys help me with files where code for group by is already implemented ?
Thanks

from crate.

mfussenegger avatar mfussenegger commented on September 23, 2024

Hi can you guys help me with files where code for group by is already implemented ? Thanks

You'll have to extend the parser grammar to allow for ALL as an alternative to the list:

This then implies that the QuerySpecification structure has to change the representation of the GROUP BY:

Could model this via a GroupBy node, or maybe we can introduce a Either<L, R>.

The ALL case then needs to be resolved to the actual columns in:

List<Symbol> groupBy = analyzeGroupBy(
selectAnalysis,
node.getGroupBy(),
expressionAnalyzer,
expressionAnalysisContext);

from crate.

DHRUV6029 avatar DHRUV6029 commented on September 23, 2024

Thanks , Will submit a PR by this weekend

from crate.

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.