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

Supports parameter values in the SQL file.

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.9.0
    • Component/s: None
    • Labels:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: