Uploaded image for project: 'Ignite'
  1. Ignite
  2. IGNITE-7236

SQL: create tests for optimized INSERT and MERGE operations

    XMLWordPrintableJSON

Details

    • Task
    • Status: Closed
    • Major
    • Resolution: Won't Fix
    • None
    • None
    • sql
    • None

    Description

      Important optimization IGNITE-4490 was added to the product. However, it lacks excessive tests coverage. We need to test the following scenarios:
      1) Various data types (especially dates)
      2) Single updates vs batched updates
      3) Constants and nulls (e.g. INSERT INTO ... VALUES (a, b))
      4) Parameters (e.g. INSERT INTO ... VALUES (?, ?))
      5) Multiple SQL statements at once (e.g. INSERT INTO ...; INSERT INTO ...)
      6) Insert multiple lines at once (INSERT INTO ... VALUES (a1, b1), (a2, b2))
      7) Insert multiple lines with parameters
      8) Invalid parameters count in different query types - need to make sure that we throw correct errors.

      All tests except of p.8 should check both correctness and the fact that query was executed without H2 involvement (e.g. using some code hack).

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              vozerov Vladimir Ozerov
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: