ananas-analytics / ananas-desktop

A hackable data integration & analysis tool to enable non technical users to edit data processing jobs and visualise data on demand.
https://ananasanalytics.com
Apache License 2.0
580 stars 43 forks source link

Provide command in CLI to explore job data #96

Closed bhou closed 5 years ago

bhou commented 5 years ago
ananas result <job id> <... step id> -p [project path]

returns JSON

{
    "code": 200 | [error code]
    "data": {
        "step id 1" : [dataframe],
        "step id 2" : [dataframe],
        ...
    },
    "message": "error message, when code is not 200"
}
bhou commented 5 years ago
Usage: ananas view [-e=<profile>] -p=<project> [-q=<sql>] <jobId> <goal>
Explore data view result
      <jobId>               The job id
      <goal>                Id of the target step (VIEWER)
  -e, --profile=<profile>   Profile yaml file, includes execution engine, and
                              parameters (optional). By default, local Flink
                              engine, no parameter
  -p, --project=<project>   Ananas analytics project path
  -q, --query=<sql>         SQL query of the result