Giter Site home page Giter Site logo

Comments (5)

kanterov avatar kanterov commented on May 24, 2024

Hm.. does it work in vanilla Spark?

from frameless.

imarios avatar imarios commented on May 24, 2024

Column to column works even in us ... column to literal seems to have the issue.

scala> case class Foo(a: Vector[Int], b: Vector[Int])
defined class Foo

scala> val d = TypedDataset.create( Foo(Vector(), Vector(1)) :: Foo(Vector(2,3), Vector(2,3)) :: Nil )
d: frameless.TypedDataset[Foo] = [a: array<int>, b: array<int>]

scala> d.show().run
+------+------+
|     a|     b|
+------+------+
|    []|   [1]|
|[2, 3]|[2, 3]|
+------+------+


scala> d.filter( d('a) === d('b) )
res17: frameless.TypedDataset[Foo] = [a: array<int>, b: array<int>]

scala> d.filter( d('a) === d('b) ).show().run
+------+------+
|     a|     b|
+------+------+
|[2, 3]|[2, 3]|
+------+------+


scala> d.filter( d('a) =!= d('b) ).show().run
+---+---+
|  a|  b|
+---+---+
| []|[1]|
+---+---+

from frameless.

imarios avatar imarios commented on May 24, 2024

ha, accidental click on close :)

from frameless.

imarios avatar imarios commented on May 24, 2024

This seems to have been resolved with #152.

from frameless.

sullivan- avatar sullivan- commented on May 24, 2024

@imarios if this is fixed perhaps we could uncomment this line:
https://github.com/typelevel/frameless/blob/master/dataset/src/test/scala/frameless/FilterTests.scala#L38
also lines 58 & 77 same file.

I would just uncomment and submit PR but the "fails randomly" part makes me cautious 😀 . I could try it and run the test a few times to see if it's good. Do you have a sense of how many runs would be needed to confirm fix?

from frameless.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.