Column object can be created with no arguments

Description

Environment

Windows 10 64 bit
python 3.7

Activity

Show:
Kimyen Truong
May 22, 2019, 8:45 PM

, can you add more details on why this is bad? Since it’s still fresh on your mind. Thank you.

Ziming Dong
May 22, 2019, 8:51 PM

I accidentally created the object because I was expecting an error to tell me which arguments I was missing when I did not give arguments.

Kimyen Truong
May 22, 2019, 9:22 PM

We probably can use help here in how users would like to create a column in the context of creating a table schema. If the use case is to create the ColumnModel object, then modify it, then the creating table schema must validate the ColumnModel for ColumnType (and in some case, limit.) Otherwise, creating a ColumnModel must require sufficient information to create a valid ColumnModel. I’m more include sufficient information.

The third option is to have some default ColumnModel that user can use in creating a new ColumnModel. This maybe a nicer user interface. In any cases, the implementation should follow the use cases.

Assignee

Unassigned

Reporter

Ziming Dong

Labels

None

Validator

Ziming Dong

Development Area

None

Release Version History

None

Affects versions

Priority

Major
Configure