Code Monkey home page Code Monkey logo

Comments (8)

agilliland avatar agilliland commented on May 4, 2024

@salsakran do you have the original url you were looking at that this came from?

from metabase.

camsaul avatar camsaul commented on May 4, 2024

I think I already mentioned this in the e-mail, but of course it doesn't work. Look at the Query:

{
  "database": 7,
  "type": "query",
  "query": {
    "source_table": 269,
    "aggregation": [
      "rows"
    ],
    "breakout": [

    ],
    "filter": [
      "AND",
      [
        "=",
        2073,
        1
      ],
      [
        null,
        2075,
        null
      ]
    ]
  }
}

The stuff I merged into today should give a more useful error message but the fundamental problem here is that the user got a bad download link somehow. The fact that the bad link throws an error is expected behavior 👍

from metabase.

agilliland avatar agilliland commented on May 4, 2024

got it. i'm not sure i see what's wrong with the query though. is it because the breakout clause is empty?

from metabase.

camsaul avatar camsaul commented on May 4, 2024

No, the second filter subclause is seriously broken. There's no operator (= / != / etc) (pun intended) and the value is null too

from metabase.

camsaul avatar camsaul commented on May 4, 2024

The QX will remove empty clauses but throw an exception on invalid ones

from metabase.

agilliland avatar agilliland commented on May 4, 2024

sure. that makes sense. i'll close this as not a bug then. it's possible there is a frontend bug that is allowing queries to be run with half complete clauses, but we can file that separately.

from metabase.

salsakran avatar salsakran commented on May 4, 2024

This was a result of the Timestamp bug Tom fixed earlier this week.

The query builder would try produce broken query dictionaries, and the live
download link would result in that error dictionary.

I'd like to either reopen this bug or create another one to return a useful
error message instead of a json blob with a stack trace in the event of a
bad query dictionary (this goes for any link a user can click on the UI).
Even a 500 page would be better and would at least get logged. Not high
priority, but something to clean up when needing a break from bigger
hairier tasks.

On Thursday, July 9, 2015, Allen Gilliland [email protected] wrote:

Closed #561 #561.


Reply to this email directly or view it on GitHub
#561 (comment).

from metabase.

agilliland avatar agilliland commented on May 4, 2024

filed 2 separate issues to ensure this is fixed long term #569 and #570

from metabase.

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.