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

Honor strict option when catching data error during CSV load

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 4.6.0
    • None
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: