Unexpected null equality
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 30/100
Research direction
Start in dataset/src/test/scala/frameless/FilterTests.scala at lines 132-133 and inspect the existing filter and equality tests. Trace the behavior under test and compare it with the SQL NULL semantics described in the issue; done means the tests and implementation agree on the intended null equality behavior.
Written by the indexing model from the issue text.
Description
In SQL
SELECT NULL = NULL;
results in NULL, which is a falsy value when used in WHERE, so eg.
SELECT 1 WHERE NULL = NULL
returns an empty table.
However in Scala, both null == null and None == None are true.
Consequently these two lines should not pass.
- Dominant language
- Scala
- Stars
- 895
- Forks
- 135
- Avg merge
- 1d 16h
- Merged PRs (30d)
- 3
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from typelevel/frameless
-
Scala 3 builds Openenhancement feature help wanted
Difficulty 4/5 3-5 days Newbie friendliness 35/100
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
-
enhancement feature
Difficulty 5/5 Over a week Newbie friendliness 25/100
-
Difficulty 5/5 Over a week Newbie friendliness 30/100
All issues in typelevel/frameless
Similar issues
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
typelevel/sbt-typelevel#929 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 85/100
apache/pekko-projection#635 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
-
Area: Excel support
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
orbeon/orbeon-forms#7893 ·
-
x:action/fix x:module/practice-exercise x:size/small
Difficulty 2/5 1-3 hours Newbie friendliness 75/100