Skip to content

Commit

Permalink
fix: fix the RIGHT JOIN in preprocessing of unaligned sequences to co…
Browse files Browse the repository at this point in the history
…ntain the correct primary key
  • Loading branch information
Taepper committed Aug 29, 2024
1 parent acbe792 commit a25d5d0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/silo/preprocessing/preprocessor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -651,10 +651,10 @@ void Preprocessor::createPartitionedSequenceTablesFromSequenceFiles() {
createUnalignedPartitionedSequenceFile(
sequence_idx,
fmt::format(
"SELECT unaligned_tmp.key AS key, unaligned_tmp.read AS sequence, "
"SELECT partitioned_metadata.{0} AS key, unaligned_tmp.read AS sequence, "
"partitioned_metadata.partition_id AS partition_id "
"FROM unaligned_tmp RIGHT JOIN partitioned_metadata "
"ON unaligned_tmp.key = partitioned_metadata.{} ",
"ON unaligned_tmp.key = partitioned_metadata.{0} ",
Identifier::escapeIdentifier(database_config.schema.primary_key)
)
);
Expand Down

0 comments on commit a25d5d0

Please sign in to comment.