Files
sqlparser/parser/testdata/ddl/output/alter_table_drop_detach_partition.sql.golden.json

58 lines
1.2 KiB
JSON

[
{
"AlterPos": 0,
"StatementEnd": 120,
"TableIdentifier": {
"Database": {
"Name": "app_utc_00",
"QuoteType": 1,
"NamePos": 12,
"NameEnd": 22
},
"Table": {
"Name": "app_message_as_notification_organization_sent_stats_i_d_local",
"QuoteType": 1,
"NamePos": 23,
"NameEnd": 84
}
},
"OnCluster": null,
"AlterExprs": [
{
"DropPos": 85,
"HasDetached": true,
"Partition": {
"PartitionPos": 99,
"Expr": {
"LiteralPos": 110,
"LiteralEnd": 120,
"Literal": "2022-05-24"
},
"ID": null,
"All": false
},
"Settings": {
"SettingsPos": 122,
"ListEnd": 154,
"Items": [
{
"SettingsPos": 131,
"Name": {
"Name": "allow_drop_detached",
"QuoteType": 1,
"NamePos": 131,
"NameEnd": 150
},
"Expr": {
"NumPos": 153,
"NumEnd": 154,
"Literal": "1",
"Base": 10
}
}
]
}
}
]
}
]