Uploaded image for project: 'Tajo (Retired)'
  1. Tajo (Retired)
  2. TAJO-758

Supports parameter values in the SQL file.

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Trivial
    • Resolution: Fixed
    • None
    • 0.9.0
    • None
    • None

    Description

      In the case of running a SQL file in CLI mode, should be able to pass as a parameter value. See bellow use case.

      test.sql

      select * from lineitem where l_tax > ${tax} and l_discount > ${discount}
      
      bin/tsql -f ./test.sql --param tax=10 --param discount=20
      

      Attachments

        1. TAJO-758.patch
          6 kB
          Hyoungjun Kim
        2. TAJO-758_2.patch
          7 kB
          Hyoungjun Kim

        Activity

          People

            hjkim Hyoungjun Kim
            hjkim Hyoungjun Kim
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: