Skip to content

DJ matlab complains about datatypes only supported by DJ python #254

@shenshan

Description

@shenshan

I have a table in schema that contains a field with data type attach. When I run a package in matlab inserting entries into another table in that schema, DJ matlab complains about this datatype:

Error using dj.internal.Declare.matchType (line 394)
UnsupportedType: Attribute type 'attach' is not a valid type.

Error in dj.internal.Header.initFromDatabase (line 97)
                    category = dj.internal.Declare.matchType(attrs.type{i});

Error in dj.Schema/reload (line 209)
                    self.headers(info.name) = dj.internal.Header.initFromDatabase(self,info);

Error in dj.Schema/get.tableNames (line 174)
            self.reload(false)

Error in dj.Schema/get.classNames (line 76)
            names =  self.tableNames.keys;

Error in dj.internal.TableAccessor (line 25)
            for className = schema.classNames

Error in dj.Schema (line 69)
            self.v = dj.internal.TableAccessor(self);

Error in test.getSchema (line 4)
    schemaObject = dj.Schema(dj.conn, 'test', 'test');

Error in dj.internal.Table/get.schema (line 101)
                self.schema = feval(schemaFunction);

Error in dj.internal.Table/get.tableHeader (line 83)
                self.tableHeader = self.schema.headers(self.plainTableName);

Error in dj.internal.GeneralRelvar/compile (line 672)
                    header = derive(tab.tableHeader);

Error in dj.internal.GeneralRelvar/get.header (line 43)
            header = self.compile;

Error in dj.Relvar/insert (line 304)
            header = self.header;

Error in insert_tuples (line 9)
    insert(test.Insert, key_tech)

This bug is seen in the branch shan-crash-20200529, I haven't tested it for major external storage branch. Will do a more thorough testing later on. Not quite urgent for the moment.

Metadata

Metadata

Labels

bugtomergeawaiting merge before close

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions