Giter Site home page Giter Site logo

Comments (3)

pomadchin avatar pomadchin commented on September 22, 2024 1

Hey there; indeed in RecordEncoder those are not required. However these implicits are necessary for the TypedEncoder.usingDerivation function.

I don't think that these are bad here, at least work as a sanity check for us. But any improvement PRs are very much welcome.

Didn't quite follow a part about the shapeless.Record and two stages; usually the idea is to hide shapeless inside and not let it leak into the user API. But shoot a PR I'd be happy to help you to get it merged 👍

from frameless.

tribbloid avatar tribbloid commented on September 22, 2024 1

it is only an experiment, will need some serious clean up (particularly the scalafmt part) and API revision before it becomes a feature.

Ideally, I would like to see schema-changing transformation like withColumnReplaced and withColumn yielding a:

TypedDataFrame = TypedDataSet[TypedRow[H]], which preserve both generics & labels of the source case class.

Instead of the old:

TypedDataSet[TupleX], which degrade all columns name into _1, _2, etc.

from frameless.

tribbloid avatar tribbloid commented on September 22, 2024

@pomadchin voila, adding an experimental PR that adopts 2-stage RecordEncoder derivation.

The 1st stage is now also used for TypedRow[T <: HList], which can be seen as a successor of the abandoned TypedDataFrame. See the new test for an example usage:

0baf604#diff-dd83f3b1d1a249804b5620473177ce6034efbc5f36b45a9b1ef01283cafd50f9R93

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.