dataform icon indicating copy to clipboard operation
dataform copied to clipboard

Snowflake logs apear in the project

Open yufeng99999 opened this issue 1 year ago • 3 comments

I'm running Dataform at version 2.9.0 locally. When I execute the dataform command such as dataform run, dataform compile or dataform --version

the following logs appear in the terminal:

{"level":"INFO","message":"[3:35:10.407 PM]: Configuring logger with level: 2, filePath: undefined, additionalLogToConsole: undefined"}
Compiling...

At the same time, a file named snowflake.log is created in the project's root folder, containing these logs. Each time I execute a command, a new log entry is appended to the file. image

In earlier versions of the 2.9.0 package, this issue did not occur. I suspect that a dependency has enabled logging by default and inadvertently pushed it to production.

yufeng99999 avatar Dec 16 '24 14:12 yufeng99999

I found this: https://github.com/snowflakedb/snowflake-connector-nodejs/issues/957 . When you installed @dataform/[email protected], it comes with [email protected]. (You can check this by npm ls snowflake-sdk --global.) By installing dataform cli with the lower version of snowflake (i.e. npm install -g [email protected] @dataform/[email protected]), I could solve this issue. I'm not familiar with npm so I don't know why, but if I run npm install -g [email protected] to dataform cli installed environment, it didn't override the existing library, so I recommend checking the snowflake version with the command above.

moker-spaghetti avatar May 13 '25 13:05 moker-spaghetti

Indeed Snowflake is incluede the @dataform/[email protected] and @dataform/[email protected] version. But why ? Why We have snowflake in dataform ? @dataform-team

Image Image

LiangYufengGit avatar Aug 07 '25 08:08 LiangYufengGit

Dataform supported Snowflake before being acquired by Google. You can upgrade to the latest 3.x versions of Dataform where this support has been removed.

kolina avatar Aug 17 '25 12:08 kolina