Why Python module sqlglot is not able to parse correctly DELETE SQL Statement?
import sqlglot
sql="DELETE FROM MySchema.MyTable WHERE MyCol='MyValue'"
parsed=sqlglot.parse_one(sql)
Result:
parsed
(COMMAND this: DELETE, expression:
(LITERAL this: FROM MySchema.MyTable WHERE MyCol='MyValue', is_string: True))
Why sqlglot is capable of parsing the other DML commands (SELECT, INSERT, UPDATE) but not DELETE?
Am I doing something wrong?
Thanks.