Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for errCSVParsingError (0.07 sec)

  1. internal/s3select/csv/reader.go

    			return errInvalidTextEncodingError()
    		}
    		reader := newReader(bytes.NewReader(b))
    		record, err := reader.Read()
    		if err != nil {
    			r.err = err
    			if err != io.EOF {
    				r.err = errCSVParsingError(err)
    				return errCSVParsingError(err)
    			}
    			return err
    		}
    
    		if r.args.FileHeaderInfo == use {
    			// Copy column names since records will be reused.
    			columns := append(make([]string, 0, len(record)), record...)
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Feb 22 06:26:06 UTC 2024
    - 8.9K bytes
    - Viewed (0)
  2. internal/s3select/csv/errors.go

    	return err.message
    }
    
    func (err *s3Error) HTTPStatusCode() int {
    	return err.statusCode
    }
    
    func (err *s3Error) Error() string {
    	return err.message
    }
    
    func errCSVParsingError(err error) *s3Error {
    	return &s3Error{
    		code:       "CSVParsingError",
    		message:    "Encountered an error parsing the CSV file. Check the file and try again.",
    		statusCode: 400,
    		cause:      err,
    	}
    }
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Jun 01 21:59:40 UTC 2021
    - 1.6K bytes
    - Viewed (0)
Back to top