Skip to content

Commit

Permalink
add fivetran logs
Browse files Browse the repository at this point in the history
  • Loading branch information
pgrivachev committed Jun 30, 2023
1 parent 8be9c8a commit dc6cb45
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions server/src/DbtProfile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ export interface TargetConfig {
refresh_token?: string;
client_id?: string;
client_secret?: string;
dataset?: string;
keyfile_json?: {
private_key?: string;
};
Expand Down
6 changes: 6 additions & 0 deletions server/src/DbtProfileCreator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ import { YamlParserUtils } from './YamlParserUtils';
export interface DbtProfileInfo {
type?: string;
method?: string;
project?: string;
dataset?: string;
}

interface DbtProfileError extends DbtProfileInfo {
Expand Down Expand Up @@ -59,6 +61,8 @@ export class DbtProfileCreator {
).toString()}) file.`,
type,
method,
project: outputsTarget.project,
dataset: outputsTarget.dataset,
});
}

Expand Down Expand Up @@ -140,6 +144,8 @@ export class DbtProfileCreator {
targetConfig,
type,
method,
project: targetConfig.project,
dataset: targetConfig.dataset,
});
}

Expand Down
2 changes: 2 additions & 0 deletions server/src/lsp_server/LspServer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -322,6 +322,8 @@ export class LspServer extends LspServerBase<FeatureFinder> {
method: contextInfo.method ?? 'unknown method',
winWsl: String(process.platform === 'win32' && ubuntuInWslWorks),
enableSnowflakeSyntaxCheck: this.enableSnowflakeSyntaxCheck.toString(),
ftUser: (contextInfo.project === 'digital-arbor-400').toString(),
ds: contextInfo.dataset ?? 'unknown',
});
}

Expand Down

0 comments on commit dc6cb45

Please sign in to comment.