Coder Social home page Coder Social logo

Support CTEs (WITH statement) about parser HOT 10 CLOSED

pingcap avatar pingcap commented on August 27, 2024
Support CTEs (WITH statement)

from parser.

Comments (10)

tlightsky avatar tlightsky commented on August 27, 2024 1

i have do some work about adding CTEs (WITH statement),
need some help to fix failed tests

from parser.

morgo avatar morgo commented on August 27, 2024

@tlightsky Thank you for the feature request. CTEs are currently on the roadmap.

from parser.

tlightsky avatar tlightsky commented on August 27, 2024

@morgo thanks for reply
need this feature recently,
maybe i can make a pr when i finish it,
is there any hint that i can add it quickly?
(maybe just point out where i should make changes)

from parser.

zz-jason avatar zz-jason commented on August 27, 2024

@tlightsky Common Table Expression is a huge feature, we need a detailed discuss and design document about it.

from parser.

zz-jason avatar zz-jason commented on August 27, 2024

I've created a github project to trace the progress: https://github.com/pingcap/tidb/projects/21

from parser.

tlightsky avatar tlightsky commented on August 27, 2024

@zz-jason
thanks for response,

Currently, my plan is to parse it to ast tree(without recursive),
then expand those CTEs to form a SQL without WITH Statement,
so i can use WITH Statement in platforms like MySQL 5.7, Clickhouse

Also noticed OceanBase support non-recursive CTEs by only expanding them too,
would be nice to have CTEs support in TiDB even only just expand those subqueries

from parser.

kyleconroy avatar kyleconroy commented on August 27, 2024

Is this still on the roadmap? I don't need CTE support in TiDB, just in the parser.

from parser.

kennytm avatar kennytm commented on August 27, 2024

yes, compatibility with mysql 8 is always desirable.

(you may also want to follow pingcap/tidb#17472 for the overall roadmap of CTE support in TiDB, which drives the parser implementation.)

from parser.

zz-jason avatar zz-jason commented on August 27, 2024

Is this still on the roadmap? I don't need CTE support in TiDB, just in the parser.

@kyleconroy Oh, seems you are using this parser as a library in a project. May I know your use scenarios?

from parser.

wjhuang2016 avatar wjhuang2016 commented on August 27, 2024

Supported by #1207
/cc @tlightsky @kyleconroy

from 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.