Uploaded image for project: 'Phoenix'
  1. Phoenix
  2. PHOENIX-2239

Honor strict option when catching data error during CSV load

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.6.0
    • Component/s: None
    • Labels:
      None

      Description

      The Phoenix CSV Bulk Loader has a strict option (i.e. -s or --strict) which is intended to abort the load if a data error is found. Looks like we're not passing this option through the errorOnRecord method, but I think that'd be a good (and likely pretty easy) improvement:

              @Override
              public void errorOnRecord(CSVRecord csvRecord, String errorMessage) {
                  LOG.error("Error upserting record {}: {}", csvRecord, errorMessage);
              }
      

        Attachments

        1. PHOENIX-2239b.patch
          10 kB
          Gabriel Reid
        2. PHOENIX-2239.patch
          8 kB
          Gabriel Reid

          Activity

            People

            • Assignee:
              gabriel.reid Gabriel Reid
              Reporter:
              jamestaylor James R. Taylor
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: