Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions online/src/main/scala/ai/chronon/online/CatalystUtil.scala
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,11 @@ object CatalystUtil {
.config("spark.sql.adaptive.enabled", "false")
.config("spark.sql.legacy.timeParserPolicy", "LEGACY")
.config("spark.ui.enabled", "false")
// the default column reader batch size is 4096 - spark reads that many rows into memory buffer at once.
// that causes ooms on large columns.
// for derivations we only need to read one row at a time.
// for interactive we set the limit to 16.
.config("spark.sql.parquet.columnarReaderBatchSize", "16")
.enableHiveSupport() // needed to support registering Hive UDFs via CREATE FUNCTION.. calls
.getOrCreate()
assert(spark.sessionState.conf.wholeStageEnabled)
Expand Down