Details
-
Type:
Bug
-
Status: Done
-
Resolution: Done
-
Fix Version/s: None
-
Component/s: butler
-
Labels:
-
Story Points:1
-
Epic Link:
-
Team:Data Release Production
Description
We had a few issues importing the Butler schema into Oracle that should be relatively easy correct.
Oracle does not have a boolean data type for table columns. The column actual in table Datasetconsumers is a boolean in SQLite. We suggest changing that to varchar2(1) and adding a "actual in ('T','F')"check constraint in Oracle.
"Size" is a reserved word in Oracle. The size column in table posixdatastorerecords will need to be renamed.
"Group" is a reserved word in Oracle. The group column in table detector will need to be renamed.
There is a data type mismatch in constraint Dataset_fk6 between column detector (number) in table detector and column detector (varchar) in table dataset. Data types must match in columns defined in FK/PK constraints.
I'm happy to just fix most of these in the schema YAML file in daf_butler, and will do so as soon as some other tickets land.
For booleans, Christopher Stephens [X], do you know (or could you find out) what SQlAlchemy does when you to tell it to create a table with a boolean in Oracle? If it does something reasonable, I'd like to do that so we can maintain the possibility of using it as a DBMS-abstraction layer in contexts where that's not a performance problem.