Implemented a method in ``FunctionElement`` that is essentially abstract in
an ancestor class (even though not used), leading to pylint complaints.
Fixes: #7052
Change-Id: Iceeeb332fbb3c7187cd2b1969e2f4233a47136b1
--- /dev/null
+.. change::
+ :tags: bug, sql
+ :tickets: 7052
+
+ Implemented a method in ``FunctionElement`` that is essentially abstract in
+ an ancestor class (even though not used), leading to pylint complaints.
SQL function expressions.
""" # noqa E501
+
+ return ColumnCollection(
+ columns=[(col.key, col) for col in self._all_selected_columns]
+ )
+
+ @property
+ def _all_selected_columns(self):
if self.type._is_table_value:
cols = self.type._elements
else:
cols = [self.label(None)]
- return ColumnCollection(columns=[(col.key, col) for col in cols])
+ return cols
+
+ @property
+ def exported_columns(self):
+ return self.columns
@HasMemoized.memoized_attribute
def clauses(self):