CivicSpleen / ambry

A comprehensive data package manager
BSD 2-Clause "Simplified" License
4 stars 5 forks source link

Can't load into warehouse partitions from other bundle. #188

Closed ericbusboom closed 8 years ago

ericbusboom commented 8 years ago

In test.functional.test_warehouse.BundleWarehouse#test_bundle_warehouse, A warehouse is constructed for a bundle. Loading partitions from that bundle works OK, but it failes when trying to load partitions from another bundle:

The exception is: While adding a partition to sqlite warehouse, failed to exec 'CREATE VIRTUAL TABLE p_pERJQxWUVb005001_vt using mod_partition(/tmp/ambry-test/build/build.example.com/casters-0.1.3, build.example.com/generators-0.0.1/demo);'

Note that the first arg to mod_partition is the build path to the bundle, but the second is a cache key to a partition from a different bundle. The first argument should be the build path to the generators bundle.

ericbusboom commented 8 years ago

This was actually a problem cause by constructing the warehouse on a Bundle, rather than a Library.