mirror of
https://github.com/hanzo-ds/sqlparser.git
synced 2026-10-30 20:53:50 +00:00
217 lines
5.1 KiB
JSON
217 lines
5.1 KiB
JSON
[
|
|
{
|
|
"SelectPos": 0,
|
|
"StatementEnd": 121,
|
|
"With": {
|
|
"WithPos": 0,
|
|
"EndPos": 68,
|
|
"CTEs": [
|
|
{
|
|
"CTEPos": 9,
|
|
"Expr": {
|
|
"Name": "t1",
|
|
"QuoteType": 1,
|
|
"NamePos": 9,
|
|
"NameEnd": 11
|
|
},
|
|
"Alias": {
|
|
"SelectPos": 37,
|
|
"StatementEnd": 54,
|
|
"With": null,
|
|
"Top": null,
|
|
"HasDistinct": false,
|
|
"DistinctOn": null,
|
|
"SelectItems": [
|
|
{
|
|
"Expr": {
|
|
"NumPos": 44,
|
|
"NumEnd": 45,
|
|
"Literal": "1",
|
|
"Base": 10
|
|
},
|
|
"Modifiers": [],
|
|
"Alias": {
|
|
"Name": "value",
|
|
"QuoteType": 1,
|
|
"NamePos": 49,
|
|
"NameEnd": 54
|
|
}
|
|
}
|
|
],
|
|
"From": null,
|
|
"ArrayJoin": null,
|
|
"Window": null,
|
|
"Prewhere": null,
|
|
"Where": null,
|
|
"GroupBy": null,
|
|
"WithTotal": false,
|
|
"Having": null,
|
|
"OrderBy": null,
|
|
"LimitBy": null,
|
|
"Limit": null,
|
|
"Settings": null,
|
|
"Format": null,
|
|
"UnionAll": null,
|
|
"UnionDistinct": null,
|
|
"Except": null
|
|
}
|
|
},
|
|
{
|
|
"CTEPos": 66,
|
|
"Expr": {
|
|
"Name": "t2",
|
|
"QuoteType": 1,
|
|
"NamePos": 66,
|
|
"NameEnd": 68
|
|
},
|
|
"Alias": {
|
|
"SelectPos": 81,
|
|
"StatementEnd": 98,
|
|
"With": null,
|
|
"Top": null,
|
|
"HasDistinct": false,
|
|
"DistinctOn": null,
|
|
"SelectItems": [
|
|
{
|
|
"Expr": {
|
|
"NumPos": 88,
|
|
"NumEnd": 89,
|
|
"Literal": "2",
|
|
"Base": 10
|
|
},
|
|
"Modifiers": [],
|
|
"Alias": {
|
|
"Name": "value",
|
|
"QuoteType": 1,
|
|
"NamePos": 93,
|
|
"NameEnd": 98
|
|
}
|
|
}
|
|
],
|
|
"From": null,
|
|
"ArrayJoin": null,
|
|
"Window": null,
|
|
"Prewhere": null,
|
|
"Where": null,
|
|
"GroupBy": null,
|
|
"WithTotal": false,
|
|
"Having": null,
|
|
"OrderBy": null,
|
|
"LimitBy": null,
|
|
"Limit": null,
|
|
"Settings": null,
|
|
"Format": null,
|
|
"UnionAll": null,
|
|
"UnionDistinct": null,
|
|
"Except": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"Top": null,
|
|
"HasDistinct": false,
|
|
"DistinctOn": null,
|
|
"SelectItems": [
|
|
{
|
|
"Expr": {
|
|
"Name": "*",
|
|
"QuoteType": 0,
|
|
"NamePos": 112,
|
|
"NameEnd": 112
|
|
},
|
|
"Modifiers": [],
|
|
"Alias": null
|
|
}
|
|
],
|
|
"From": {
|
|
"FromPos": 114,
|
|
"Expr": {
|
|
"JoinPos": 119,
|
|
"Left": {
|
|
"Table": {
|
|
"TablePos": 119,
|
|
"TableEnd": 121,
|
|
"Alias": null,
|
|
"Expr": {
|
|
"Database": null,
|
|
"Table": {
|
|
"Name": "t1",
|
|
"QuoteType": 1,
|
|
"NamePos": 119,
|
|
"NameEnd": 121
|
|
}
|
|
},
|
|
"HasFinal": false
|
|
},
|
|
"StatementEnd": 121,
|
|
"SampleRatio": null,
|
|
"HasFinal": false
|
|
},
|
|
"Right": {
|
|
"JoinPos": 131,
|
|
"Left": {
|
|
"Table": {
|
|
"TablePos": 141,
|
|
"TableEnd": 143,
|
|
"Alias": null,
|
|
"Expr": {
|
|
"Database": null,
|
|
"Table": {
|
|
"Name": "t2",
|
|
"QuoteType": 1,
|
|
"NamePos": 141,
|
|
"NameEnd": 143
|
|
}
|
|
},
|
|
"HasFinal": false
|
|
},
|
|
"StatementEnd": 143,
|
|
"SampleRatio": null,
|
|
"HasFinal": false
|
|
},
|
|
"Right": null,
|
|
"Modifiers": [
|
|
"LEFT",
|
|
"JOIN"
|
|
],
|
|
"Constraints": {
|
|
"OnPos": 144,
|
|
"On": {
|
|
"ListPos": 147,
|
|
"ListEnd": 151,
|
|
"HasDistinct": false,
|
|
"Items": [
|
|
{
|
|
"Expr": {
|
|
"Name": "true",
|
|
"QuoteType": 1,
|
|
"NamePos": 147,
|
|
"NameEnd": 151
|
|
},
|
|
"Alias": null
|
|
}
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"Modifiers": null,
|
|
"Constraints": null
|
|
}
|
|
},
|
|
"ArrayJoin": null,
|
|
"Window": null,
|
|
"Prewhere": null,
|
|
"Where": null,
|
|
"GroupBy": null,
|
|
"WithTotal": false,
|
|
"Having": null,
|
|
"OrderBy": null,
|
|
"LimitBy": null,
|
|
"Limit": null,
|
|
"Settings": null,
|
|
"Format": null,
|
|
"UnionAll": null,
|
|
"UnionDistinct": null,
|
|
"Except": null
|
|
}
|
|
] |