Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JIRA : USER-2015 #55

Open
wants to merge 3,501 commits into
base: develop
Choose a base branch
from
Open

JIRA : USER-2015 #55

wants to merge 3,501 commits into from

Conversation

tintin2010
Copy link

  • Adding Domain clause to GRILL/LENS grammar as an entry point to "User DSL"

    modified: ql/src/java/org/apache/hadoop/hive/ql/parse/HiveLexer.g
    modified: ql/src/java/org/apache/hadoop/hive/ql/parse/HiveParser.g

Amareshwari and others added 30 commits April 23, 2014 16:22
Add brackets around order by columns
Fix target dimensions in case of automatic join resolution
Fix partition push down for RIGHT/FULL outer joins
Add current database name as prefix in cube rewriter
Preserve user specified join type
Cache join clause in join resolver
Amareshwari and others added 18 commits October 9, 2014 14:58
Fix NPE in CandidateFactResolver when column name is same as alias name
Accept queries spanning multiple facts with common dimensions
- Adding Domain clause to GRILL/LENS grammar as an entry point to "User DSL"

	modified:   ql/src/java/org/apache/hadoop/hive/ql/parse/HiveLexer.g
	modified:   ql/src/java/org/apache/hadoop/hive/ql/parse/HiveParser.g
@sumashivaprasad
Copy link
Contributor

Pls add a UT for this like we discussed..Before that pls discuss with @Amareshwari if they are planning to migrate the grammar soon?

@sharadag
Copy link

sharadag commented Nov 3, 2014

User related DSL shouldn't be part of the Hive repo. Very soon we will get
away with the our forked Hive repo and will start depending on the external
Hive releases.

On Mon, Nov 3, 2014 at 11:05 AM, Suma S [email protected] wrote:

Pls add a UT for this like we discussed..Before that pls discuss with
@Amareshwari https://github.com/Amareshwari if they are planning to
migrate the grammar soon?


Reply to this email directly or view it on GitHub
#55 (comment).

@sumashivaprasad
Copy link
Contributor

Hi Sharad,

This pull request is to add a

DOMAIN clause to the grammar similiar to CUBE clause and this doesnt
include any USER DSL specific changes.

For GRILL to differentiate between a normal Hive query and a DSL query ,
the proposal is to support DSL in the form

DOMAIN SELECT.........

Since the grammar hasnt been ported to GRILL yet, we have raised the pull
request here.

Thanks
Suma

On Mon, Nov 3, 2014 at 11:31 AM, sharadag [email protected] wrote:

User related DSL shouldn't be part of the Hive repo. Very soon we will get
away with the our forked Hive repo and will start depending on the
external
Hive releases.

On Mon, Nov 3, 2014 at 11:05 AM, Suma S [email protected] wrote:

Pls add a UT for this like we discussed..Before that pls discuss with
@Amareshwari https://github.com/Amareshwari if they are planning to
migrate the grammar soon?


Reply to this email directly or view it on GitHub
#55 (comment).


Reply to this email directly or view it on GitHub
#55 (comment).


The information contained in this communication is intended solely for the
use of the individual or entity to whom it is addressed and others
authorized to receive it. It may contain confidential or legally privileged
information. If you are not the intended recipient you are hereby notified
that any disclosure, copying, distribution or taking any action in reliance
on the contents of this information is strictly prohibited and may be
unlawful. If you have received this communication in error, please notify
us immediately by responding to this email and then delete it from your
system. The firm is neither liable for the proper and complete transmission
of the information contained in this communication nor for any delay in its
receipt.

@sumashivaprasad
Copy link
Contributor

+Sharad

On Mon, Nov 3, 2014 at 12:15 PM, Suma Shivaprasad <
[email protected]> wrote:

Hi Sharad,

This pull request is to add a

DOMAIN clause to the grammar similiar to CUBE clause and this doesnt
include any USER DSL specific changes.

For GRILL to differentiate between a normal Hive query and a DSL query ,
the proposal is to support DSL in the form

DOMAIN SELECT.........

Since the grammar hasnt been ported to GRILL yet, we have raised the pull
request here.

Thanks
Suma

On Mon, Nov 3, 2014 at 11:31 AM, sharadag [email protected]
wrote:

User related DSL shouldn't be part of the Hive repo. Very soon we will
get
away with the our forked Hive repo and will start depending on the
external
Hive releases.

On Mon, Nov 3, 2014 at 11:05 AM, Suma S [email protected]
wrote:

Pls add a UT for this like we discussed..Before that pls discuss with
@Amareshwari https://github.com/Amareshwari if they are planning to
migrate the grammar soon?


Reply to this email directly or view it on GitHub
#55 (comment).


Reply to this email directly or view it on GitHub
#55 (comment).


The information contained in this communication is intended solely for the
use of the individual or entity to whom it is addressed and others
authorized to receive it. It may contain confidential or legally privileged
information. If you are not the intended recipient you are hereby notified
that any disclosure, copying, distribution or taking any action in reliance
on the contents of this information is strictly prohibited and may be
unlawful. If you have received this communication in error, please notify
us immediately by responding to this email and then delete it from your
system. The firm is neither liable for the proper and complete transmission
of the information contained in this communication nor for any delay in its
receipt.

@tintin2010
Copy link
Author

@sumashivaprasad : As discussed raising a pull request for the UnitTest in GRILL codebase.

@ghost
Copy link

ghost commented Nov 3, 2014

Are there changes in analyzers? Are you adding your own analyzer as part of domain?

Also on a side note, Please don't include InMobi JIRA issue numbers in the pull request, instead its better to copy description from the JIRA to the description of pull request.

@sumashivaprasad
Copy link
Contributor

Each DSL will be parsed and rewritten through a DSL implementation . Please refer InMobi/grill#121 for more details .Grill will hand over the rewrite once it detects its a DSL. Here DSLCommand/DSLCommandImpl is the class which does this.

@ghost
Copy link

ghost commented Nov 4, 2014

+1 for the code change
Have you run any hive tests for this?

@tintin2010
Copy link
Author

@jdhok the unittest will be added to grill but we have run the following tests on the grammar https://github.corp.inmobi.com/user/domain-systems/blob/analytics/querylayer/grammar/src/test/java/org/apache/hadoop/hive/ql/parse/UserQLDriverTest.java

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants