-
Notifications
You must be signed in to change notification settings - Fork 588
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
spark backend for sample-counts api #6475
spark backend for sample-counts api #6475
Conversation
...nce/persistence-spark/src/main/java/org/cbioportal/persistence/spark/util/ParquetWriter.java
Outdated
Show resolved
Hide resolved
@@ -36,12 +37,18 @@ | |||
@Qualifier("sampleSparkRepository") | |||
private SampleRepository sampleSparkRepository; | |||
@Autowired | |||
private CopyNumberSegmentSparkRepository copyNumberSegmentSparkRepository; |
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.
Is this not implementing the CopyNumberSegmentRepos?
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.
This is another case where the method returns internalIds and filters based on that. (List<Integer> samplesWithCopyNumberSeg = copyNumberSegmentRepository.fetchSamplesWithCopyNumberSegments()
) So the workaround was to create a method that returns List<String> sampleIds
and create another method in SampleSeriviceImpl.
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.
Why not introduce a method to the interface which returns a List (or return List and have the service process internal ids or stable sample ids as required)?
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.
thanks for the suggestion. I added a method in the interface that returns a list of Samples.
spark backend for api/sample-counts/fetch.
Reviewers:
@kalletlak @n1zea144