HIVE-4077 alterPartition and alterPartitions methods in ObjectStore swallow exceptions
(Kevin Wilfong via namit)



git-svn-id: https://svn.apache.org/repos/asf/hive/trunk@1451476 13f79535-47bb-0310-9956-ffa450edef68
HIVE-4104 : Hive localtask does not buffer disk-writes or reads (Gopal V via Ashutosh Chauhan)

git-svn-id: https://svn.apache.org/repos/asf/hive/trunk@1452104 13f79535-47bb-0310-9956-ffa450edef68
HIVE-3490 Implement * or a.* for arguments to UDFs
(Navis via namit)



git-svn-id: https://svn.apache.org/repos/asf/hive/trunk@1452189 13f79535-47bb-0310-9956-ffa450edef68
HIVE-4020: Swap applying order of CP and PPD (Navis via Ashutosh Chauhan)

git-svn-id: https://svn.apache.org/repos/asf/hive/trunk@1452423 13f79535-47bb-0310-9956-ffa450edef68
HIVE-3874. Create a new Optimized Row Columnar file format for Hive. (Owen O'Malley via kevinwilfong)

git-svn-id: https://svn.apache.org/repos/asf/hive/trunk@1452992 13f79535-47bb-0310-9956-ffa450edef68
HIVE-3297 : change hive.auto.convert.joins default value to true (Ashutosh Chauhan)

git-svn-id: https://svn.apache.org/repos/asf/hive/trunk@1453649 13f79535-47bb-0310-9956-ffa450edef68
HIVE-4097 : ORC file doesnt properly interpret empty hive.io.file.readcolumn.ids (Owen Omalley via Ashutosh Chauhan)

git-svn-id: https://svn.apache.org/repos/asf/hive/trunk@1454453 13f79535-47bb-0310-9956-ffa450edef68
HIVE-4098 : OrcInputFormat assumes Hive always calls createValue (Owen Omalley via Ashutosh Chauhan)

git-svn-id: https://svn.apache.org/repos/asf/hive/trunk@1454454 13f79535-47bb-0310-9956-ffa450edef68
HIVE-4131. Fix eclipse template classpath to include new packages added by ORC file patch. (Prasad Mujumdar via kevinwilfong)

git-svn-id: https://svn.apache.org/repos/asf/hive/trunk@1454496 13f79535-47bb-0310-9956-ffa450edef68
HIVE-4126 [jira] remove support for lead/lag UDFs outside of UDAF args
(Harish Butani via Ashutosh Chauhan)

Summary:
remove support for lead/lag UDFs outside of UDAF args

Select Expressions such as
p_size - lead(p_size,1)
are currently handled as non aggregation expressions done after all over clauses are evaluated.
Once we allow different partitions in a single select list(Jira 4041), these become ambiguous.

	the equivalent way to do such things is either to use lead/lag UDAFs with expressions ( support added with Jira 4081)
	stack windowing clauses with inline queries. select lead(r,1).. from (select rank() as r....)...

Test Plan: existing tests

Reviewers: JIRA, ashutoshc

Reviewed By: ashutoshc

Differential Revision: https://reviews.facebook.net/D9105

git-svn-id: https://svn.apache.org/repos/asf/hive/branches/ptf-windowing@1454504 13f79535-47bb-0310-9956-ffa450edef68
Merge remote-tracking branch 'apache_hive/ptf-windowing' into ptf
HIVE-4140

Summary: Specifying alias for windowing function. Also moved windowing rules from FromClauseParser.g to SelectClauseParser.g

Test Plan: Updated existing tests.

Reviewers: hbutani

Differential Revision: https://reviews.facebook.net/D9249

git-svn-id: https://svn.apache.org/repos/asf/hive/branches/ptf-windowing@1454661 13f79535-47bb-0310-9956-ffa450edef68
HIVE-4127 : Testing with Hadoop 2.x causes test failure for ORC TestFileDump (Owen Omalley via Ashutosh Chauhan)

git-svn-id: https://svn.apache.org/repos/asf/hive/trunk@1454736 13f79535-47bb-0310-9956-ffa450edef68
Merge remote-tracking branch 'apache_hive/ptf-windowing' into ptf
Merged with trunk. Resolved conflicts in TypeCheckProcFactory. All ptf and windowing tests passed.

git-svn-id: https://svn.apache.org/repos/asf/hive/branches/ptf-windowing@1454774 13f79535-47bb-0310-9956-ffa450edef68
HIVE-4143

Summary: Added PTFPPD to control the behavior how filters are pushed around PTF Operator.

Test Plan: Added new tests.

Reviewers: hbutani

Differential Revision: https://reviews.facebook.net/D9261

git-svn-id: https://svn.apache.org/repos/asf/hive/branches/ptf-windowing@1455386 13f79535-47bb-0310-9956-ffa450edef68
merge with hive
Merge remote-tracking branch 'hive/ptf-windowing' into ptf
HIVE-4142 [jira] Remove inferring partition specification behavior
(Harish Butani via Ashutosh Chauhan)

Summary:
remove behavior that infers partitioning

Remove behavior that:

	implicitly sets the partition specification of a UDAF

this interferes with:

	the user wanting to apply a UDAF on the entire dataset
	is ambiguous once we support multiple partitions in 1 query.

Test Plan: updated tests

Reviewers: JIRA, ashutoshc

Reviewed By: ashutoshc

Differential Revision: https://reviews.facebook.net/D9285

git-svn-id: https://svn.apache.org/repos/asf/hive/branches/ptf-windowing@1455417 13f79535-47bb-0310-9956-ffa450edef68
HIVE-4108 [jira] Allow over() clause to contain an order by with no partition by
(Harish Butani via Ashutosh Chauhan)

Summary:
allow over clause with only an order spec

HIVE-4073 allows over() to be called with no partition by and no order by. We should allow only an order by.

From the review of HIVE-4073:

Ashutosh

Can you also add following test. This should also work.

select p_name, p_retailprice,
avg(p_retailprice) over(order by p_name)
from part
partition by p_name;

Harish

This test will not work (:
The grammar needs to be changed so:

partitioningSpec
@init { msgs.push("partitioningSpec clause"); }
@after { msgs.pop(); }
:
partitionByClause orderByClause? -> ^(TOK_PARTITIONINGSPEC partitionByClause orderByClause?) |
orderByClause -> ^(TOK_PARTITIONINGSPEC orderByClause) |
distributeByClause sortByClause? -> ^(TOK_PARTITIONINGSPEC distributeByClause sortByClause?) |
sortByClause? -> ^(TOK_PARTITIONINGSPEC sortByClause) |
clusterByClause -> ^(TOK_PARTITIONINGSPEC clusterByClause)
;

And the SemanticAnalyzer::processPTFPartitionSpec has to handle this shape of the AST Tree. The PTFTranslator also needs changes. Do this as another Jira

Test Plan: added new tests with over clause containing only order spec.

Reviewers: JIRA, ashutoshc

Reviewed By: ashutoshc

Differential Revision: https://reviews.facebook.net/D9309

git-svn-id: https://svn.apache.org/repos/asf/hive/branches/ptf-windowing@1455421 13f79535-47bb-0310-9956-ffa450edef68