hive-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sergey Shelukhin (JIRA)" <>
Subject [jira] [Commented] (HIVE-12703) CLI agnostic HQL import command implementation
Date Mon, 01 Feb 2016 21:48:40 GMT


Sergey Shelukhin commented on HIVE-12703:

Removing 2.0 from target versions as RC0 has been cut. Please -1 the RC, reinstate the version
and make this a blocker if that is not acceptable :)

> CLI agnostic HQL import command implementation
> ----------------------------------------------
>                 Key: HIVE-12703
>                 URL:
>             Project: Hive
>          Issue Type: New Feature
>          Components: Hive
>    Affects Versions: 2.0.0
>            Reporter: Elliot West
>            Assignee: Elliot West
>              Labels: hql
> _As an HQL developer_
> _I'd like a single command to import HQL script files, that works across all Hive CLIs
and shells_
> _So that I can compose larger scripts from smaller components irrespective of my Hive
execution environment._
> h3. Motivation
> Current Hive CLIs include commands that allow the user to effectively import and execute
HQL scripts from a file. The {{hive}} CLI provides the {{SOURCE}} command and {{beeline}}
provides the {{!run}} command. This allows HQL developers to decompose complex HQL processes
into multiple HQL scripts files. These can be individually executed or tested, and in the
case of {{MACROs}}, imported in a manner similar to a functionary library. These 'source'
commands allow HQL developers to compose these smaller modules purely in the domain of Hive
(i.e. no external shell such as {{bash}} is needed).
> However, this seems to be a feature of the individual CLIs and not part of the core HQL
language. Consequently this can lead to the development of Hive processes that are not portable
across different execution contexts, even for the same version of Hive.
> h3. Proposal
> The ability to compose and encapsulate logic is a fundamental building block of any scalable
language and therefore I believe that this functionality should be available in the core HQL
language and not just implemented in the CLIs. I propose that the {{SOURCE}} command be a
first class citizen of the HQL language and is available consistently in all execution contexts.
> h3. References
> * [{{SOURCE}} implementation in the {{hive}} CLI.|]
> * [{{SOURCE}} documentation.|]
> * [{{!run}} implementation in {{beeline}}.|]

This message was sent by Atlassian JIRA

View raw message