Files
sqlparser/parser/testdata/query/output/select_simple_with_is_null.sql.golden.json

214 lines
5.4 KiB
JSON

[
{
"SelectPos": 0,
"StatementEnd": 112,
"With": null,
"Top": null,
"HasDistinct": false,
"DistinctOn": null,
"SelectItems": [
{
"Expr": {
"Name": "f0",
"QuoteType": 1,
"NamePos": 7,
"NameEnd": 9
},
"Modifiers": [],
"Alias": null
},
{
"Expr": {
"Name": "f1",
"QuoteType": 1,
"NamePos": 10,
"NameEnd": 12
},
"Modifiers": [],
"Alias": null
},
{
"Expr": {
"Name": "f2",
"QuoteType": 1,
"NamePos": 13,
"NameEnd": 15
},
"Modifiers": [],
"Alias": null
},
{
"Expr": {
"Name": "f3",
"QuoteType": 1,
"NamePos": 16,
"NameEnd": 18
},
"Modifiers": [],
"Alias": {
"Name": "a0",
"QuoteType": 1,
"NamePos": 22,
"NameEnd": 24
}
}
],
"From": {
"FromPos": 25,
"Expr": {
"Table": {
"TablePos": 30,
"TableEnd": 47,
"Alias": null,
"Expr": {
"Database": {
"Name": "test",
"QuoteType": 1,
"NamePos": 30,
"NameEnd": 34
},
"Table": {
"Name": "events_local",
"QuoteType": 1,
"NamePos": 35,
"NameEnd": 47
}
},
"HasFinal": false
},
"StatementEnd": 47,
"SampleRatio": null,
"HasFinal": false
}
},
"ArrayJoin": null,
"Window": null,
"Prewhere": null,
"Where": {
"WherePos": 48,
"Expr": {
"LeftExpr": {
"LeftExpr": {
"LeftParenPos": 54,
"RightParenPos": 83,
"Items": {
"ListPos": 55,
"ListEnd": 82,
"HasDistinct": false,
"Items": [
{
"Expr": {
"LeftExpr": {
"Name": "f0",
"QuoteType": 1,
"NamePos": 55,
"NameEnd": 57
},
"Operation": "IN",
"RightExpr": {
"LeftParenPos": 61,
"RightParenPos": 82,
"Items": {
"ListPos": 63,
"ListEnd": 81,
"HasDistinct": false,
"Items": [
{
"Expr": {
"LiteralPos": 63,
"LiteralEnd": 66,
"Literal": "foo"
},
"Alias": null
},
{
"Expr": {
"LiteralPos": 70,
"LiteralEnd": 73,
"Literal": "bar"
},
"Alias": null
},
{
"Expr": {
"LiteralPos": 77,
"LiteralEnd": 81,
"Literal": "test"
},
"Alias": null
}
]
},
"ColumnArgList": null
},
"HasGlobal": false,
"HasNot": false
},
"Alias": null
}
]
},
"ColumnArgList": null
},
"Operation": "AND",
"RightExpr": {
"LeftParenPos": 89,
"RightParenPos": 104,
"Items": {
"ListPos": 90,
"ListEnd": 103,
"HasDistinct": false,
"Items": [
{
"Expr": {
"LeftExpr": {
"Name": "f1",
"QuoteType": 1,
"NamePos": 90,
"NameEnd": 92
},
"Operation": "=",
"RightExpr": {
"LiteralPos": 96,
"LiteralEnd": 103,
"Literal": "testing"
},
"HasGlobal": false,
"HasNot": false
},
"Alias": null
}
]
},
"ColumnArgList": null
},
"HasGlobal": false,
"HasNot": false
},
"Operation": "AND",
"RightExpr": {
"IsPos": 120,
"Expr": {
"Name": "f2",
"QuoteType": 1,
"NamePos": 110,
"NameEnd": 112
}
},
"HasGlobal": false,
"HasNot": false
}
},
"GroupBy": null,
"WithTotal": false,
"Having": null,
"OrderBy": null,
"LimitBy": null,
"Limit": null,
"Settings": null,
"Format": null,
"UnionAll": null,
"UnionDistinct": null,
"Except": null
}
]