[jira] [Updated] (HIVE-21537) Scalar query rewrite could be improved to not generate an extra join if subquery is guaranteed to produce atmost one row

2019-04-01 Thread Vineet Garg (JIRA)


 [ 
https://issues.apache.org/jira/browse/HIVE-21537?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Vineet Garg updated HIVE-21537:
---
   Resolution: Fixed
Fix Version/s: 4.0.0
   Status: Resolved  (was: Patch Available)

Pushed to master. Thanks [~jcamachorodriguez]

> Scalar query rewrite could be improved to not generate an extra join if 
> subquery is guaranteed to produce atmost one row
> 
>
> Key: HIVE-21537
> URL: https://issues.apache.org/jira/browse/HIVE-21537
> Project: Hive
>  Issue Type: Improvement
>  Components: Query Planning
>Affects Versions: 4.0.0
>Reporter: Vineet Garg
>Assignee: Vineet Garg
>Priority: Major
>  Labels: sub-query
> Fix For: 4.0.0
>
> Attachments: HIVE-21537.1.patch, HIVE-21537.2.patch, 
> HIVE-21537.3.patch, HIVE-21537.4.patch, HIVE-21537.5.patch
>
>
> Currently Hive planner introduces this branch and later executes a rule to 
> remove this branch if it could. 
> Subquery remove rule itself could check if subquery will produce max one row 
> (using relmetadat's getMaxRowCount) and avoid introducing this branch.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Updated] (HIVE-21537) Scalar query rewrite could be improved to not generate an extra join if subquery is guaranteed to produce atmost one row

2019-04-01 Thread Vineet Garg (JIRA)


 [ 
https://issues.apache.org/jira/browse/HIVE-21537?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Vineet Garg updated HIVE-21537:
---
Status: Open  (was: Patch Available)

> Scalar query rewrite could be improved to not generate an extra join if 
> subquery is guaranteed to produce atmost one row
> 
>
> Key: HIVE-21537
> URL: https://issues.apache.org/jira/browse/HIVE-21537
> Project: Hive
>  Issue Type: Improvement
>  Components: Query Planning
>Affects Versions: 4.0.0
>Reporter: Vineet Garg
>Assignee: Vineet Garg
>Priority: Major
>  Labels: sub-query
> Attachments: HIVE-21537.1.patch, HIVE-21537.2.patch, 
> HIVE-21537.3.patch, HIVE-21537.4.patch, HIVE-21537.5.patch
>
>
> Currently Hive planner introduces this branch and later executes a rule to 
> remove this branch if it could. 
> Subquery remove rule itself could check if subquery will produce max one row 
> (using relmetadat's getMaxRowCount) and avoid introducing this branch.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Updated] (HIVE-21537) Scalar query rewrite could be improved to not generate an extra join if subquery is guaranteed to produce atmost one row

2019-04-01 Thread Vineet Garg (JIRA)


 [ 
https://issues.apache.org/jira/browse/HIVE-21537?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Vineet Garg updated HIVE-21537:
---
Attachment: HIVE-21537.5.patch

> Scalar query rewrite could be improved to not generate an extra join if 
> subquery is guaranteed to produce atmost one row
> 
>
> Key: HIVE-21537
> URL: https://issues.apache.org/jira/browse/HIVE-21537
> Project: Hive
>  Issue Type: Improvement
>  Components: Query Planning
>Affects Versions: 4.0.0
>Reporter: Vineet Garg
>Assignee: Vineet Garg
>Priority: Major
>  Labels: sub-query
> Attachments: HIVE-21537.1.patch, HIVE-21537.2.patch, 
> HIVE-21537.3.patch, HIVE-21537.4.patch, HIVE-21537.5.patch
>
>
> Currently Hive planner introduces this branch and later executes a rule to 
> remove this branch if it could. 
> Subquery remove rule itself could check if subquery will produce max one row 
> (using relmetadat's getMaxRowCount) and avoid introducing this branch.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Updated] (HIVE-21537) Scalar query rewrite could be improved to not generate an extra join if subquery is guaranteed to produce atmost one row

2019-04-01 Thread Vineet Garg (JIRA)


 [ 
https://issues.apache.org/jira/browse/HIVE-21537?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Vineet Garg updated HIVE-21537:
---
Status: Patch Available  (was: Open)

> Scalar query rewrite could be improved to not generate an extra join if 
> subquery is guaranteed to produce atmost one row
> 
>
> Key: HIVE-21537
> URL: https://issues.apache.org/jira/browse/HIVE-21537
> Project: Hive
>  Issue Type: Improvement
>  Components: Query Planning
>Affects Versions: 4.0.0
>Reporter: Vineet Garg
>Assignee: Vineet Garg
>Priority: Major
>  Labels: sub-query
> Attachments: HIVE-21537.1.patch, HIVE-21537.2.patch, 
> HIVE-21537.3.patch, HIVE-21537.4.patch, HIVE-21537.5.patch
>
>
> Currently Hive planner introduces this branch and later executes a rule to 
> remove this branch if it could. 
> Subquery remove rule itself could check if subquery will produce max one row 
> (using relmetadat's getMaxRowCount) and avoid introducing this branch.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Updated] (HIVE-21537) Scalar query rewrite could be improved to not generate an extra join if subquery is guaranteed to produce atmost one row

2019-03-31 Thread Vineet Garg (JIRA)


 [ 
https://issues.apache.org/jira/browse/HIVE-21537?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Vineet Garg updated HIVE-21537:
---
Status: Open  (was: Patch Available)

> Scalar query rewrite could be improved to not generate an extra join if 
> subquery is guaranteed to produce atmost one row
> 
>
> Key: HIVE-21537
> URL: https://issues.apache.org/jira/browse/HIVE-21537
> Project: Hive
>  Issue Type: Improvement
>  Components: Query Planning
>Affects Versions: 4.0.0
>Reporter: Vineet Garg
>Assignee: Vineet Garg
>Priority: Major
>  Labels: sub-query
> Attachments: HIVE-21537.1.patch, HIVE-21537.2.patch, 
> HIVE-21537.3.patch, HIVE-21537.4.patch
>
>
> Currently Hive planner introduces this branch and later executes a rule to 
> remove this branch if it could. 
> Subquery remove rule itself could check if subquery will produce max one row 
> (using relmetadat's getMaxRowCount) and avoid introducing this branch.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Updated] (HIVE-21537) Scalar query rewrite could be improved to not generate an extra join if subquery is guaranteed to produce atmost one row

2019-03-31 Thread Vineet Garg (JIRA)


 [ 
https://issues.apache.org/jira/browse/HIVE-21537?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Vineet Garg updated HIVE-21537:
---
Status: Patch Available  (was: Open)

> Scalar query rewrite could be improved to not generate an extra join if 
> subquery is guaranteed to produce atmost one row
> 
>
> Key: HIVE-21537
> URL: https://issues.apache.org/jira/browse/HIVE-21537
> Project: Hive
>  Issue Type: Improvement
>  Components: Query Planning
>Affects Versions: 4.0.0
>Reporter: Vineet Garg
>Assignee: Vineet Garg
>Priority: Major
>  Labels: sub-query
> Attachments: HIVE-21537.1.patch, HIVE-21537.2.patch, 
> HIVE-21537.3.patch, HIVE-21537.4.patch
>
>
> Currently Hive planner introduces this branch and later executes a rule to 
> remove this branch if it could. 
> Subquery remove rule itself could check if subquery will produce max one row 
> (using relmetadat's getMaxRowCount) and avoid introducing this branch.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Updated] (HIVE-21537) Scalar query rewrite could be improved to not generate an extra join if subquery is guaranteed to produce atmost one row

2019-03-31 Thread Vineet Garg (JIRA)


 [ 
https://issues.apache.org/jira/browse/HIVE-21537?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Vineet Garg updated HIVE-21537:
---
Attachment: HIVE-21537.4.patch

> Scalar query rewrite could be improved to not generate an extra join if 
> subquery is guaranteed to produce atmost one row
> 
>
> Key: HIVE-21537
> URL: https://issues.apache.org/jira/browse/HIVE-21537
> Project: Hive
>  Issue Type: Improvement
>  Components: Query Planning
>Affects Versions: 4.0.0
>Reporter: Vineet Garg
>Assignee: Vineet Garg
>Priority: Major
>  Labels: sub-query
> Attachments: HIVE-21537.1.patch, HIVE-21537.2.patch, 
> HIVE-21537.3.patch, HIVE-21537.4.patch
>
>
> Currently Hive planner introduces this branch and later executes a rule to 
> remove this branch if it could. 
> Subquery remove rule itself could check if subquery will produce max one row 
> (using relmetadat's getMaxRowCount) and avoid introducing this branch.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Updated] (HIVE-21537) Scalar query rewrite could be improved to not generate an extra join if subquery is guaranteed to produce atmost one row

2019-03-29 Thread Vineet Garg (JIRA)


 [ 
https://issues.apache.org/jira/browse/HIVE-21537?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Vineet Garg updated HIVE-21537:
---
Attachment: HIVE-21537.3.patch

> Scalar query rewrite could be improved to not generate an extra join if 
> subquery is guaranteed to produce atmost one row
> 
>
> Key: HIVE-21537
> URL: https://issues.apache.org/jira/browse/HIVE-21537
> Project: Hive
>  Issue Type: Improvement
>  Components: Query Planning
>Affects Versions: 4.0.0
>Reporter: Vineet Garg
>Assignee: Vineet Garg
>Priority: Major
>  Labels: sub-query
> Attachments: HIVE-21537.1.patch, HIVE-21537.2.patch, 
> HIVE-21537.3.patch
>
>
> Currently Hive planner introduces this branch and later executes a rule to 
> remove this branch if it could. 
> Subquery remove rule itself could check if subquery will produce max one row 
> (using relmetadat's getMaxRowCount) and avoid introducing this branch.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Updated] (HIVE-21537) Scalar query rewrite could be improved to not generate an extra join if subquery is guaranteed to produce atmost one row

2019-03-29 Thread Vineet Garg (JIRA)


 [ 
https://issues.apache.org/jira/browse/HIVE-21537?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Vineet Garg updated HIVE-21537:
---
Status: Open  (was: Patch Available)

> Scalar query rewrite could be improved to not generate an extra join if 
> subquery is guaranteed to produce atmost one row
> 
>
> Key: HIVE-21537
> URL: https://issues.apache.org/jira/browse/HIVE-21537
> Project: Hive
>  Issue Type: Improvement
>  Components: Query Planning
>Affects Versions: 4.0.0
>Reporter: Vineet Garg
>Assignee: Vineet Garg
>Priority: Major
>  Labels: sub-query
> Attachments: HIVE-21537.1.patch, HIVE-21537.2.patch, 
> HIVE-21537.3.patch
>
>
> Currently Hive planner introduces this branch and later executes a rule to 
> remove this branch if it could. 
> Subquery remove rule itself could check if subquery will produce max one row 
> (using relmetadat's getMaxRowCount) and avoid introducing this branch.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Updated] (HIVE-21537) Scalar query rewrite could be improved to not generate an extra join if subquery is guaranteed to produce atmost one row

2019-03-29 Thread Vineet Garg (JIRA)


 [ 
https://issues.apache.org/jira/browse/HIVE-21537?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Vineet Garg updated HIVE-21537:
---
Status: Patch Available  (was: Open)

> Scalar query rewrite could be improved to not generate an extra join if 
> subquery is guaranteed to produce atmost one row
> 
>
> Key: HIVE-21537
> URL: https://issues.apache.org/jira/browse/HIVE-21537
> Project: Hive
>  Issue Type: Improvement
>  Components: Query Planning
>Affects Versions: 4.0.0
>Reporter: Vineet Garg
>Assignee: Vineet Garg
>Priority: Major
>  Labels: sub-query
> Attachments: HIVE-21537.1.patch, HIVE-21537.2.patch, 
> HIVE-21537.3.patch
>
>
> Currently Hive planner introduces this branch and later executes a rule to 
> remove this branch if it could. 
> Subquery remove rule itself could check if subquery will produce max one row 
> (using relmetadat's getMaxRowCount) and avoid introducing this branch.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Updated] (HIVE-21537) Scalar query rewrite could be improved to not generate an extra join if subquery is guaranteed to produce atmost one row

2019-03-29 Thread Vineet Garg (JIRA)


 [ 
https://issues.apache.org/jira/browse/HIVE-21537?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Vineet Garg updated HIVE-21537:
---
Attachment: HIVE-21537.2.patch

> Scalar query rewrite could be improved to not generate an extra join if 
> subquery is guaranteed to produce atmost one row
> 
>
> Key: HIVE-21537
> URL: https://issues.apache.org/jira/browse/HIVE-21537
> Project: Hive
>  Issue Type: Improvement
>  Components: Query Planning
>Affects Versions: 4.0.0
>Reporter: Vineet Garg
>Assignee: Vineet Garg
>Priority: Major
>  Labels: sub-query
> Attachments: HIVE-21537.1.patch, HIVE-21537.2.patch
>
>
> Currently Hive planner introduces this branch and later executes a rule to 
> remove this branch if it could. 
> Subquery remove rule itself could check if subquery will produce max one row 
> (using relmetadat's getMaxRowCount) and avoid introducing this branch.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Updated] (HIVE-21537) Scalar query rewrite could be improved to not generate an extra join if subquery is guaranteed to produce atmost one row

2019-03-29 Thread Vineet Garg (JIRA)


 [ 
https://issues.apache.org/jira/browse/HIVE-21537?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Vineet Garg updated HIVE-21537:
---
Status: Patch Available  (was: Open)

> Scalar query rewrite could be improved to not generate an extra join if 
> subquery is guaranteed to produce atmost one row
> 
>
> Key: HIVE-21537
> URL: https://issues.apache.org/jira/browse/HIVE-21537
> Project: Hive
>  Issue Type: Improvement
>  Components: Query Planning
>Affects Versions: 4.0.0
>Reporter: Vineet Garg
>Assignee: Vineet Garg
>Priority: Major
>  Labels: sub-query
> Attachments: HIVE-21537.1.patch, HIVE-21537.2.patch
>
>
> Currently Hive planner introduces this branch and later executes a rule to 
> remove this branch if it could. 
> Subquery remove rule itself could check if subquery will produce max one row 
> (using relmetadat's getMaxRowCount) and avoid introducing this branch.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Updated] (HIVE-21537) Scalar query rewrite could be improved to not generate an extra join if subquery is guaranteed to produce atmost one row

2019-03-29 Thread Vineet Garg (JIRA)


 [ 
https://issues.apache.org/jira/browse/HIVE-21537?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Vineet Garg updated HIVE-21537:
---
Attachment: (was: HIVE-21537.2.patch)

> Scalar query rewrite could be improved to not generate an extra join if 
> subquery is guaranteed to produce atmost one row
> 
>
> Key: HIVE-21537
> URL: https://issues.apache.org/jira/browse/HIVE-21537
> Project: Hive
>  Issue Type: Improvement
>  Components: Query Planning
>Affects Versions: 4.0.0
>Reporter: Vineet Garg
>Assignee: Vineet Garg
>Priority: Major
>  Labels: sub-query
> Attachments: HIVE-21537.1.patch
>
>
> Currently Hive planner introduces this branch and later executes a rule to 
> remove this branch if it could. 
> Subquery remove rule itself could check if subquery will produce max one row 
> (using relmetadat's getMaxRowCount) and avoid introducing this branch.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Updated] (HIVE-21537) Scalar query rewrite could be improved to not generate an extra join if subquery is guaranteed to produce atmost one row

2019-03-29 Thread Vineet Garg (JIRA)


 [ 
https://issues.apache.org/jira/browse/HIVE-21537?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Vineet Garg updated HIVE-21537:
---
Status: Open  (was: Patch Available)

> Scalar query rewrite could be improved to not generate an extra join if 
> subquery is guaranteed to produce atmost one row
> 
>
> Key: HIVE-21537
> URL: https://issues.apache.org/jira/browse/HIVE-21537
> Project: Hive
>  Issue Type: Improvement
>  Components: Query Planning
>Affects Versions: 4.0.0
>Reporter: Vineet Garg
>Assignee: Vineet Garg
>Priority: Major
>  Labels: sub-query
> Attachments: HIVE-21537.1.patch, HIVE-21537.2.patch
>
>
> Currently Hive planner introduces this branch and later executes a rule to 
> remove this branch if it could. 
> Subquery remove rule itself could check if subquery will produce max one row 
> (using relmetadat's getMaxRowCount) and avoid introducing this branch.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Updated] (HIVE-21537) Scalar query rewrite could be improved to not generate an extra join if subquery is guaranteed to produce atmost one row

2019-03-29 Thread Vineet Garg (JIRA)


 [ 
https://issues.apache.org/jira/browse/HIVE-21537?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Vineet Garg updated HIVE-21537:
---
Status: Open  (was: Patch Available)

> Scalar query rewrite could be improved to not generate an extra join if 
> subquery is guaranteed to produce atmost one row
> 
>
> Key: HIVE-21537
> URL: https://issues.apache.org/jira/browse/HIVE-21537
> Project: Hive
>  Issue Type: Improvement
>  Components: Query Planning
>Affects Versions: 4.0.0
>Reporter: Vineet Garg
>Assignee: Vineet Garg
>Priority: Major
>  Labels: sub-query
> Attachments: HIVE-21537.1.patch, HIVE-21537.2.patch
>
>
> Currently Hive planner introduces this branch and later executes a rule to 
> remove this branch if it could. 
> Subquery remove rule itself could check if subquery will produce max one row 
> (using relmetadat's getMaxRowCount) and avoid introducing this branch.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Updated] (HIVE-21537) Scalar query rewrite could be improved to not generate an extra join if subquery is guaranteed to produce atmost one row

2019-03-29 Thread Vineet Garg (JIRA)


 [ 
https://issues.apache.org/jira/browse/HIVE-21537?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Vineet Garg updated HIVE-21537:
---
Attachment: HIVE-21537.2.patch

> Scalar query rewrite could be improved to not generate an extra join if 
> subquery is guaranteed to produce atmost one row
> 
>
> Key: HIVE-21537
> URL: https://issues.apache.org/jira/browse/HIVE-21537
> Project: Hive
>  Issue Type: Improvement
>  Components: Query Planning
>Affects Versions: 4.0.0
>Reporter: Vineet Garg
>Assignee: Vineet Garg
>Priority: Major
>  Labels: sub-query
> Attachments: HIVE-21537.1.patch, HIVE-21537.2.patch
>
>
> Currently Hive planner introduces this branch and later executes a rule to 
> remove this branch if it could. 
> Subquery remove rule itself could check if subquery will produce max one row 
> (using relmetadat's getMaxRowCount) and avoid introducing this branch.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Updated] (HIVE-21537) Scalar query rewrite could be improved to not generate an extra join if subquery is guaranteed to produce atmost one row

2019-03-29 Thread Vineet Garg (JIRA)


 [ 
https://issues.apache.org/jira/browse/HIVE-21537?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Vineet Garg updated HIVE-21537:
---
Status: Patch Available  (was: Open)

> Scalar query rewrite could be improved to not generate an extra join if 
> subquery is guaranteed to produce atmost one row
> 
>
> Key: HIVE-21537
> URL: https://issues.apache.org/jira/browse/HIVE-21537
> Project: Hive
>  Issue Type: Improvement
>  Components: Query Planning
>Affects Versions: 4.0.0
>Reporter: Vineet Garg
>Assignee: Vineet Garg
>Priority: Major
>  Labels: sub-query
> Attachments: HIVE-21537.1.patch, HIVE-21537.2.patch
>
>
> Currently Hive planner introduces this branch and later executes a rule to 
> remove this branch if it could. 
> Subquery remove rule itself could check if subquery will produce max one row 
> (using relmetadat's getMaxRowCount) and avoid introducing this branch.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Updated] (HIVE-21537) Scalar query rewrite could be improved to not generate an extra join if subquery is guaranteed to produce atmost one row

2019-03-28 Thread Vineet Garg (JIRA)


 [ 
https://issues.apache.org/jira/browse/HIVE-21537?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Vineet Garg updated HIVE-21537:
---
Status: Patch Available  (was: Open)

> Scalar query rewrite could be improved to not generate an extra join if 
> subquery is guaranteed to produce atmost one row
> 
>
> Key: HIVE-21537
> URL: https://issues.apache.org/jira/browse/HIVE-21537
> Project: Hive
>  Issue Type: Improvement
>  Components: Query Planning
>Affects Versions: 4.0.0
>Reporter: Vineet Garg
>Assignee: Vineet Garg
>Priority: Major
>  Labels: sub-query
> Attachments: HIVE-21537.1.patch
>
>
> Currently Hive planner introduces this branch and later executes a rule to 
> remove this branch if it could. 
> Subquery remove rule itself could check if subquery will produce max one row 
> (using relmetadat's getMaxRowCount) and avoid introducing this branch.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Updated] (HIVE-21537) Scalar query rewrite could be improved to not generate an extra join if subquery is guaranteed to produce atmost one row

2019-03-28 Thread Vineet Garg (JIRA)


 [ 
https://issues.apache.org/jira/browse/HIVE-21537?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Vineet Garg updated HIVE-21537:
---
Attachment: HIVE-21537.1.patch

> Scalar query rewrite could be improved to not generate an extra join if 
> subquery is guaranteed to produce atmost one row
> 
>
> Key: HIVE-21537
> URL: https://issues.apache.org/jira/browse/HIVE-21537
> Project: Hive
>  Issue Type: Improvement
>  Components: Query Planning
>Affects Versions: 4.0.0
>Reporter: Vineet Garg
>Assignee: Vineet Garg
>Priority: Major
>  Labels: sub-query
> Attachments: HIVE-21537.1.patch
>
>
> Currently Hive planner introduces this branch and later executes a rule to 
> remove this branch if it could. 
> Subquery remove rule itself could check if subquery will produce max one row 
> (using relmetadat's getMaxRowCount) and avoid introducing this branch.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Updated] (HIVE-21537) Scalar query rewrite could be improved to not generate an extra join if subquery is guaranteed to produce atmost one row

2019-03-28 Thread Vineet Garg (JIRA)


 [ 
https://issues.apache.org/jira/browse/HIVE-21537?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Vineet Garg updated HIVE-21537:
---
Labels: sub-query  (was: )

> Scalar query rewrite could be improved to not generate an extra join if 
> subquery is guaranteed to produce atmost one row
> 
>
> Key: HIVE-21537
> URL: https://issues.apache.org/jira/browse/HIVE-21537
> Project: Hive
>  Issue Type: Improvement
>  Components: Query Planning
>Affects Versions: 4.0.0
>Reporter: Vineet Garg
>Assignee: Vineet Garg
>Priority: Major
>  Labels: sub-query
>
> Currently Hive planner introduces this branch and later executes a rule to 
> remove this branch if it could. 
> Subquery remove rule itself could check if subquery will produce max one row 
> (using relmetadat's getMaxRowCount) and avoid introducing this branch.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)