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

Allow == for Option[T] and/or T columns #1437

Merged
merged 1 commit into from
May 22, 2019
Merged

Allow == for Option[T] and/or T columns #1437

merged 1 commit into from
May 22, 2019

Conversation

deusaquilus
Copy link
Collaborator

@deusaquilus deusaquilus commented May 21, 2019

Doing a.exists(av => b.exists(bv => a ==b)) everywhere is really, really annoying. We disallowed doing == when one side was optional because we were concerned that databases would treat them differently but after the learnings of #1053 and #1295 I am significantly more confident that we are doing the right thing across different kinds of databases. Many databases in the BI world have nearly every column being nullable. It is time to improve the developer ergonomics in this matter.

  • Unit test all changes
  • Update README.md if applicable
  • Add [WIP] to the pull request title if it's work in progress
  • Squash commits that aren't meaningful changes
  • Run sbt scalariformFormat test:scalariformFormat to make sure that the source files are formatted

@getquill/maintainers

@deusaquilus deusaquilus changed the title [WIP] Allow == across optionals Allow == for Option[T] and/or T columns May 22, 2019
@deusaquilus deusaquilus merged commit 1d57e6d into master May 22, 2019
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.

1 participant