Skip to content

Commit

Permalink
spark: change udf-test style #1
Browse files Browse the repository at this point in the history
  • Loading branch information
roldanx committed Jan 16, 2019
1 parent c4cd4f2 commit 08a0eae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions oskar-spark/src/test/python/pyoskar_tests/test_udfs.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@ def test_study(self):
self.df.select(study("studies", "hgvauser@platinum:illumina_platinum")).show(1, truncate=False)

def test_file(self):
self.df.select(file("studies", "platinum-genomes-vcf-NA12877_S1.genome.vcf.gz").alias("platinum-genomes-vcf-NA12877_S1.genome.vcf.gz")).show(LIMIT)
self.df.select(file("studies", "platinum-genomes-vcf-NA12877_S1.genome.vcf.gz").alias("platinum-genomes-vcf-NA12877_S1.genome.vcf.gz")).show(LIMIT, truncate=False)

def test_file_attribute(self):
self.df.select(file_attribute("studies", "platinum-genomes-vcf-NA12877_S1.genome.vcf.gz", "DP").alias("DP")).where("DP is not null").show(LIMIT)

def test_file_filter(self):
self.df.select(file_filter("studies", "platinum-genomes-vcf-NA12877_S1.genome.vcf.gz")).show(LIMIT)
self.df.select(file_filter("studies", "platinum-genomes-vcf-NA12877_S1.genome.vcf.gz")).show(LIMIT, truncate=False)

def test_file_qual(self):
self.df.select(file_qual("studies", "platinum-genomes-vcf-NA12877_S1.genome.vcf.gz")).show(LIMIT)
Expand Down

0 comments on commit 08a0eae

Please sign in to comment.