Skip to content

[SPARK-2783][SQL] Basic support for analyze in HiveContext - #1741

Closed
yhuai wants to merge 11 commits into
apache:masterfrom
yhuai:analyzeTable
Closed

yhuai wants to merge 11 commits into
apache:masterfrom
yhuai:analyzeTable

Conversation

@yhuai

@yhuai yhuai commented Aug 2, 2014

Copy link
Copy Markdown
Contributor

… "totalSize" property of this table in the Hive metastore.
@SparkQA

SparkQA commented Aug 2, 2014

Copy link
Copy Markdown

QA tests have started for PR 1741. This patch merges cleanly.
View progress: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/17780/consoleFull

@SparkQA

SparkQA commented Aug 2, 2014

Copy link
Copy Markdown

QA tests have started for PR 1741. This patch merges cleanly.
View progress: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/17782/consoleFull

@SparkQA

SparkQA commented Aug 2, 2014

Copy link
Copy Markdown

QA results for PR 1741:
- This patch FAILED unit tests.
- This patch merges cleanly
- This patch adds no public classes

For more information see test ouptut:
https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/17780/consoleFull

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There have been some changes in logging use logWarn(...)

@SparkQA

SparkQA commented Aug 2, 2014

Copy link
Copy Markdown

QA results for PR 1741:
- This patch FAILED unit tests.
- This patch merges cleanly
- This patch adds no public classes

For more information see test ouptut:
https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/17782/consoleFull

@SparkQA

SparkQA commented Aug 2, 2014

Copy link
Copy Markdown

QA tests have started for PR 1741. This patch merges cleanly.
View progress: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/17786/consoleFull

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We'll need to coordinate this with #1746. The only problem will be deprecation warning though, so I'm okay fixing it up in a follow up PR.

@SparkQA

SparkQA commented Aug 2, 2014

Copy link
Copy Markdown

QA results for PR 1741:
- This patch FAILED unit tests.
- This patch merges cleanly
- This patch adds no public classes

For more information see test ouptut:
https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/17786/consoleFull

@marmbrus

marmbrus commented Aug 2, 2014

Copy link
Copy Markdown
Contributor

Hmmm, linux vs mac file size problems?

[info] StatisticsSuite:
[info] - analyze MetastoreRelations *** FAILED ***
[info]   11768 did not equal 11624 (StatisticsSuite.scala:42)

@yhuai

yhuai commented Aug 3, 2014

Copy link
Copy Markdown
Contributor Author

Jenkins, test this please.

@SparkQA

SparkQA commented Aug 3, 2014

Copy link
Copy Markdown

QA tests have started for PR 1741. This patch merges cleanly.
View progress: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/17799/consoleFull

@SparkQA

SparkQA commented Aug 3, 2014

Copy link
Copy Markdown

QA results for PR 1741:
- This patch FAILED unit tests.
- This patch merges cleanly
- This patch adds no public classes

For more information see test ouptut:
https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/17799/consoleFull

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Alphabetize imports

@yhuai

yhuai commented Aug 3, 2014

Copy link
Copy Markdown
Contributor Author

I logged into Jenkins and tried my test. It passed... I just added a few logging entries and hopefully we can know what's going from the console output.

@SparkQA

SparkQA commented Aug 3, 2014

Copy link
Copy Markdown

QA tests have started for PR 1741. This patch merges cleanly.
View progress: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/17819/consoleFull

@SparkQA

SparkQA commented Aug 3, 2014

Copy link
Copy Markdown

QA tests have started for PR 1741. This patch merges cleanly.
View progress: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/17822/consoleFull

@yhuai

yhuai commented Aug 3, 2014

Copy link
Copy Markdown
Contributor Author
[info] StatisticsSuite:
path: file:/tmp/sparkHiveWarehouse7050426032683338824/analyzetable, size: 4096
path: file:/tmp/sparkHiveWarehouse7050426032683338824/analyzetable/part-00001_copy_1, size: 2896
path: file:/tmp/sparkHiveWarehouse7050426032683338824/analyzetable/part-00001, size: 2896
path: file:/tmp/sparkHiveWarehouse7050426032683338824/analyzetable/part-00000_copy_1, size: 2916
path: file:/tmp/sparkHiveWarehouse7050426032683338824/analyzetable/part-00000, size: 2916
path: file:/tmp/sparkHiveWarehouse7050426032683338824/analyzetable/_SUCCESS, size: 0
path: file:/tmp/sparkHiveWarehouse7050426032683338824/analyzetable/_SUCCESS_copy_1, size: 0
[info] - analyze MetastoreRelations *** FAILED ***
[info]   11768 did not equal 11624 (StatisticsSuite.scala:42)

Weird... Let me confirm if getContentSummary returns the wrong value.

@yhuai

yhuai commented Aug 3, 2014

Copy link
Copy Markdown
Contributor Author

Jenkins, test this please.

@SparkQA

SparkQA commented Aug 3, 2014

Copy link
Copy Markdown

QA results for PR 1741:
- This patch FAILED unit tests.
- This patch merges cleanly
- This patch adds no public classes

For more information see test ouptut:
https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/17819/consoleFull

@SparkQA

SparkQA commented Aug 3, 2014

Copy link
Copy Markdown

QA tests have started for PR 1741. This patch merges cleanly.
View progress: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/17824/consoleFull

@yhuai

yhuai commented Aug 3, 2014

Copy link
Copy Markdown
Contributor Author
[info] StatisticsSuite:
path: file:/tmp/sparkHiveWarehouse5177651279772692023/analyzetable, size: 4096
path: file:/tmp/sparkHiveWarehouse5177651279772692023/analyzetable/part-00001_copy_1, size: 2896
path: file:/tmp/sparkHiveWarehouse5177651279772692023/analyzetable/part-00001, size: 2896
path: file:/tmp/sparkHiveWarehouse5177651279772692023/analyzetable/part-00000_copy_1, size: 2916
path: file:/tmp/sparkHiveWarehouse5177651279772692023/analyzetable/part-00000, size: 2916
path: file:/tmp/sparkHiveWarehouse5177651279772692023/analyzetable/_SUCCESS, size: 0
path: file:/tmp/sparkHiveWarehouse5177651279772692023/analyzetable/_SUCCESS_copy_1, size: 0
Size of table returned from fs.getContentSummary(path).getLength(): 11768
[info] - analyze MetastoreRelations *** FAILED ***
[info]   11768 did not equal 11624 (StatisticsSuite.scala:42)

Seems getContentSummary caused the problem.

@SparkQA

SparkQA commented Aug 3, 2014

Copy link
Copy Markdown

QA results for PR 1741:
- This patch FAILED unit tests.
- This patch merges cleanly
- This patch adds no public classes

For more information see test ouptut:
https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/17822/consoleFull

@yhuai

yhuai commented Aug 3, 2014

Copy link
Copy Markdown
Contributor Author

Jenkins, test this please.

@SparkQA

SparkQA commented Aug 3, 2014

Copy link
Copy Markdown

QA tests have started for PR 1741. This patch merges cleanly.
View progress: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/17825/consoleFull

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It should be calculateTableSize.

@SparkQA

SparkQA commented Aug 3, 2014

Copy link
Copy Markdown

QA results for PR 1741:
- This patch FAILED unit tests.
- This patch merges cleanly
- This patch adds no public classes

For more information see test ouptut:
https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/17824/consoleFull

@SparkQA

SparkQA commented Aug 3, 2014

Copy link
Copy Markdown

QA tests have started for PR 1741. This patch merges cleanly.
View progress: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/17829/consoleFull

@SparkQA

SparkQA commented Aug 3, 2014

Copy link
Copy Markdown

QA results for PR 1741:
- This patch FAILED unit tests.
- This patch merges cleanly
- This patch adds no public classes

For more information see test ouptut:
https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/17825/consoleFull

@marmbrus

marmbrus commented Aug 3, 2014

Copy link
Copy Markdown
Contributor

This only failed streaming tests. I'm going to merge into master and 1.1. Thanks @yhuai!

@asfgit asfgit closed this in e139e2b Aug 3, 2014
asfgit pushed a commit that referenced this pull request Aug 3, 2014
JIRA: https://issues.apache.org/jira/browse/SPARK-2783

Author: Yin Huai <huai@cse.ohio-state.edu>

Closes #1741 from yhuai/analyzeTable and squashes the following commits:

7bb5f02 [Yin Huai] Use sql instead of hql.
4d09325 [Yin Huai] Merge remote-tracking branch 'upstream/master' into analyzeTable
e3ebcd4 [Yin Huai] Renaming.
c170f4e [Yin Huai] Do not use getContentSummary.
62393b6 [Yin Huai] Merge remote-tracking branch 'upstream/master' into analyzeTable
db233a6 [Yin Huai] Trying to debug jenkins...
fee84f0 [Yin Huai] Merge remote-tracking branch 'upstream/master' into analyzeTable
f0501f3 [Yin Huai] Fix compilation error.
24ad391 [Yin Huai] Merge remote-tracking branch 'upstream/master' into analyzeTable
8918140 [Yin Huai] Wording.
23df227 [Yin Huai] Add a simple analyze method to get the size of a table and update the "totalSize" property of this table in the Hive metastore.

(cherry picked from commit e139e2b)
Signed-off-by: Michael Armbrust <michael@databricks.com>
xiliu82 pushed a commit to xiliu82/spark that referenced this pull request Sep 4, 2014
JIRA: https://issues.apache.org/jira/browse/SPARK-2783

Author: Yin Huai <huai@cse.ohio-state.edu>

Closes apache#1741 from yhuai/analyzeTable and squashes the following commits:

7bb5f02 [Yin Huai] Use sql instead of hql.
4d09325 [Yin Huai] Merge remote-tracking branch 'upstream/master' into analyzeTable
e3ebcd4 [Yin Huai] Renaming.
c170f4e [Yin Huai] Do not use getContentSummary.
62393b6 [Yin Huai] Merge remote-tracking branch 'upstream/master' into analyzeTable
db233a6 [Yin Huai] Trying to debug jenkins...
fee84f0 [Yin Huai] Merge remote-tracking branch 'upstream/master' into analyzeTable
f0501f3 [Yin Huai] Fix compilation error.
24ad391 [Yin Huai] Merge remote-tracking branch 'upstream/master' into analyzeTable
8918140 [Yin Huai] Wording.
23df227 [Yin Huai] Add a simple analyze method to get the size of a table and update the "totalSize" property of this table in the Hive metastore.
@yhuai
yhuai deleted the analyzeTable branch October 6, 2014 16:25
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.

5 participants