Skip to content

Commit

Permalink
Remove new expected result type
Browse files Browse the repository at this point in the history
  • Loading branch information
ramari16 committed Oct 21, 2024
1 parent e588d65 commit 6e8a1a6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,5 @@ public enum ResultType {
* Exports data as PFB, using avro
* <a href="https://uc-cdis.github.io/pypfb/">https://uc-cdis.github.io/pypfb/</a>
*/
DATAFRAME_PFB,
DATAFRAME_MULTI
DATAFRAME_PFB
}
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,6 @@ private AsyncResult initializeResult(Query query) throws IOException {

HpdsProcessor p;
switch(query.getExpectedResultType()) {
case DATAFRAME :
case SECRET_ADMIN_DATAFRAME:
p = queryProcessor;
break;
Expand All @@ -129,7 +128,7 @@ private AsyncResult initializeResult(Query query) throws IOException {
p = countProcessor;
break;
case DATAFRAME_PFB:
case DATAFRAME_MULTI:
case DATAFRAME:
p = pfbProcessor;
break;
default :
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public void dataframeMulti() throws IOException, InterruptedException {
variantInfoFilters.add(variantInfoFilter);
query.setVariantInfoFilters(variantInfoFilters);
query.setFields(List.of("\\open_access-1000Genomes\\data\\SYNTHETIC_AGE\\"));
query.setExpectedResultType(ResultType.DATAFRAME_MULTI);
query.setExpectedResultType(ResultType.DATAFRAME);

AsyncResult asyncResult = queryService.runQuery(query);

Expand Down

0 comments on commit 6e8a1a6

Please sign in to comment.