Feature: CSV import
  In order to optimize read-performance of a CSV file
  As a user
  I want to import a CSV file into a P-Store database

  Scenario: Uncompressed import
  Given a 32K long CSV file
  When I run "pstore import"
  Then the database should contain the same data in column order

  Scenario: FastLZ compressed import
  Given a 32K long CSV file
  When I run "pstore import --compress=fastlz"
  Then the database should contain the same data in column order

  Scenario: Uncompressed append
  Given a 2K long CSV file
  And a 4K long database
  When I run "pstore import --append"
  Then the database should contain the same data in column order

Feature: CSV import
  In order to optimize read-performance of a CSV file
  As a user
  I want to import a CSV file into a P-Store database

  Scenario: Uncompressed import
  Given a 32K long CSV file
  When I run "pstore import"
  Then the database should contain the same data in column order

  Scenario: FastLZ compressed import
  Given a 32K long CSV file
  When I run "pstore import --compress=fastlz"
  Then the database should contain the same data in column order

  Scenario: Uncompressed append
  Given a 2K long CSV file
  And a 4K long database
  When I run "pstore import --append"
  Then the database should contain the same data in column order

  Scenario: Significantly smaller window length than file size
  Given a 32K long CSV file
  When I run "pstore import --window-len=1K"
  Then the database should contain the same data in column order

Add scenario for small window length
features: Add scenario for small window length

When implementing builtin-export, it was noticed that a 1 GiB CSV
file is not correctly imported and that the problem appears to be
related to mmap() window handling.

This scenario exposes the failure with a 32 KiB CSV file by
setting the mmap() window length to minimum.

Signed-off-by: Jussi Virtanen <688853f2098600ecc93a73ab459c4906661052bb@reaktor.fi>
Signed-off-by: Pekka Enberg <add4fcd06328a394f0ad91feda7ee057316dc5ed@kernel.org>
