Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SNOW-925990 add logging for mapping resultset columns #715

Merged
merged 10 commits into from
Jan 4, 2024
2 changes: 2 additions & 0 deletions lib/connection/result/result.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@
ColumnNamesCreator.addOverridenNamesForDuplicatedColumns(rowtype);
}

Logger.getInstance().trace(`Mapping columns in resultset (total: ${numColumns})`);
sfc-gh-pmotacki marked this conversation as resolved.
Show resolved Hide resolved
for (let index = 0; index < numColumns; index++) {

// create a new column and add it to the columns array
Expand All @@ -113,6 +114,7 @@
mapColumnNameToIndices[column.getName()] || [];
mapColumnNameToIndices[column.getName()].push(index);
}
Logger.getInstance().trace(`Finished mapping columns.`);

Check failure on line 117 in lib/connection/result/result.js

View workflow job for this annotation

GitHub Actions / Run lint

Strings must use singlequote
sfc-gh-dszmolka marked this conversation as resolved.
Show resolved Hide resolved

// create chunks
this._chunks = createChunks(
Expand Down
Loading