Uploaded image for project: 'Calcite'
  1. Calcite
  2. CALCITE-6523

SUBSTRING via JDBC Adapter on Oracle Returns Unexpected Results

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Duplicate
    • None
    • None
    • core
    • None

    Description

      I tried to submit the SQL to Calcite as follows, Calcite's JDBC adapter converts the query to Oracle SQL, but the Oracle SQL returns results that do not match the function's expectations

      SELECT brand_name a ,substring(brand_name, 15, 1) b sub_brand FROM foodmart.product LIMIT 1

      Calcite expected result:

           a       |   b
      -------------+-------- 
       Washington  |

      Oracle Return Result:

           a       |   b 
      -------------+-------- 
       Washington  |  NULL

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              suibianwanwan33 suibianwanwan
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: