Uploaded image for project: 'CDAP'
  1. CDAP
  2. CDAP-8137

cdap cli won't pass commands correctly

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 4.0.0
    • Fix Version/s: 4.0.1
    • Component/s: CLI
    • Labels:
      None
    • Release Notes:
      Fixed an issue with the CDAP CLI where execute commands may be interpreted incorrectly.
    • Rank:
      1|hzzst3:

      Description

      The new cdap script invokes the CDAP CLI as

      $ cdap cli execute "\"select * from dataset_results where league='nfl' and season=2012 order by winnerpoints-loserpoints desc limit 3\""
      

      This example (from http://docs.cask.co/cdap/current/en/examples-manual/examples/sport-results.html#exploring-with-ad-hoc-sql ) worked with the previous cdap-cli.sh. It no longer works, and trips over the "*" after the select command.

      Attempts to by-pass this or to escape the symbol failed. It appears that the script is not correctly escaping and passing the command along.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                chris Chris Gianelloni
                Reporter:
                John John Jackson
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: