How to migrate the planner module to your own project for experimentation

Note:
This topic has been translated from a Chinese forum by GPT and might contain errors.

Original topic: 如何把planner模块迁到自己项目中玩玩啊

| username: TiDBer_U58GZgGJ

I want to migrate the planner module to my own project, but there are too many components, including plan generation, logical optimization, physical optimization, and some need to work with KV. Can any expert provide guidance on the feasibility of this migration? Currently, I am in the code review stage and haven’t fully understood the code yet. :joy:

| username: xfworld | Original post link

It’s unlikely. For the overall migration, you need to be aware of all the context, which probably means you’ll have to put in the effort yourself.

Just the SQL parsing engine alone is very complex…

| username: xingzhenxiang | Original post link

Master!