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

Sql. Extend test coverage for numeric comparison with literal wider than numeric type

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.0.0-beta1
    • 3.0
    • sql

    Description

      Need to cover cases where literal or numeric value, used in predicate is wider than column\expression type. E.g:

      create table tiny(v TINYINT);
      insert into tiny values(127);
      SELECT * FROM tiny WHERE v < 300;
      SELECT * FROM tiny WHERE v NOT IN (300, 1000);
      

      Also seems sql with mixed exact numeric and approx literal predicates need to fail.

      create table tiny(v TINYINT);
      insert into tiny values(127);
      SELECT * FROM tiny WHERE v < '3.1'; <-- need to fail
      

      Attachments

        Issue Links

          Activity

            People

              zstan Evgeny Stanilovsky
              zstan Evgeny Stanilovsky
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1h 20m
                  1h 20m