Code Monkey home page Code Monkey logo

Comments (7)

dhalperi avatar dhalperi commented on August 10, 2024

FYI @7andrew7

from myria-web.

domoritz avatar domoritz commented on August 10, 2024

Why not just write the case statement? It is not much longer and more readable. IMHO.

from myria-web.

dhalperi avatar dhalperi commented on August 10, 2024

Our experiences with SQLShare have taught us that these language extensions
can be very useful for science users, when applied reasonably.

The CASE WHEN statement is definitely a less readable and more complex
construct. And it's even worse when you're applying the same logic in
parallel across n columns...


Daniel Halperin
Director of Research for Scalable Analytics
eScience Institute
University of Washington

On Thu, Mar 6, 2014 at 4:50 PM, Dominik Moritz [email protected]:

Why not just write the case statement? It is not much longer and more
readable. IMHO.

Reply to this email directly or view it on GitHubhttps://github.com//issues/44#issuecomment-36956616
.

from myria-web.

domoritz avatar domoritz commented on August 10, 2024

Okay, I'm working on this.

from myria-web.

7andrew7 avatar 7andrew7 commented on August 10, 2024

Dan and I observed that Myrial functions can express this. Optional arguments are not supported, so we might need different flavors for this.

from myria-web.

domoritz avatar domoritz commented on August 10, 2024

Yes, I am currently working on a way to add a library of such functions that can be composed of expressions. If you are around, we could have a 5min chat about this.

from myria-web.

7andrew7 avatar 7andrew7 commented on August 10, 2024
DEF SaveDiv(n, d):
   CASE WHEN d == 0 THEN 0 ELSE n / d END

from myria-web.

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.