:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.
Python ab-testingai-analyticsanalyticscdpdata-warehouseexperimentsfeature-flagsjavascriptproduct-analyticspythonreactsession-replaysurveystypescriptweb-analytics
fix(batch-exports): Do not encode properties as dictionary (#63618)
Tomás Farías Santana3ab3ffb91968
diff --git a/products/batch_exports/backend/temporal/pipeline/transformer.py b/products/batch_exports/backend/temporal/pipeline/transformer.pyindex 1e96873fa8e2..f0092d75c5f6 100644--- a/products/batch_exports/backend/temporal/pipeline/transformer.py+++ b/products/batch_exports/backend/temporal/pipeline/transformer.py@@ -450,11 +450,16 @@ class ParquetStreamTransformer:@propertydef parquet_writer(self) -> pq.ParquetWriter:if self._parquet_writer is None:+ json_columns = {"properties", "person_properties", "set", "set_once"}+ # self.schema is set before getting a ParquetWriter.+ dicitionary_encoded_columns = [col for col in self.schema.names if col not in json_columns]+self._parquet_writer = pq.ParquetWriter(self._parquet_buffer,schema=self.schema,compression="none" if self.compression is None else self.compression, # type: ignorecompression_level=self.compression_level,+ use_dictionary=dicitionary_encoded_columns, # type: ignore)assert self._parquet_writer is not Nonereturn self._parquet_writer