Why use self.type in function "convert_tbl_column_to_sqla_col" #31680
Replies: 1 comment
-
Hey @Mine-Echo! How's it going? I'm here to help you with any questions or bugs you have in the Superset codebase. Let's tackle this together! The use of In contrast, If If you believe that using To continue talking to Dosu, mention @dosu. Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Other |
Beta Was this translation helpful? Give feedback.
-
function convert_tbl_column_to_sqla_col is at superset/models/helpers.py
https://github.com/apache/superset/blob/master/superset/models/helpers.py#L1403
why here use self.type but not tbl.column? I think the latter is right.
column_spec = db_engine_spec.get_column_spec(self.type, db_extra=self.db_extra)
When debugging, I found self,type is "table", then column_spec will be None. I think self.type is not native type of the column, here we should pass tal_column. type, which is "STRING" in my test.
Is this really a bug in superset? Or did I just understand it wrong somewhere?
Beta Was this translation helpful? Give feedback.
All reactions