Home > Software design >  How do I set spark.sql.debug.maxToStringFields?
How do I set spark.sql.debug.maxToStringFields?

Time:06-03

I have looked through similar questions that have been asked before. No luck so far. I'm using PySpark within a venv environment. How do I go about changing the setting? Do I do it from within jupyter notebook/python script? Or do I need to use bash command? Is it in a specific configuration file? If so, where is it located?

CodePudding user response:

You can set it up in your .config file or you can use the command line

spark.conf.set("spark.sql.debug.maxToStringFields", <value>)

CodePudding user response:

This config, along many others, has been moved to: SQLConf - sql/catalyst/src/main/scala/org/apache/spark/sql/internal/SQLConf.scala

This can be set either in the config file or via command line in spark, using:

spark.conf.set("spark.sql.debug.maxToStringFields", 1000)

  • Related