[hotfix][tests] Fix oracle e2e test with ARM docker image without a database initial (#3634)
parent
4b13c49163
commit
2616c0ecd7
@ -0,0 +1,55 @@
|
||||
-- Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
-- contributor license agreements. See the NOTICE file distributed with
|
||||
-- this work for additional information regarding copyright ownership.
|
||||
-- The ASF licenses this file to You under the Apache License, Version 2.0
|
||||
-- (the "License"); you may not use this file except in compliance with
|
||||
-- the License. You may obtain a copy of the License at
|
||||
--
|
||||
-- http://www.apache.org/licenses/LICENSE-2.0
|
||||
--
|
||||
-- Unless required by applicable law or agreed to in writing, software
|
||||
-- distributed under the License is distributed on an "AS IS" BASIS,
|
||||
-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
-- See the License for the specific language governing permissions and
|
||||
-- limitations under the License.
|
||||
|
||||
-- ----------------------------------------------------------------------------------------------------------------
|
||||
-- DATABASE: customer
|
||||
-- ----------------------------------------------------------------------------------------------------------------
|
||||
|
||||
-- Create and populate products and category tables using a single insert with many rows
|
||||
CREATE TABLE DEBEZIUM.PRODUCTS (
|
||||
ID NUMBER(9, 0) NOT NULL,
|
||||
NAME VARCHAR(255) NOT NULL,
|
||||
DESCRIPTION VARCHAR(512),
|
||||
WEIGHT FLOAT,
|
||||
PRIMARY KEY(ID)
|
||||
);
|
||||
CREATE TABLE DEBEZIUM.CATEGORY (
|
||||
ID NUMBER(9, 0) NOT NULL,
|
||||
CATEGORY_NAME VARCHAR(255),
|
||||
PRIMARY KEY(ID)
|
||||
);
|
||||
|
||||
ALTER TABLE DEBEZIUM.PRODUCTS ADD SUPPLEMENTAL LOG DATA (ALL) COLUMNS;
|
||||
ALTER TABLE DEBEZIUM.CATEGORY ADD SUPPLEMENTAL LOG DATA (ALL) COLUMNS;
|
||||
|
||||
|
||||
INSERT INTO DEBEZIUM.PRODUCTS (ID,NAME,DESCRIPTION,WEIGHT)
|
||||
VALUES (101,'scooter','Small 2-wheel scooter',3.14);
|
||||
INSERT INTO DEBEZIUM.PRODUCTS (ID,NAME,DESCRIPTION,WEIGHT)
|
||||
VALUES (102,'car battery','12V car battery',8.1);
|
||||
INSERT INTO DEBEZIUM.PRODUCTS (ID,NAME,DESCRIPTION,WEIGHT)
|
||||
VALUES (103,'12-pack drill bits','12-pack of drill bits with sizes ranging from #40 to #3',0.8);
|
||||
INSERT INTO DEBEZIUM.PRODUCTS (ID,NAME,DESCRIPTION,WEIGHT)
|
||||
VALUES (104,'hammer','12oz carpenters hammer',0.75);
|
||||
INSERT INTO DEBEZIUM.PRODUCTS (ID,NAME,DESCRIPTION,WEIGHT)
|
||||
VALUES (105,'hammer','14oz carpenters hammer',0.875);
|
||||
INSERT INTO DEBEZIUM.PRODUCTS (ID,NAME,DESCRIPTION,WEIGHT)
|
||||
VALUES (106,'hammer','16oz carpenters hammer',1.0);
|
||||
INSERT INTO DEBEZIUM.PRODUCTS (ID,NAME,DESCRIPTION,WEIGHT)
|
||||
VALUES (107,'rocks','box of assorted rocks',5.3);
|
||||
INSERT INTO DEBEZIUM.PRODUCTS (ID,NAME,DESCRIPTION,WEIGHT)
|
||||
VALUES (108,'jacket','water resistent black wind breaker',0.1);
|
||||
INSERT INTO DEBEZIUM.PRODUCTS (ID,NAME,DESCRIPTION,WEIGHT)
|
||||
VALUES (109,'spare tire','24 inch spare tire',22.2);
|
Loading…
Reference in New Issue