Skip to content

Conversation

@simonstadlinger
Copy link
Contributor

@simonstadlinger simonstadlinger commented Jul 9, 2021

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.

@mweisgut
Copy link
Contributor

mweisgut commented Jul 13, 2021

@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 [DYOD] to indicate that this work is a result of the seminar.

@simonstadlinger simonstadlinger changed the title Project/#1 index [DYOD] Data Definition Language Project Jul 15, 2021
@mweisgut mweisgut requested a review from dey4ss September 23, 2021 12:02
@mweisgut mweisgut dismissed their stale review October 11, 2021 12:19

I'm contributing now so another person should approve.

@mweisgut mweisgut requested review from dey4ss and mweisgut October 11, 2021 13:22
ASSERT_EQ(stmt->ifExists, true);
}


Copy link
Member

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?

ASSERT_STREQ(stmt->name, "students");
}


Copy link
Member

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?

@mweisgut mweisgut merged commit 0de1890 into master Oct 12, 2021
@mweisgut mweisgut changed the title [DYOD] Data Definition Language Project [DYOD] Data Definition Language (DDL) Project Jan 7, 2022
mweisgut added a commit that referenced this pull request Jan 14, 2022
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`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants