What does DAG represent in Distsql?

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

Original topic: Distsql中的DAG表示什么

| username: HACK

【TiDB Usage Environment】Production, Testing, Research
【TiDB Version】
【Encountered Problem】
In distsql type requests, what is the concept of DAG and what does it specifically represent?
【Reproduction Path】What operations were performed to encounter the problem
【Problem Phenomenon and Impact】

【Attachments】

Please provide the version information of each component, such as cdc/tikv, which can be obtained by executing cdc version/tikv-server --version.

| username: xfworld | Original post link

DAG is the description of the operator, refer to this metric

| username: neilshen | Original post link

DAG is an abbreviation for Directed Acyclic Graph. It can be approximately understood as the physical execution plan that SQL is pushed down to TiKV after being compiled and optimized in TiDB. TiKV reads data and computes results based on the content of the DAG.