Clone
Ali Alsuliman <ali.al.solaiman@gmail.com>
committed
on 12 May
[ASTERIXDB-2726][EXT] Report line number instead of record number in messages of parsers
- user model changes: no
- storage format changes: … Show more
[ASTERIXDB-2726][EXT] Report line number instead of record number in messages of parsers

- user model changes: no

- storage format changes: no

- interface changes: yes

  IRecordReader:

     added getLineNumber() to provide line number for parsers and converters.

  IRecordConverter:

     added configure() to pass the line number supplier to the record converter.

  IRecordDataParser:

     pass line number supplier from the Reader to the Parser.

Details:

Report line number instead of record number in messages of parsers.

- added getPreviousStreamName() to allow readers to report errors happening on

  the previous stream when the underlying stream has already switched to a new one.

- changed the test executor to compare actual warnings issues by a test case with

  the expected warnigns properly.

Change-Id: I00508d8eeca4d9bae95f55ab51ecfb0ce2ced6b0

Reviewed-on: https://asterix-gerrit.ics.uci.edu/c/asterixdb/+/6245

Integration-Tests: Jenkins <jenkins@fulliautomatix.ics.uci.edu>

Tested-by: Jenkins <jenkins@fulliautomatix.ics.uci.edu>

Reviewed-by: Hussain Towaileb <hussainht@gmail.com>

Show less