| 6 | namespace binder { |
| 7 | |
| 8 | expression_vector BoundTableScanSource::getWarningColumns() const { |
| 9 | expression_vector warningDataExprs; |
| 10 | auto& columns = info.bindData->columns; |
| 11 | switch (type) { |
| 12 | case ScanSourceType::FILE: { |
| 13 | auto bindData = info.bindData->constPtrCast<function::ScanFileBindData>(); |
| 14 | for (auto i = bindData->numWarningDataColumns; i >= 1; --i) { |
| 15 | DASSERT(i < columns.size()); |
| 16 | warningDataExprs.push_back(columns[columns.size() - i]); |
| 17 | } |
| 18 | } break; |
| 19 | default: |
| 20 | break; |
| 21 | } |
| 22 | return warningDataExprs; |
| 23 | } |
| 24 | |
| 25 | bool BoundTableScanSource::getIgnoreErrorsOption() const { |
| 26 | return info.bindData->getIgnoreErrorsOption(); |
no test coverage detected