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

executing 'select *' from a dataset with many fields generates an error in the CLI

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 3.2.0, 3.1.1
    • Fix Version/s: None
    • Component/s: CLI
    • Labels:
      None
    • Rank:
      1|hzyyn3:

      Description

      create table with schema: "fields":[

      {"name":"id","type":"int"}

      ,

      {"name":"uid","type":"string"}

      ,

      {"name":"dn","type":"string"}

      ,

      {"name":"dc","type":"string"}

      ,

      {"name":"app","type":"string"}

      ,

      {"name":"cd","type":"int"}

      ,

      {"name":"cu","type":"string"}

      ,

      {"name":"dp","type":"int"}

      ,

      {"name":"do","type":"int"}

      ,

      {"name":"dd","type":"int"}

      ,

      {"name":"val","type":"string"}

      ,

      {"name":"ch","type":"boolean"}

      ,

      {"name":"npi","type":"string"}

      ,

      {"name":"tin","type":"string"}

      ,

      {"name":"spl","type":"string"}

      ,

      {"name":"pn","type":"string"}

      ,

      {"name":"sd","type":"int"}

      ,

      {"name":"ed","type":"int"}

      ,

      {"name":"hs","type":"string"}

      ,

      {"name":"lcd","type":"int"}

      ,

      {"name":"del","type":"boolean"}

      ,

      {"name":"mc","type":"boolean"}

      ,

      {"name":"mcc","type":"boolean"}

      ,

      {"name":"mu","type":"string"}

      ,

      {"name":"md","type":"string"}

      ,

      {"name":"mdo","type":"string"}

      ,

      {"name":"msc","type":"string"}

      ,

      {"name":"mpi","type":"string"}

      ,

      {"name":"mst","type":"string"}

      ,

      {"name":"mq","type":"string"}

      ,

      {"name":"mqu","type":"string"}

      ,

      {"name":"mr","type":"string"}

      ,

      {"name":"mdu","type":"string"}

      ,

      {"name":"mro","type":"string"}

      ,

      {"name":"ma","type":"string"}

      ,

      {"name":"mf","type":"string"}

      ,

      {"name":"mt","type":"string"}

      ,

      {"name":"mpmi","type":"string"}

      ,

      {"name":"cnm","type":"string"}

      ,

      {"name":"pri","type":"boolean"}

      ,

      {"name":"alg","type":"string"}

      ,

      {"name":"rd","type":"int"}

      ,

      {"name":"acr","type":"string"}

      ,

      {"name":"mdf","type":"string"}

      ,

      {"name":"pnl","type":"string"}

      ,

      {"name":"rds","type":"string"}

      ,

      {"name":"iaa","type":"string"}

      ,

      {"name":"iau","type":"string"}

      ,

      {"name":"ivn","type":"string"}

      ,

      {"name":"imf","type":"string"}

      ,

      {"name":"vc","type":"string"}

      ,

      {"name":"sc","type":"string"}

      ,

      {"name":"sid","type":"long"}

      ,

      {"name":"pam","type":"string"}

      ,

      {"name":"eam","type":"string"}

      ,

      {"name":"edt","type":"int"}

      ]}"

      cdap-cli> execute 'select * from dataset_patientTbl'
      Error: String index out of range: -1

      Each of the fields are individually selectable. Even large numbers of them at once, but get to a certain width of output and the Error pops up.

      Output should just wrap lines as MySql does.

        Attachments

          Activity

            People

            • Assignee:
              rsinha Rohit Sinha
              Reporter:
              dave Dave Finnegan (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: