Uploaded image for project: 'Zeppelin'
  1. Zeppelin
  2. ZEPPELIN-4556

Can't use hive variable substitution due to dynamic forms

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.8.0, 0.8.1, 0.8.2
    • 0.9.0
    • None

    Description

      %hive
      set tempvar.min_date="2019-01-01";
      select ${hiveconf:tempvar.min_date}
      

      "java.lang.RuntimeException: Could not recognize dynamic form with type: hiveconf"

      I tried escaping the curly braces with no luck:

      %hive
      set tempvar.min_date="2019-01-01";
      select $\{hiveconf:tempvar.min_date\}
      

      "org.apache.hive.service.cli.HiveSQLException: Error while compiling statement: FAILED: ParseException line 1:7 cannot recognize input near '$' '{' 'hiveconf' in select clause"

      Attachments

        Issue Links

          Activity

            People

              zjffdu Jeff Zhang
              tuhren Thomas Uhren
              Votes:
              0 Vote for this issue
              Watchers:
              2 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 - 20m
                  20m