-
Notifications
You must be signed in to change notification settings - Fork 6
TABLE statement
#52
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TABLE statement
#52
Conversation
Review Summary🏷️ Draft Comments (3)
|
Coverage Report
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
mindsdb_sql_parser/ast/table.py
Outdated
| from mindsdb_sql_parser.ast.base import ASTNode | ||
|
|
||
|
|
||
| class Table(ASTNode): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
table a is the same as select * from a, why to not parse it as CreateTable?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess you mean Select.
Indeed, select a and select * from a are equivalent. I prefer to have separate Table class because Select and Table are separate statements. However, it would be much easier to render this statement to different dialects if it will be Select, so i changed it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes, I meant Select
Implementation of
TABLEstatementTABLE table_name [ORDER BY column_name] [LIMIT number [OFFSET number]]