Skip to content
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

[GAIAPLAT-549] Allow creating tables without columns #602

Merged
merged 2 commits into from
Mar 23, 2021
Merged

Conversation

chuan
Copy link
Contributor

@chuan chuan commented Mar 23, 2021

There is nothing fundamental in our implementation that disallow creating empty tables. It is just parser rules that prevent this from happening. This change adds the parser rule to allow the users defining an empty table using the DDL.

@@ -99,7 +99,7 @@
%printer { yyo << "filed_def:" << $$->name; } field_def
%printer { yyo << "data_field_def:" << $$->name; } data_field_def
%printer { yyo << "ref_field_def:" << $$->name; } ref_field_def
%printer { yyo << "filed_def_commalist[" << $$->size() << "]"; } field_def_commalist
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is that a typo? filed was meant to be field?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice catch! Fixed. now.

Copy link
Contributor

@LaurentiuCristofor LaurentiuCristofor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good - just noticed what seems to be a type in a printed text.

Copy link
Contributor

@simone-gaia simone-gaia left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM (besides the filed)

@chuan chuan merged commit 977c592 into master Mar 23, 2021
@chuan chuan deleted the empty-table branch March 23, 2021 20:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants