-
Notifications
You must be signed in to change notification settings - Fork 256
[DYOD] Data Definition Language (DDL) Project #177
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
Conversation
|
@simonstadlinger please provide a high-level summary of this pull request as the description. In addition, please pick a more descriptive title for the PR, using the prefix |
I'm contributing now so another person should approve.
test/sql_tests.cpp
Outdated
| ASSERT_EQ(stmt->ifExists, true); | ||
| } | ||
|
|
||
|
|
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.
Are these blanks on purpose?
test/sql_tests.cpp
Outdated
| ASSERT_STREQ(stmt->name, "students"); | ||
| } | ||
|
|
||
|
|
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.
Are these blanks on purpose?
PR #177 added additional column types, including `SMALLINT`. However, SMALLINT was not added as a token for the lexical analysis (flex scanner). This PR adds `SMALLINT` as a token and extends a test case so that all column types are tested with a `CREATE TABLE` SQL statement. Furthermore, this PR eliminates the `ColumnSpecification` struct, which was used before to store precision and scale information for the DECIMAL or TIME column types. Similar to the `ColumnType::length`, `precision` and `scale` are now member variables of `ColumnType`.
This pull request sums up all the work for project 1 of this term "Develop your Own Database" seminar. The project's high-level goal is to make the schema SQL of hyrise executable.
Specifically, this pull request - once finished - will include the extension of the parser to support CREATE INDEX and DROP INDEX statements, column and table key constraints, a subset of ALTER TABLE statements, and extended type parsing within column definitions.