-
Notifications
You must be signed in to change notification settings - Fork 98
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2449 from opencb/TASK-6005
TASK-6005 - Error loading variants : "Row length 45522 is > 32767"
- Loading branch information
Showing
40 changed files
with
491 additions
and
119 deletions.
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
27 changes: 27 additions & 0 deletions
27
...ain/java/org/opencb/opencga/app/migrations/v2_12_5/storage/AddAllelesColumnToPhoenix.java
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,27 @@ | ||
package org.opencb.opencga.app.migrations.v2_12_5.storage; | ||
|
||
import org.opencb.opencga.app.migrations.StorageMigrationTool; | ||
import org.opencb.opencga.catalog.migration.Migration; | ||
import org.opencb.opencga.storage.core.variant.VariantStorageEngine; | ||
|
||
@Migration(id="add_missing_column_to_phoenix_TASK-6005", description = "Add missing ALLELES column to phoenix #TASK-6005", | ||
version = "2.12.5", domain = Migration.MigrationDomain.STORAGE, date = 20240510 | ||
) | ||
public class AddAllelesColumnToPhoenix extends StorageMigrationTool { | ||
|
||
@Override | ||
protected void run() throws Exception { | ||
for (String project : getVariantStorageProjects()) { | ||
VariantStorageEngine engine = getVariantStorageEngineByProject(project); | ||
if (engine.getStorageEngineId().equals("hadoop")) { | ||
logger.info("Adding missing columns (if any) for project " + project); | ||
// Using same class for both migrations | ||
Class<?> aClass = Class.forName("org.opencb.opencga.storage.hadoop.variant.migration.v2_3_0.AddMissingColumns"); | ||
Runnable runnable = (Runnable) aClass | ||
.getConstructor(Object.class) | ||
.newInstance(engine); | ||
runnable.run(); | ||
} | ||
} | ||
} | ||
} |
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
52 changes: 52 additions & 0 deletions
52
opencga-storage/opencga-storage-core/src/test/resources/variant-test-sv-large.vcf
Large diffs are not rendered by default.
Oops, something went wrong.
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
Oops, something went wrong.