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

Calcite. Lost precision of dynamic parameters

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.14
    • 2.17
    • None
    • SQL Calcite: Fixed lost precisions of dynamic query parameters
    • Release Notes Required

    Description

      Reproducer:

      @Test
          public void test() {
             //Exprected 'ab'
              assertQuery("SELECT CAST(? AS VARCHAR(2))").withParams("abcd").returns("ab").check();
          }
      
      @Test
          public void test0(){
              // A conversion error is expected.
              assertQuery("SELECT CAST(? AS DECIMAL(2))").withParams(new BigDecimal("123")).check();
          }
      

      Adoption of #IGNITE-19353

      Attachments

        Issue Links

          Activity

            People

              vladsz83 Vladimir Steshin
              vladsz83 Vladimir Steshin
              Votes:
              0 Vote for this issue
              Watchers:
              3 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 10m
                  1h 10m