-
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
Merged
Merged
Changes from all commits
Commits
Show all changes
93 commits
Select commit
Hold shift + click to select a range
c6a3315
#1 Add create index support in the sql translator
simonstadlinger 5900750
#1 Add basic create index support in bison parser
simonstadlinger b278a8e
Add Drop Index to sql_translator
m0e33 2d7d347
Add character varying
simonstadlinger 39da0b5
Add support for all other datatypes
simonstadlinger 241b652
adds keyconstraint functionality
Jostafarr 4e37b38
Add unique types for decimal, real and varchar_varying
m0e33 e4ec784
added tablekeyconstraint to parser
Jostafarr 5649940
WIP
Jostafarr b5663d5
refines the tablekeyconstraint implementation
Jostafarr 6331844
started column constraint implementation
Jostafarr f8007a7
Start implementing Alter Table (Drop Column)
m0e33 505b94e
column constraint
Jostafarr 32bbbf9
Refactor create_index to actually work
simonstadlinger b009290
Fix parser to work with new datatypes
simonstadlinger 4e70942
adds keyconstraint functionality
Jostafarr cdd5e1a
added tablekeyconstraint to parser
Jostafarr 7ccd2ea
WIP
Jostafarr e3c6c0e
refines the tablekeyconstraint implementation
Jostafarr 79a263a
adds keyconstraint functionality
Jostafarr 4f2ce05
added tablekeyconstraint to parser
Jostafarr c26be12
WIP
Jostafarr 9dbbdbd
refines the tablekeyconstraint implementation
Jostafarr fcc65f0
Merge branch 'project/#3-primary-key' of https://github.com/hyrise/sq…
Jostafarr f04c48c
Merge branch 'project/#4-column-constraint' of https://github.com/hyr…
Jostafarr 94aa80d
Switch if exists flag and index name
simonstadlinger fa356d2
Merge remote-tracking branch 'origin/project/#1-index' into project/#…
Jostafarr 8a5ad44
Include if_exists flag to drop index
simonstadlinger 6610134
Fix drop index implementation
simonstadlinger b8a2892
Add Tests
m0e33 506b161
Add sql translator tests for ALTER TABLE
m0e33 9cf60b9
Merge remote-tracking branch 'origin/project/#1-index' into project/DDL
m0e33 67e6d65
Fix decimal
m0e33 bb31ecc
Merge remote-tracking branch 'origin/Feature/alter-table' into projec…
Jostafarr dd8211a
Fix failing tests
m0e33 a394de1
Merge branch 'fix/tests' into project/DDL
m0e33 e567de1
Rename tableKeyConstraints to tableConstraints
simonstadlinger dbaf779
Rename snake_case variables to camelCase
simonstadlinger 83d45ac
Introduce time specification for optional precision parameter parsing
simonstadlinger a1b8861
Change sql translator code for compliance with sql-parser changes
simonstadlinger 910363a
Add small int
simonstadlinger abc36f1
Introduce table element and thus refactor constraints and column defi…
simonstadlinger ba5d544
Add support for smallint
m0e33 5f217ca
Merge remote-tracking branch 'origin/project/#1-index' into project/DDL
m0e33 b730d77
Fix seg fault
simonstadlinger b43ca10
Merge remote-tracking branch 'origin/project/#1-index' into project/DDL
m0e33 fdb7f7d
Fix column constraints to support multiple column constraints and inc…
simonstadlinger 337984e
Merge remote-tracking branch 'origin/project/#1-index' into project/DDL
m0e33 3fe37ec
Refactor alter table to lay groundwork for more and different action …
simonstadlinger ff2c1b8
Refactor sql_translator to cope with new alter tble sql statement par…
simonstadlinger 23cd7f4
Implement requested changes
m0e33 cea6826
Merge remote-tracking branch 'origin/project/#1-index' into project/DDL
m0e33 b2442c5
Try to fix shift reduce conflict; Failed
simonstadlinger 6d831d6
Remove flex lexer.cpp to resolve conflict
simonstadlinger 393143a
Merge remote-tracking branch 'origin/project/#1-index' into project/DDL
m0e33 a8f9561
Merge branch 'master' into project/#1-index
simonstadlinger 8cfb689
New bison parser and flex lexer after build
simonstadlinger 2126b0c
Merge remote-tracking branch 'origin/project/#1-index' into project/DDL
m0e33 6f35609
Fix parsing of drop index and column definitions. Add tests for sql s…
simonstadlinger 44ae7cf
Add flex lexer and bison parser
simonstadlinger 873527d
Add bison_parser and flex_lexer to git
m0e33 afbb5ab
Merge remote-tracking branch 'origin/project/#1-index' into project/DDL
m0e33 3ca0ea1
Implement destructor for alter statement
simonstadlinger e59eb2a
Remove explicit desctructor call for alter statement action
simonstadlinger 18c2282
Merge remote-tracking branch 'origin/project/#1-index' into project/DDL
m0e33 6cb8491
fixed shift/reduce issue
mweisgut 17bfa16
test
mweisgut 3ce774e
fix
mweisgut 1ca3802
RETURN 1 if valgrind check could not be executed
mweisgut cab1af7
Merge branch 'mrcl/hotfix/188' into project/#1-index
mweisgut 7b75203
fix
mweisgut ff5f2f2
../..
mweisgut 1261a11
Merge branch 'mrcl/hotfix/188' into project/#1-index
mweisgut 66dcb87
;;:
mweisgut 6679346
Merge branch 'mrcl/hotfix/188' into project/#1-index
mweisgut 3696353
fix memory allocations, next: fix Mismatched free() / delete / delete
mweisgut c542723
resolve mismatch free / delete errors
mweisgut 4301e1c
reset test.sh
mweisgut ab64b8d
delete parser/Makefile changes
mweisgut b18b021
Merge branch 'project/#1-index' of github.com:hyrise/sql-parser into …
mweisgut dfd31f2
change enum naming
mweisgut 4474144
Merge branch 'master' into project/#1-index
mweisgut 6ab035a
remove comment about standard
mweisgut 9a81b39
update comment about ON in DROP INDEX
mweisgut a390c6f
formatting
mweisgut 2ddd374
formatting
mweisgut b6fe4b8
formatting
mweisgut 1ed4dd2
use join_type
mweisgut e8b0b71
eliminate VARCHAR_VARYING
mweisgut 05e789b
remove index_name
mweisgut b7732c0
formatting
mweisgut 5d21bca
enum naming
mweisgut c2532e7
empty lines
mweisgut File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,41 @@ | ||
| #ifndef SQLPARSER_ALTER_STATEMENT_H | ||
| #define SQLPARSER_ALTER_STATEMENT_H | ||
|
|
||
| #include "SQLStatement.h" | ||
|
|
||
| // Note: Implementations of constructors and destructors can be found in statements.cpp. | ||
| namespace hsql { | ||
|
|
||
| enum ActionType { | ||
| DropColumn, | ||
| }; | ||
|
|
||
| struct AlterAction { | ||
| AlterAction(ActionType type); | ||
| ActionType type; | ||
| virtual ~AlterAction(); | ||
| }; | ||
|
|
||
| struct DropColumnAction : AlterAction { | ||
| DropColumnAction(char* column_name); | ||
| char* columnName; | ||
| bool ifExists; | ||
|
|
||
| ~DropColumnAction() override; | ||
| }; | ||
|
|
||
| // Represents SQL Alter Table statements. | ||
| // Example "ALTER TABLE students DROP COLUMN name;" | ||
| struct AlterStatement : SQLStatement { | ||
|
|
||
| AlterStatement(char* name, AlterAction* action); | ||
| ~AlterStatement() override; | ||
|
|
||
| char* schema; | ||
| bool ifTableExists; | ||
| char* name; | ||
| AlterAction* action; | ||
| }; | ||
| } // namespace hsql | ||
|
|
||
| #endif |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.