MCPcopy Create free account
hub / github.com/LadybugDB/ladybug / getWarningColumns

Method getWarningColumns

src/binder/bound_scan_source.cpp:8–23  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6namespace binder {
7
8expression_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
25bool BoundTableScanSource::getIgnoreErrorsOption() const {
26 return info.bindData->getIgnoreErrorsOption();

Callers 4

mapCopyNodeFromMethod · 0.45
mapCopyRelFromMethod · 0.45
bindCopyNodeFromInfoMethod · 0.45
bindCopyRelFromInfoMethod · 0.45

Calls 2

sizeMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected