Git Product home page Git Product logo

dbslow's People

Contributors

emliunix avatar

Stargazers

 avatar

Watchers

 avatar  avatar

dbslow's Issues

TODO 12/2019

There're some low hanging fruits right now:

  • Merge Sort Join
  • Aggregate/Window

Merge Sort Join

It shall be represented as a simple join in plan tree. Depending on the condition, it can be executed with nested loop or merge sort (only when there're only ANDed sequence of column equalities).

So the required stages are:

  • Merge
  • NestedLoop
  • Sorted

Aggregate / Window

Currently the type checking/casting relies on op context (repository of function/op information). But it's not a simple function call.

So one solution might be to pre-split the expression before type checking. With the agg/win functions in separate registry.

NULL and ops

In simple expression, it's natural to turn to null for insensible operations, eg. (1 + null => null).

By design, null is a special value included in all types. And in primitive operations, usually the result will be null if any operand is null except IS NULL.

However, there're more special handling required to make SQL useful.

In aggregation, we don't want to NULLify the whole state on first met of a null value. So maybe, for sum/cumsum, we can treat nulls as 0s.

Still not sure if any other special cases in aggregation functions.

Also, in sorting, should null be min or max.

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.