Skip to content

Conversation

@sabhyankar
Copy link

Add support for NOT NULL modifier for column definitions in DDLParser

@sabhyankar
Copy link
Author

@smola I have created this PR for SPARK-7012

@AmplabJenkins
Copy link

Can one of the admins verify this patch?

@smola
Copy link
Contributor

smola commented Oct 1, 2015

@sabhyankar Great! The implementation looks good. Could you add a test case for it?

@sabhyankar
Copy link
Author

@smola Thanks for the review. I will add a test case for it and push another commit today.

@sabhyankar
Copy link
Author

@smola I have added a test case for this. Let me know if you see anything else that needs to be changed or added.

Copy link
Contributor

Choose a reason for hiding this comment

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

you can use withTempPath for this test. example

Copy link
Author

Choose a reason for hiding this comment

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

Thanks @cloud-fan ! This makes it much cleaner. I have made the change in the latest commit.

@sabhyankar
Copy link
Author

@smola @cloud-fan Thanks again for the review guys. I have made the additional changes that were noted.

Copy link
Contributor

Choose a reason for hiding this comment

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

nit: !xxx.isDefined == xxx.isEmpty

@cloud-fan
Copy link
Contributor

LGTM

@sabhyankar
Copy link
Author

Thanks again @cloud-fan I have pushed a new commit with the updates!

@sabhyankar
Copy link
Author

Hi @smola - Is there anything else that you need me to check for this PR?

Copy link
Contributor

Choose a reason for hiding this comment

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

improve this test case to make sure we really make that column not nullable, i.e. read the table out and check its schema.

Copy link
Contributor

Choose a reason for hiding this comment

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

@sabhyankar Do you have time to modify this? I think that once the test is improved with @cloud-fan comment, the change is probably good to merge.

Copy link
Author

Choose a reason for hiding this comment

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

Hi @smola @cloud-fan - I will take a look at the test case this week and update you guys

@yhuai
Copy link
Contributor

yhuai commented Nov 18, 2015

I am not sure if we should do it now because it is still possible to have nulls in a column defined as NOT NULL.

@yhuai
Copy link
Contributor

yhuai commented Jan 13, 2016

How about we close this PR for now and revisit it later?

@asfgit asfgit closed this in 085f510 Feb 4, 2016
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.

5 participants