-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
RONDB-776: RDRS: changed hopsworks.schemas.schema to TEXT (#573)
* RONDB-776: RDRS: changed hopsworks.schemas.schema to TEXT * RONDB-776: Fixed malloc. +1 for \0
- Loading branch information
Showing
11 changed files
with
190 additions
and
40 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
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
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
2 changes: 2 additions & 0 deletions
2
...rest-api-server/resources/testdbs/fixed/V10-FSTORE-1598-FSTORE-1595-avro_schema_fixes.sql
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,2 @@ | ||
ALTER TABLE `hopsworks`.`schemas` DROP FOREIGN KEY project_idx_schemas; | ||
ALTER TABLE `hopsworks`.`schemas` MODIFY COLUMN `schema` TEXT CHARACTER SET latin1 COLLATE latin1_general_cs NOT NULL; |
23 changes: 23 additions & 0 deletions
23
...t-server/rest-api-server/resources/testdbs/fixed/V5-FSTORE-1537-managed_feature_group.sql
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,23 @@ | ||
ALTER TABLE `hopsworks`.`cached_feature` | ||
ADD `type` varchar(1000) COLLATE latin1_general_cs NULL, | ||
ADD `partition_key` BOOLEAN NULL DEFAULT FALSE, | ||
ADD `default_value` VARCHAR(400) NULL, | ||
MODIFY `description` varchar(256) NULL DEFAULT ''; | ||
|
||
ALTER TABLE `hopsworks`.`feature_store_s3_connector` | ||
ADD `region` VARCHAR(50) DEFAULT NULL; | ||
|
||
ALTER TABLE `hopsworks`.`feature_group` | ||
ADD `path` VARCHAR(1000) NULL, | ||
ADD `connector_id` INT(11) NULL, | ||
ADD CONSTRAINT `connector_fk` FOREIGN KEY (`connector_id`) REFERENCES `feature_store_connector` (`id`) ON DELETE CASCADE ON UPDATE NO ACTION; | ||
|
||
UPDATE `hopsworks`.`feature_group` AS fg | ||
JOIN `hopsworks`.`on_demand_feature_group` AS on_demand_fg ON fg.`on_demand_feature_group_id` = on_demand_fg.`id` | ||
SET fg.`path` = on_demand_fg.`path`, | ||
fg.`connector_id` = on_demand_fg.`connector_id`; | ||
|
||
ALTER TABLE `hopsworks`.`on_demand_feature_group` | ||
DROP FOREIGN KEY `on_demand_conn_fk`, | ||
DROP COLUMN `path`, | ||
DROP COLUMN `connector_id`; |
2 changes: 2 additions & 0 deletions
2
...ge/ndb/rest-server/rest-api-server/resources/testdbs/fixed/V6-FSTORE-1507-python_udfs.sql
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,2 @@ | ||
ALTER TABLE `hopsworks`.`transformation_function` | ||
ADD `execution_mode` VARCHAR(255); |
33 changes: 33 additions & 0 deletions
33
...er/rest-api-server/resources/testdbs/fixed/V7-HWORKS-1627-kube_labels_priorityclasses.sql
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,33 @@ | ||
ALTER TABLE `hopsworks`.`serving` | ||
ADD `scheduling_config` varchar(2000) COLLATE latin1_general_cs DEFAULT NULL; | ||
|
||
CREATE TABLE IF NOT EXISTS `kube_priority_class` ( | ||
`id` INT(11) AUTO_INCREMENT PRIMARY KEY, | ||
`name` VARCHAR(253) NOT NULL, | ||
UNIQUE KEY `name_idx` (`name`) | ||
) ENGINE = ndbcluster DEFAULT CHARSET = latin1 COLLATE = latin1_general_cs; | ||
|
||
CREATE TABLE IF NOT EXISTS `kube_project_priority_class` ( | ||
`id` INT(11) AUTO_INCREMENT PRIMARY KEY, | ||
`priority_class_id` INT(11) NOT NULL, | ||
`project_id` INT(11), -- NULL key used for default project settings | ||
`base` INT(0) NOT NULL DEFAULT 0, | ||
CONSTRAINT `priority_class_fkc` FOREIGN KEY (`priority_class_id`) REFERENCES `hopsworks`.`kube_priority_class` (`id`) ON DELETE CASCADE ON UPDATE NO ACTION, | ||
CONSTRAINT `priority_class_project_fkc` FOREIGN KEY (`project_id`) REFERENCES `hopsworks`.`project` (`id`) ON DELETE CASCADE ON UPDATE NO ACTION | ||
) ENGINE = ndbcluster DEFAULT CHARSET = latin1 COLLATE = latin1_general_cs; | ||
|
||
CREATE TABLE IF NOT EXISTS `kube_label` ( | ||
`id` INT(11) AUTO_INCREMENT PRIMARY KEY, | ||
`name` VARCHAR(317) NOT NULL, | ||
`value` VARCHAR(63), | ||
UNIQUE KEY `name_value_idx` (`name`,`value`) | ||
) ENGINE = ndbcluster DEFAULT CHARSET = latin1 COLLATE = latin1_general_cs; | ||
|
||
CREATE TABLE IF NOT EXISTS `kube_project_label` ( | ||
`id` INT(11) AUTO_INCREMENT PRIMARY KEY, | ||
`label_id` INT(11) NOT NULL, | ||
`project_id` INT(11), -- NULL key used for default project settings | ||
`base` INT(0) NOT NULL DEFAULT 0, | ||
CONSTRAINT `label_fkc` FOREIGN KEY (`label_id`) REFERENCES `hopsworks`.`kube_label` (`id`) ON DELETE CASCADE ON UPDATE NO ACTION, | ||
CONSTRAINT `label_project_fkc` FOREIGN KEY (`project_id`) REFERENCES `hopsworks`.`project` (`id`) ON DELETE CASCADE ON UPDATE NO ACTION | ||
) ENGINE = ndbcluster DEFAULT CHARSET = latin1 COLLATE = latin1_general_cs; |
19 changes: 19 additions & 0 deletions
19
...db/rest-server/rest-api-server/resources/testdbs/fixed/V8-HWORKS-1670-ray_integration.sql
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,19 @@ | ||
ALTER TABLE `hopsworks`.`executions` ADD COLUMN `ray_dashboard_url` varchar(255) CHARACTER SET latin1 COLLATE latin1_general_cs DEFAULT NULL; | ||
ALTER TABLE `hopsworks`.`executions` ADD COLUMN `ray_cluster_name` varchar(255) CHARACTER SET latin1 COLLATE latin1_general_cs DEFAULT NULL; | ||
ALTER TABLE `hopsworks`.`jupyter_settings` ADD COLUMN `ray_config` varchar(5000) COLLATE latin1_general_cs DEFAULT NULL; | ||
|
||
CREATE TABLE `hopsworks`.`jupyter_ray_session` ( | ||
`id` int NOT NULL AUTO_INCREMENT, | ||
`creation_time` bigint DEFAULT NULL, | ||
`jupyter_project_id` int NOT NULL, | ||
`application_id` varchar(255) NOT NULL, | ||
`kernel_id` varchar(255) NOT NULL, | ||
`ray_head_node_service` varchar(255) DEFAULT NULL, | ||
PRIMARY KEY (`id`), | ||
UNIQUE KEY `kernel_id_unique` (`kernel_id`), | ||
UNIQUE KEY `application_id_unique` (`application_id`), | ||
KEY `fk_ray_session_jupyter_project` (`jupyter_project_id`), | ||
CONSTRAINT `fk_ray_session_jupyter_project` FOREIGN KEY (`jupyter_project_id`) REFERENCES `jupyter_project` (`id`) ON DELETE CASCADE | ||
) ENGINE=ndbcluster | ||
DEFAULT CHARSET=latin1 | ||
COLLATE=latin1_general_cs; |
2 changes: 2 additions & 0 deletions
2
...b/rest-server/rest-api-server/resources/testdbs/fixed/V9-FSTORE-1592-type_column_size.sql
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,2 @@ | ||
ALTER TABLE `hopsworks`.`cached_feature` | ||
MODIFY COLUMN `type` VARCHAR(20000) COLLATE latin1_general_cs NULL; |