-
Notifications
You must be signed in to change notification settings - Fork 168
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
Added hive support #1313
Closed
Closed
Added hive support #1313
Changes from 1 commit
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
f27e933
added hive support
bbc6a3f
added hive support
aklochkova f817341
added hive support
aklochkova a6f2eff
hive support: result schema
wivern 1aa7033
Merge remote-tracking branch 'origin/master' into issue-1168-hive-sup…
aklochkova a5aa65e
Merge remote-tracking branch 'origin/master' into issue-1168-hive-sup…
aklochkova da9d793
adjusted webapi for running all types of analyses
aklochkova 350e6e8
upgrade zip4j dependency
6230878
Merge branch 'upgreade-zip4j-dependency-code' into issue-1168-hive-su…
wivern 2498b53
changes to circe 1.8.1-SNAPHOT
wivern a9d58ca
issue-1168 change hive driver version
779ab7b
issue-1168 generate hive specific ddl result schema
5cdf3fe
issue-1168 generate hive specific ddl result schema
6f139d0
Revert "issue-1168 generate hive specific ddl result schema"
595e7cf
issue-1168 use HINTS to generate partition and bucket
04cdf44
issue-1168 use HINTS to generate partition and bucket
a2b5ed3
Merge remote-tracking branch 'origin/issue-1168-hive-support' into is…
wivern a95ce27
fix dependency conflict
wivern 22e5fef
fix dependency conflict
wivern File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
IF OBJECT_ID('@results_schema.heracles_results', 'U') IS NULL | ||
create table @results_schema.heracles_results | ||
( | ||
analysis_id int, | ||
stratum_1 varchar(255), | ||
stratum_2 varchar(255), | ||
stratum_3 varchar(255), | ||
stratum_4 varchar(255), | ||
stratum_5 varchar(255), | ||
count_value bigint, | ||
last_update_time timestamp | ||
) | ||
PARTITIONED BY(cohort_definition_id int) | ||
clustered by (analysis_id) into 64 buckets; |
23 changes: 23 additions & 0 deletions
23
src/main/resources/ddl/results/hive/heracles_results_dist.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
IF OBJECT_ID('@results_schema.heracles_results_dist', 'U') IS NULL | ||
create table @results_schema.heracles_results_dist | ||
( | ||
analysis_id int, | ||
stratum_1 varchar(255), | ||
stratum_2 varchar(255), | ||
stratum_3 varchar(255), | ||
stratum_4 varchar(255), | ||
stratum_5 varchar(255), | ||
count_value bigint, | ||
min_value float, | ||
max_value float, | ||
avg_value float, | ||
stdev_value float, | ||
median_value float, | ||
p10_value float, | ||
p25_value float, | ||
p75_value float, | ||
p90_value float, | ||
last_update_time timestamp | ||
) | ||
PARTITIONED BY(cohort_definition_id int) | ||
clustered by (analysis_id) into 64 buckets; |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's use
HINT DISTRIBUTE_ON_KEY
andHINT SORT_ON_KEY
and get rid off the separate SQL file for Hive