Code Monkey home page Code Monkey logo

spark-sql-macros's People

Contributors

hbutani avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

spark-sql-macros's Issues

warning: Not able to translate Value definition: 'val i: scala.Int = _}'

Great stuff, and thanks for sharing! This could greatly improve Spark UDF performance.

I just started to give a try, but run into the following warning. This warning, of course, failed the translation, thus there is no filter pushdown "PushedFilters: []":
scala> spark.registerMacro("intUDM", spark.udm((i: Int) => { | val j = 2 | i + j | })) <console>:27: warning: Not able to translate Value definition: 'val i: scala.Int = _}' spark.registerMacro("intUDM", spark.udm((i: Int) => { ^ scala>
I am using Spark 3.1.1 and Scala 2.12.10, not sure if these versions are okay.

Your help is highly appreciated!

-Yong

Is this ready for experimental use?

I went through the docs and some of the source, and that was a fascinating edifying read; obviously having first-class UDFs would open up all kinds of new development opportunities with Spark, so this is potentially very exciting(!)

I'd love to give it a go for am ancillary job to see for myself, but don't quite have the time to really delve into the gory details of a brand new library. I didn't see much setup instructions in the wiki, and I'd be glad to be corrected, I was just wondering if I should hold off as you're still adding some documentation or if it should be pretty straightforward to work with in its current state.

Would love to loop back to this and help with said documentation/debugging, just not right at this moment. Cool stuff nonetheless, and I'll be sure to follow it.

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.