Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-14343

HiveDriverRunHookContext's command is null in HS2 mode

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.2.0
    • Fix Version/s: 2.3.0
    • Component/s: Query Processor
    • Labels:
      None

      Description

      Looking at the Driver#runInternal(String command, boolean alreadyCompiled):

          HiveDriverRunHookContext hookContext = new HiveDriverRunHookContextImpl(conf, command);
          // Get all the driver run hooks and pre-execute them.
          List<HiveDriverRunHook> driverRunHooks;
      

      The context is initialized with the command passed in to the method. However, this command is always null if alreadyCompiled is true, which is the case for HS2 mode.

        Attachments

        1. HIVE-14343.1.patch
          0.7 kB
          Chao Sun
        2. HIVE-14343.0.patch
          0.7 kB
          Chao Sun

          Activity

            People

            • Assignee:
              csun Chao Sun
              Reporter:
              csun Chao Sun
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: