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

Schema DDL: separate redshift-specific code from standard SQL (Closes #372) #373

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

szareiangm
Copy link
Contributor

@szareiangm szareiangm commented Jun 28, 2018

I tried to follow up with the first step for proposed plan in #371 .

There is no serious logic change. It is just moving codes around. Please support with your comments.

cc: @Nafid @zakipatel

@@ -78,7 +80,7 @@ case class AddColumn(
columnName: String,
columnType: DataType,
default: Option[Default],
encode: Option[CompressionEncoding],
encode: Option[ColumnAttribute],
Copy link
Contributor Author

@szareiangm szareiangm Jun 28, 2018

Choose a reason for hiding this comment

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

Because regular sql dbs do not have compression encoding, but may have other attributes.

@snowplowcla
Copy link

@szareiangm has signed the Software Grant and Corporate Contributor License Agreement

@szareiangm
Copy link
Contributor Author

@chuwy I changed the code to use upper bound inheritance to keep the Ddl consistent as per your suggestion in the issue discussion.

Does the code now similar to what you meant?
PS: The unit-tests are not working though and I have not done the final touch and clean up.

@szareiangm
Copy link
Contributor Author

@chuwy I was wondering if I could follow up on this PR. It has been a while?

@chuwy
Copy link
Contributor

chuwy commented Jul 11, 2018

Hey @szareiangm, sorry about that. Soon, I'll be backporting another SQL-like AST (BigQuery) to Schema DDL and it should give us some insights regarding sufficient volume of abstraction in these DDLs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants