DROP TABLE "blob"."mytable"
DROP BLOB TABLE "blob"."mytable"
Also tried modifying settings:
ALTER TABLE "blob"."document" SET ("blocks.read_only_allow_delete" = FALSE)
ALTER BLOB TABLE "blob"."document" SET ("blocks.read_only_allow_delete" = FALSE)
But get errors:
SQLActionException[OperationOnInaccessibleRelationException: The relation "blob.mytable" doesn't support or allow ALTER operations.]
or
SQLActionException[SQLParseException: Invalid property "blocks.read_only_allow_delete" passed to [ALTER | CREATE] TABLE statement]
quick update: a PR to fix this was merged yesterday
It was backported to CrateDB 4.7 and CrateDB 4.8 and will be updated with the next patch release. I expect that a testing release will land in a couple days.
I would like to update a cluster to the latest release (from 4.2.6) but Crate warns me that a BLOB table needs to be recreated (and I cannot drop it…). Will this be an issue if an update is attempted ?
@rps-v Can you share the warning you see regarding BLOB tables needs to be recreated?
We believe this warning is only relevant for major version upgrades (i.e. upgrading to 5.x) and upgrading to 4.7 or 4.8 should work fine. Before upgrading I recommend to create a backup just in case something does not work as expected.
Potentially it’s also worth first restoring this blob table and some sample data on a cloned testing system for a update test-run before updating your production system.
@rps-v: With the following query you can check with which version your table was created:
SELECT
table_schema, table_name, version
FROM information_schema.tables
WHERE
table_schema NOT IN ('pg_catalog', 'sys', 'information_schema')
LIMIT 100;
When blob.mytable was created with 4.x it should be compatible with all 4.x CrateDB versions.
Tables created with 3.x will need to be re-created before upgrading to 5.x. Upgrades to newer minor versions (4.3…4.8) can be done without re-creating the table first.
I would recommend to upgrade from 4.2.6 => 4.3.4 => 4.8.x (fix will be included in upcomping 4.7.3 and 4.8.1)