Uploaded image for project: 'Kite SDK (READ-ONLY)'
  1. Kite SDK (READ-ONLY)
  2. KITE-1078

Stricter View URI parsing especially for deletes

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Command-line Interface
    • Labels:
      None

      Description

      This is a companion JIRA to KITE-1077 but we hit a case where the someone entered a command like the following where they wanted to delete all the data with an attribute of which the dataset is partitioned.

      So they would typically enter a command like

      kite-dataset delete view:hdfs:/path/namespace/datasetname?attribute=value
      

      However due to copy/paste issue or typing they enter the following (notice the extra pipe):

      kite-dataset delete view:hdfs:/some/namespace/datasetname?attribute=|value
      

      What this does is the delete command gets the URI "view:hdfs:/some/namespace/datasetname?attribute=". It then starts to delete all of the data in that dataset while on the command prompt is sees that "value" is not a valid command. It would be less surprising if the parsing logic blew up with an invalid URI or this got interpreted as delete nothing because nothing matches.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              mkwhitacre Micah Whitacre
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: