Uploaded image for project: 'IMPALA'
  1. IMPALA
  2. IMPALA-5922

Scanners should include file and offset information in errors

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • Impala 2.11.0
    • None
    • Backend
    • None
    • ghx-label-4

    Description

      Currently we have to print the location of a parse error in BaseSequenceScanner::GetNextInternal():

      state_->LogError(ErrorMsg(TErrorCode::SEQUENCE_SCANNER_PARSE_ERROR, 
          stream_->filename(), stream_->file_offset(),                    
          (stream_->eof() ? "(EOF)" : "")));                              
      

      Instead, the scanners should include this information when constructing the error, which will allow us to simplify the error handling in the base class.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              lv Lars Volker
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated: