Project: Beam (App Definition and Development / Streaming & Messaging)
File: CHANGES.md

<!-- Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. --> <!-- Template --> <!-- New highly anticipated feature X added to Python SDK (). New highly anticipated feature Y added to Java SDK (). Support for X source added (Java/Python) (). X feature added (Java/Python) (). X behavior was changed (). X behavior is deprecated and will be removed in X versions (). Fixed X (Java/Python) (). Fixed (CVE-YYYY-NNNN)). (). --> New highly anticipated feature X added to Python SDK (). New highly anticipated feature Y added to Java SDK (). Support for X source added (Java/Python) (). Added Feast feature store handler for enrichment transform (Python) (). BigQuery per-worker metrics are reported by default for Streaming Dataflow Jobs (Java) () Beam YAML now supports the jinja templating syntax. Template variables can be passed with the (json-formatted) `--jinja_variables` flag. DataFrame API now supports pandas 2.1.x and adds 12 more string functions for Series.(). Added BigQuery handler for enrichment transform (Python) () Disable soft delete policy when creating the default bucket for a project (Java) (). X behavior was changed (). Java's View.asList() side inputs are now optimized for iterating rather than indexing when in the global window. This new implementation still supports all (immutable) List methods as before, but some of the random access methods like get() and size() will be slower. To use the old implementation one can use View.asList().withRandomAccess(). X behavior is deprecated and will be removed in X versions (). Fixed X (Java/Python) (). Fixed (CVE-YYYY-NNNN)). (). Added FlinkRunner for Flink 1.17, removed support for Flink 1.12 and 1.13. Previous version of Pipeline running on Flink 1.16 and below can be upgraded to 1.17, if the Pipeline is first updated to Beam 2.56.0 with the same Flink version. After Pipeline runs with Beam 2.56.0, it should be possible to upgrade to FlinkRunner with Flink 1.17. () New Managed I/O Java API (). New Ordered Processing PTransform added for processing order-sensitive stateful data (). Upgraded Avro version to 1.11.3, kafka-avro-serializer and kafka-schema-registry-client versions to 7.6.0 (Java) (). The newer Avro package is known to have breaking changes. If you are affected, you can keep pinned to older Avro versions which are also tested with Beam. Iceberg read/write support is available through the new Managed I/O Java API (). Added ability to control the exact number of models loaded across processes by RunInference. This may be useful for pipelines with tight memory constraints () Profiling of Cythonized code has been disabled by default. This might improve performance for some Python pipelines (). Bigtable enrichment handler now accepts a custom function to build a composite row key. (Python) (). Default consumer polling timeout for KafkaIO.Read was increased from 1 second to 2 seconds. Use KafkaIO.read().withConsumerPollingTimeout(Duration duration) to configure this timeout value when necessary (). Python Dataflow users no longer need to manually specify --streaming for pipelines using unbounded sources such as ReadFromPubSub. Fixed locking issue when shutting down inactive bundle

Symptoms of this issue include slowness or stuckness in long-running jobs (Python) (). Fixed logging issue that caused silecing the pip output when installing of dependencies provided in `--requirements_file` (Python). Fixed pipeline stuckness issue by disallowing versions of grpcio that can cause the stuckness (Python) (). The beam interactive runner does not correctly run on flink (). When using the Flink runner from Python, 1.17 is not supported and 1.12/13 do not work correctly. Support for 1.17 will be added in 2.57.0, and the ability to choose 1.12/13 will be cleaned up and fully removed in 2.57.0 as well (). Fixed issue that broke WriteToJson in languages other than Java (X-lang) (). The Python SDK will now include automatically generated wrappers for external Java transforms! () Added support for handling bad records to BigQueryIO (). Full Support for Storage Read and Write APIs Partial Support for File Loads (Failures writing to files supported, failures loading files to BQ unsupported) No Support for Extract or Streaming Inserts Added support for handling bad records to PubSubIO (). Support is not available for handling schema mismatches, and enabling error handling for writing to pubsub topics with schemas is not recommended `--enableBundling` pipeline option for BigQueryIO DIRECT_READ is replaced by `--enableStorageReadApiV2`. Both were considered experimental and may subject to change (Java) (). Allow writing clustered and not time partitioned BigQuery tables (Java) (). Redis cache support added to RequestResponseIO and Enrichment transform (Python) () Merged sdks/java/fn-execution and runners/core-construction-java into the main SDK. These artifacts were never meant for users, but noting that they no longer exist. These are steps to bring portability into the core SDK alongside all other core functionality. Added Vertex AI Feature Store handler for Enrichment transform (Python) () Arrow version was bumped to 15.0.0 from 5.0.0 (). Go SDK users who build custom worker containers may run into issues with the move to distroless containers as a base (see Security Fixes). The issue stems from distroless containers lacking additional tools, which current custom container processes may rely on. See https://beam.apache.org/documentation/runtime/environments/#from-scratch-go for instructions on building and using a custom container. Python SDK has changed the default value for the `--maxcachememoryusagemb` pipeline option from 100 to 0. This option was first introduced in 2.52.0 SDK. This change restores the behavior of 2.51.0 SDK, which does not use the state cache. If your pipeline uses iterable side inputs views, consider increasing the cache size by setting the option manually. (). Fixed SpannerIO.readChangeStream to support propagating credentials from pipeline options to the getDialect calls for authenticating with Spanner (Java) (). Reduced the number of HTTP requests in GCSIO function calls (Python) () Go SDK base container image moved to distroless/base-nossl-debian12, reducing vulnerable container surface to kernel and glibc (). In Python pipelines, when shutting down inactive bundle processors, shutdown logic can overaggressively hold the lock, blocking acceptance of new work. Symptoms of this issue include slowness or stuckness in long-running jobs. Fixed in 2.56.0 (). WriteToJson broken in languages other than Java (X-lang) (). Python pipelines might occasionally become stuck due to a regression in grpcio (). The issue manifests frequently with Bigtable IO connector, but might also affect other GCP connectors. Fixed in 2.56.0. along with GCP BigTable handler added to Python SDK (). Beam Java Batch pipelines run on Google Cloud Dataflow will default to the Portable (Runner V2)[https://cloud.google.com/dataflow/docs/runner-v2] starting with this version. (All other languages are already on Runner V2.) This change is still rolling out to the Dataflow service, see (Runner V2 documentation)[https://cloud.google.com/dataflow/docs/runner-v2] for how to enable or disable it

Added support for writing to BigQuery dynamic destinations with Python's Storage Write API () Adding support for Tuples DataType in ClickHouse (Java) (). Added support for handling bad records to FileIO, TextIO, AvroIO (). Added support for handling bad records to BigtableIO (). along with GCP BigTable handler added to Python SDK (). N/A N/A Fixed a memory leak affecting some Go SDK since 2.46.0. () N/A Some Python pipelines that run with 2.52.0-2.54.0 SDKs and use large materialized side inputs might be affected by a performance regression. To restore the prior behavior on these SDK versions, supply the `--maxcachememoryusagemb=0` pipeline option. (). Python pipelines that run with 2.53.0-2.54.0 SDKs and perform file operations on GCS might be affected by excess HTTP requests. This could lead to a performance regression or a permission issue. () In Python pipelines, when shutting down inactive bundle processors, shutdown logic can overaggressively hold the lock, blocking acceptance of new work. Symptoms of this issue include slowness or stuckness in long-running jobs. Fixed in 2.56.0 (). Python streaming users that use 2.47.0 and newer versions of Beam should update to version 2.53.0, which fixes a known issue: (). TextIO now supports skipping multiple header lines (Java) (). Python GCSIO is now implemented with GCP GCS Client instead of apitools () Added support for handling bad records to KafkaIO (Java) () Add support for generating text embeddings in MLTransform for Vertex AI and Hugging Face Hub models.() NATS IO connector added (Go) (). Adding support for LowCardinality (Java) (). The Python SDK now type checks `collections.abc.Collections` types properly. Some type hints that were erroneously allowed by the SDK may now fail. () Running multi-language pipelines locally no longer requires Docker. Instead, the same (generally auto-started) subprocess used to perform the expansion can also be used as the cross-language worker. Framework for adding Error Handlers to composite transforms added in Java (). Python 3.11 images now include google-cloud-profiler (). Euphoria DSL is deprecated and will be removed in a future release (not before 2.56.0) () (Python) Fixed sporadic crashes in streaming pipelines that affected some users of 2.47.0 and newer SDKs (). (Python) Fixed a bug that caused MLTransform to drop identical elements in the output PCollection (). Upgraded to go 1.21.5 to build, fixing and Potential race condition causing NPE in DataflowExecutionStateSampler in Dataflow Java Streaming pipelines (). Some Python pipelines that run with 2.52.0-2.54.0 SDKs and use large materialized side inputs might be affected by a performance regression. To restore the prior behavior on these SDK versions, supply the `--maxcachememoryusagemb=0` pipeline option. (). Python pipelines that run with 2.53.0-2.54.0 SDKs and perform file operations on GCS might be affected by excess HTTP requests. This could lead to a performance regression or a permission issue. () In Python pipelines, when shutting down inactive bundle processors, shutdown logic can overaggressively hold the lock, blocking acceptance of new work. Symptoms of this issue include slowness or stuckness in long-running jobs. Fixed in 2.56.0 (). Previously deprecated Avro-dependent code (Beam Release 2.46.0) has been finally removed from Java SDK "core" package. Please, use `beam-sdks-java-extensions-avro` instead. This will allow to easily update Avro version in user code without potential breaking changes in Beam "core" since the Beam Avro extension already supports the latest Avro versions and should handle this. (). Publishing Java 21 SDK container images now supported as part of Apache Beam release process. () Direct Runner and Dataflow Runner support running pipelines on Java21 (experimental until tests fully setup). For other runners (Flink, Spark, Samza, etc) support status depend on runner

Add `UseDataStreamForBatch` pipeline option to the Flink runner. When it is set to true, Flink runner will run batch jobs using the DataStream API. By default the option is set to false, so the batch jobs are still executed using the DataSet API. `upload_graph` as one of the Experiments options for DataflowRunner is no longer required when the graph is larger than 10MB for Java SDK (). Introduced a pipeline option `--maxcachememoryusagemb` to configure state and side input cache size. The cache has been enabled to a default of 100 MB. Use `--maxcachememoryusagemb=X` to provide cache size for the user state API and side inputs. (). Beam YAML stable release. Beam pipelines can now be written using YAML and leverage the Beam YAML framework which includes a preliminary set of IO's and turnkey transforms. More information can be found in the YAML root folder and in the . `org.apache.beam.sdk.io.CountingSource.CounterMark` uses custom `CounterMarkCoder` as a default coder since all Avro-dependent classes finally moved to `extensions/avro`. In case if it's still required to use `AvroCoder` for `CounterMark`, then, as a workaround, a copy of "old" `CountingSource` class should be placed into a project code and used directly (). Renamed `host` to `firestoreHost` in `FirestoreOptions` to avoid potential conflict of command line arguments (Java) (). Fixed "Desired bundle size 0 bytes must be greater than 0" in Java SDK's BigtableIO.BigtableSource when you have more cores than bytes to read (Java) . `watchfilepattern` arg of the arg had no effect prior to 2.52.0. To use the behavior of arg `watchfilepattern` prior to 2.52.0, follow the documentation at https://beam.apache.org/documentation/ml/side-input-updates/ and use `WatchFilePattern` PTransform as a SideInput. () `MLTransform` doesn't output artifacts such as min, max and quantiles. Instead, `MLTransform` will add a feature to output these artifacts as human readable format - . For now, to use the artifacts such as min and max that were produced by the eariler `MLTransform`, use `readartifactlocation` of `MLTransform`, which reads artifacts that were produced earlier in a different `MLTransform` () Fixed a memory leak, which affected some long-running Python pipelines: . Fixed (Java/Python/Go) (). Mitigated (Python) . MLTransform drops the identical elements in the output PCollection. For any duplicate elements, a single element will be emitted downstream. (). Some Python pipelines that run with 2.52.0-2.54.0 SDKs and use large materialized side inputs might be affected by a performance regression. To restore the prior behavior on these SDK versions, supply the `--maxcachememoryusagemb=0` pipeline option. (Python) (). Users who lauch Python pipelines in an environment without internet access and use the `--setup_file` pipeline option might experience an increase in pipeline submission time. This has been fixed in 2.56.0 (). In Python, now supports loading many models in the same transform using a (). In Python, the now supports passing in inference_args. These will be passed through to the Vertex endpoint as parameters. Added support to run `mypy` on user pipelines () Python SDK worker start-up logs and crash logs are now captured by a buffer and logged at appropriate levels via Beam logging API. Dataflow Runner users might observe that most `worker-startup` log content is now captured by the `worker` logger. Users who relied on `print()` statements for logging might notice that some logs don't flush before pipeline succeeds - we strongly advise to use `logging` package instead of `print()` statements for logging. () Removed fastjson library dependency for Beam SQL. Table property is changed to be based on jackson ObjectNode (Java) (). Removed TensorFlow from Beam Python container images . If you have been negatively affected by this change, please comment on

Removed the parameter `t reflect.Type` from `parquetio.Write`. The element type is derived from the input PCollection (Go) () Refactor BeamSqlSeekableTable.setUp adding a parameter joinSubsetType. Fixed exception chaining issue in GCS connector (Python) (). Fixed streaming inserts exception handling, GoogleAPICallErrors are now retried according to retry strategy and routed to failed rows where appropriate rather than causing a pipeline error (Python) (). Fixed a bug in Python SDK's cross-language Bigtable sink that mishandled records that don't have an explicit timestamp set: . Python containers updated, fixing , , , , , , and Used go 1.21.1 to build, fixing Long-running Python pipelines might experience a memory leak: . Python pipelines using BigQuery Storage Read API might need to pin `fastavro` dependency to 1.8.3 or earlier on some runners that don't use Beam Docker containers: MLTransform drops the identical elements in the output PCollection. For any duplicate elements, a single element will be emitted downstream. (). Spark 3.2.2 is used as default version for Spark runner (). The Go SDK has a new default local runner, called Prism (). All Beam released container images are now that support both x86 and ARM CPU architectures. Java KafkaIO now supports picking up topics via topicPattern () Support for read from Cosmos DB Core SQL API () Upgraded to HBase 2.5.5 for HBaseIO. (Java) () Added support for GoogleAdsIO source (Java) (). The Go SDK now requires Go 1.20 to build. () The Go SDK has a new default local runner, Prism. (). Prism is a portable runner that executes each transform independantly, ensuring coders. At this point it supercedes the Go direct runner in functionality. The Go direct runner is now deprecated. See https://github.com/apache/beam/blob/master/sdks/go/pkg/beam/runners/prism/README.md for the goals and features of Prism. Hugging Face Model Handler for RunInference added to Python SDK. () Hugging Face Pipelines support for RunInference added to Python SDK. () Vertex AI Model Handler for RunInference now supports private endpoints () MLTransform transform added with support for common ML pre/postprocessing operations () Upgraded the Kryo extension for the Java SDK to Kryo 5.5.0. This brings in bug fixes, performance improvements, and serialization of Java 14 records. () All Beam released container images are now that support both x86 and ARM CPU architectures. (). The multi-arch container images include: All versions of Go, Python, Java and Typescript SDK containers. All versions of Flink job server containers. Java and Python expansion service containers. Transform service controller container. Spark3 job server container. Added support for batched writes to AWS SQS for improved throughput (Java, AWS 2).() Python SDK: Legacy runner support removed from Dataflow, all pipelines must use runner v2. Python SDK: Dataflow Runner will no longer stage Beam SDK from PyPI in the `--staging_location` at pipeline submission. Custom container images that are not based on Beam's default image must include Apache Beam installation.() The Go Direct Runner is now Deprecated. It remains available to reduce migration churn. Tests can be set back to the direct runner by overriding TestMain: `func TestMain(m testing.M) { ptest.MainWithDefault(m, "direct") }` It's recommended to fix issues seen in tests using Prism, as they can also happen on any portable runner. Use the generic register package for your pipeline DoFns to ensure pipelines function on portable runners, like prism. Do not rely on closures or using package globals for DoFn configuration. They don't function on portable runners. Fixed DirectRunner bug in Python SDK where GroupByKey gets empty PCollection and fails when pipeline option

Fixed BigQuery I/O bug when estimating size on queries that utilize row-level security () Long-running Python pipelines might experience a memory leak: . Python Pipelines using BigQuery IO or `orjson` dependency might experience segmentation faults or get stuck: . Beam Python containers rely on a version of Debian/aom that has several security vulnerabilities: , , , , , , and Python SDK's cross-language Bigtable sink mishandles records that don't have an explicit timestamp set: . To avoid this issue, set explicit timestamps for all records before writing to Bigtable. Python SDK worker start-up logs, particularly PIP dependency installations, that are not logged at warning or higher are suppressed. This suppression is reverted in 2.51.0. MLTransform drops the identical elements in the output PCollection. For any duplicate elements, a single element will be emitted downstream. (). Support for Bigtable Change Streams added in Java `BigtableIO.ReadChangeStream` () Allow prebuilding large images when using `--prebuildsdkcontainerengine=cloudbuild`, like images depending on `tensorflow` or `torch` (). Disabled `pip` cache when installing packages on the workers. This reduces the size of prebuilt Python container images (). Select dedicated avro datum reader and writer (Java) (). Timer API for the Go SDK (Go) (). Removed Python 3.7 support. () Fixed KinesisIO `NullPointerException` when a progress check is made before the reader is started (IO) () Long-running Python pipelines might experience a memory leak: . "Experimental" annotation cleanup: the annotation and concept have been removed from Beam to avoid the misperception of code as "not ready". Any proposed breaking changes will be subject to case-by-case pro/con decision making (and generally avoided) rather than using the "Experimental" to allow them. Added rename for GCS and copy for local filesystem (Go) (). Added support for enhanced fan-out in KinesisIO.Read (Java) (). This change is not compatible with Flink savepoints created by Beam 2.46.0 applications which had KinesisIO sources. Added textio.ReadWithFilename transform (Go) (). Added fileio.MatchContinuously transform (Go) (). Allow passing service name for google-cloud-profiler (Python) (). Dead letter queue support added to RunInference in Python (). Support added for defining pre/postprocessing operations on the RunInference transform () Adds a Docker Compose based transform service that can be used to discover and use portable Beam transforms (). Passing a tag into MultiProcessShared is now required in the Python SDK (). CloudDebuggerOptions is removed (deprecated in Beam v2.47.0) for Dataflow runner as the Google Cloud Debugger service is . (Java) (). AWS 2 client providers (deprecated in Beam ) are finally removed (). AWS 2 SnsIO.writeAsync (deprecated in Beam v2.37.0 due to risk of data loss) was finally removed (). AWS 2 coders (deprecated in Beam v2.43.0 when adding Schema support for AWS Sdk Pojos) are finally removed (). Fixed Java bootloader failing with Too Long Args due to long classpaths, with a pathing jar. (Java) (). PubsubIO writes will throw SizeLimitExceededException* for any message above 100 bytes, when used in batch (bounded) mode. (Java) (). Long-running Python pipelines might experience a memory leak: . Python SDK's cross-language Bigtable sink mishandles records that don't have an explicit timestamp set: . To avoid this issue, set explicit timestamps for all records before writing to Bigtable. Apache Beam adds Python 3.11 support (). BigQuery Storage Write API is now available in Python SDK via cross-language (). Added HbaseIO support for writing RowMutations (ordered by rowkey) to Hbase (Java) (). Added fileio transforms MatchFiles, MatchAll and ReadMatches (Go) (). Add integration test for JmsIO + fix issue with multiple connections (Java) (). The Flink runner now supports Flink 1.16.x (). Schema'd PTransforms can now be directly applied to Beam dataframes just like

(Note that when doing multiple operations, it may be more efficient to explicitly chain the operations like `df | (Transform1 | Transform2 | ...)` to avoid excessive conversions.) The Go SDK adds new transforms periodic.Impulse and periodic.Sequence that extends support for slowly updating side input patterns. () Several Google client libraries in Python SDK dependency chain were updated to latest available major versions. () If a main session fails to load, the pipeline will now fail at worker startup. (). Python pipeline options will now ignore unparsed command line flags prefixed with a single dash. (). The SmallestPerKey combiner now requires keyword-only arguments for specifying optional parameters, such as `key` and `reverse`. (). Cloud Debugger support and its pipeline options are deprecated and will be removed in the next Beam version, in response to the Google Cloud Debugger service . (Java) (). BigQuery sink in STORAGEWRITEAPI mode in batch pipelines could result in data consistency issues during the handling of other unrelated transient errors for Beam SDKs 2.35.0 - 2.46.0 (inclusive). For more details see: https://github.com/apache/beam/issues/26521 The google-cloud-profiler dependency was accidentally removed from Beam's Python Docker Image . still preinstall this dependency. Long-running Python pipelines might experience a memory leak: . Java SDK containers migrated to as a base. This change migrates away from the deprecated container. Eclipse Temurin is currently based upon Ubuntu 22.04 while the OpenJDK container was based upon Debian 11. RunInference PTransform will accept model paths as SideInputs in Python SDK. () RunInference supports ONNX runtime in Python SDK () Tensorflow Model Handler for RunInference in Python SDK () Java SDK modules migrated to use `:sdks:java:extensions:avro` () Added in JmsIO a retry policy for failed publications (Java) (). Support for `LZMA` compression/decompression of text files added to the Python SDK () Added ReadFrom/WriteTo Csv/Json as top-level transforms to the Python SDK. Add UDF metrics support for Samza portable mode. Option for SparkRunner to avoid the need of SDF output to fit in memory (). This helps e.g. with ParquetIO reads. Turn the feature on by adding experiment `useboundedconcurrentoutputfor_sdf`. Add `WatchFilePattern` transform, which can be used as a side input to the RunInference PTransfrom to watch for model updates using a file pattern. () Add support for loading TorchScript models with `PytorchModelHandler`. The TorchScript model path can be passed to PytorchModelHandler using `torchscriptmodelpath=<pathto_model>`. () The Go SDK now requires Go 1.19 to build. () The Go SDK now has an initial native Go implementation of a portable Beam Runner called Prism. () For more details and current state see https://github.com/apache/beam/tree/master/sdks/go/pkg/beam/runners/prism. The deprecated SparkRunner for Spark 2 (see ) was removed (). Python's BatchElements performs more aggressive batching in some cases, capping at 10 second rather than 1 second batches by default and excluding fixed cost in this computation to better handle cases where the fixed cost is larger than a single second. To get the old behavior, one can pass `targetbatchdurationsecsincludingfixedcost=1` to BatchElements. Dataflow runner enables sibling SDK protocol for Python pipelines using custom containers on Beam 2.46.0 and newer SDKs. If your Python pipeline starts to stall after you switch to 2.46.0 and you use a custom container, please verify that your custom container does not include artifacts from older Beam SDK releases. In particular, check in your `Dockerfile` that the Beam container entrypoint and/or Beam base image version match the Beam SDK version used at job submission. Avro related classes are deprecated in module `beam-sdks-java-core` and will be eventually removed. Please, migrate to a new module `beam-sdks-java-extensions-avro` instead by importing the classes from `org.apache.beam.sdk.extensions.avro`

For the sake of migration simplicity, the relative package path and the whole class hierarchy of Avro related classes in new module is preserved the same as it was before. For example, import `org.apache.beam.sdk.extensions.avro.coders.AvroCoder` class instead of`org.apache.beam.sdk.coders.AvroCoder`. (). Support for X source added (Java/Python) (). MongoDB IO connector added (Go) (). RunInference Wrapper with Sklearn Model Handler support added in Go SDK (). Adding override of allowed TLS algorithms (Java), now maintaining the disabled/legacy algorithms present in 2.43.0 (up to 1.8.0_342, 11.0.16, 17.0.2 for respective Java versions). This is accompanied by an explicit re-enabling of TLSv1 and TLSv1.1 for Java 8 and Java 11. Add UDF metrics support for Samza portable mode. Portable Java pipelines, Go pipelines, Python streaming pipelines, and portable Python batch pipelines on Dataflow are required to use Runner V2. The `disablerunnerv2`, `disablerunnerv2until2023`, `disableprimerunner_v2` experiments will raise an error during pipeline construction. You can no longer specify the Dataflow worker jar override. Note that non-portable Java jobs and non-portable Python batch jobs are not impacted. (). Beam now requires `pyarrow>=3` and `pandas>=1.4.3` since older versions are not compatible with `numpy==1.24.0`. Avoids Cassandra syntax error when user-defined query has no where clause in it (Java) (). Fixed JDBC connection failures (Java) during handshake due to deprecated TLSv1(.1) protocol for the JDK. () Fixed Python BigQuery Batch Load write may truncate valid data when deposition sets to WRITE_TRUNCATE and incoming data is large (Python) (). Support for Bigtable sink (Write and WriteBatch) added (Go) (). S3 implementation of the Beam filesystem (Go) (). Support for SingleStoreDB source and sink added (Java) (). Added support for DefaultAzureCredential authentication in Azure Filesystem (Python) (). Beam now provides a portable "runner" that can render pipeline graphs with graphviz. See `python -m apache_beam.runners.render --help` for more details. Local packages can now be used as dependencies in the requirements.txt file, rather than requiring them to be passed separately via the `--extra_package` option (Python) (). Pipeline Resource Hints now supported via `--resource_hints` flag (Go) (). Make Python SDK containers reusable on portable runners by installing dependencies to temporary venvs (, ). RunInference model handlers now support the specification of a custom inference function in Python (). Support for `map_windows` urn added to Go SDK (). `ParquetIO.withSplit` was removed since splittable reading has been the default behavior since 2.35.0. The effect of this change is to drop support for non-splittable reading (Java)(). `beam-sdks-java-extensions-google-cloud-platform-core` is no longer a dependency of the Java SDK Harness. Some users of a portable runner (such as Dataflow Runner v2) may have an undeclared dependency on this package (for example using GCS with TextIO) and will now need to declare the dependency. `beam-sdks-java-core` is no longer a dependency of the Java SDK Harness. Users of a portable runner (such as Dataflow Runner v2) will need to provide this package and its dependencies. Slices now use the Beam Iterable Coder. This enables cross language use, but breaks pipeline updates if a Slice type is used as a PCollection element or State API element. (Go) If you activated a virtual environment in your custom container image, this environment might no longer be activated, since a new environment will be created (see the note about above). To work around, install dependencies into the default (global) python environment. When using poetry you may need to use `poetry config virtualenvs.create false` before installing deps, see an example in: . If you were negatively impacted by this change and cannot find a workaround, feel free to chime in on . To disable this behavior, you could upgrade to Beam 2.48.0 and set an environment variable `ENV RUNPYTHONSDKINDEFAULT_ENVIRONMENT=1` in your Dockerfile. X behavior is deprecated and will be removed in X versions

Fixed X (Java/Python) (). Fixed JmsIO acknowledgment issue (Java) () Fixed Beam SQL CalciteUtils (Java) and Cross-language JdbcIO (Python) did not support JDBC CHAR/VARCHAR, BINARY/VARBINARY logical types (, ). Ensure iterated and emitted types are used with the generic register package are registered with the type and schema registries.(Go) () Python 3.10 support in Apache Beam (). An initial implementation of a runner that allows us to run Beam pipelines on Dask. Try it out and give us feedback! (Python) (). Decreased TextSource CPU utilization by 2.3x (Java) (). Fixed bug when using SpannerIO with RuntimeValueProvider options (Java) (). Fixed issue for unicode rendering on WriteToBigQuery () Remove obsolete variants of BigQuery Read and Write, always using Beam-native variant ( and ). Bumped google-cloud-spanner dependency version to 3.x for Python SDK (). Dataframe wrapper added in Go SDK via Cross-Language (with automatic expansion service). (Go) (). Name all Java threads to aid in debugging (). An initial implementation of a runner that allows us to run Beam pipelines on Dask. (Python) (). Allow configuring GCP OAuth scopes via pipeline options. This unblocks usages of Beam IOs that require additional scopes. For example, this feature makes it possible to access Google Drive backed tables in BigQuery (). An example for using Python RunInference from Java (). Data can now be read from BigQuery and directly plumbed into a DeferredDataframe in the Dataframe API. Users no longer have to re-specify the schema in this case (). CoGroupByKey transform in Python SDK has changed the output typehint. The typehint component representing grouped values changed from List to Iterable, which more accurately reflects the nature of the arbitrarily large output collection. Beam users may see an error on transforms downstream from CoGroupByKey. Users must change methods expecting a List to expect an Iterable going forward. See for information and fixes. The PortableRunner for Spark assumes Spark 3 as default Spark major version unless configured otherwise using `--spark_version`. Spark 2 support is deprecated and will be removed soon (). Fixed Python cross-language JDBC IO Connector cannot read or write rows containing Numeric/Decimal type values (). Added support for stateful DoFns to the Go SDK. Added support for [Batched DoFns](https://beam.apache.org/documentation/programming-guide/#batched-dofns) to the Python SDK. Added support for Zstd compression to the Python SDK. Added support for Google Cloud Profiler to the Go SDK. Added support for stateful DoFns to the Go SDK. The Go SDK's Row Coder now uses a different single-precision float encoding for float32 types to match Java's behavior (). Fixed Python cross-language JDBC IO Connector cannot read or write rows containing Timestamp type values . Fixed `AfterProcessingTime` behavior in Python's `DirectRunner` to match Java () Go SDK doesn't yet support Slowly Changing Side Input pattern () Projection Pushdown optimizer is now on by default for streaming, matching the behavior of batch pipelines since 2.38.0. If you encounter a bug with the optimizer, please file an issue and disable the optimizer using pipeline option `--experiments=disableprojectionpushdown`. Previously available in Java sdk, Python sdk now also supports logging level overrides per module. (). Added support for accessing GCP PubSub Message ordering keys (Java) () Projection Pushdown optimizer may break Dataflow upgrade compatibility for optimized pipelines when it removes unused fields. If you need to upgrade and encounter a compatibility issue, disable the optimizer using pipeline option `--experiments=disableprojectionpushdown`. Support for Spark 2.4.x is deprecated and will be dropped with the release of Beam 2.44.0 or soon after (Spark runner)

The modules and for AWS Java SDK v1 are deprecated in favor of and will be eventually removed after a few Beam releases (Java) (). Fixed a condition where retrying queries would yield an incorrect cursor in the Java SDK Firestore Connector (). Fixed plumbing allowed lateness in Go SDK. It was ignoring the user set value earlier and always used to set to 0. (). Added API, a framework agnostic transform for inference. With this release, PyTorch and Scikit-learn are supported by the transform. See also example at apachebeam/examples/inference/pytorchimage_classification.py Upgraded to Hive 3.1.3 for HCatalogIO. Users can still provide their own version of Hive. (Java) (). Go SDK users can now use generic registration functions to optimize their DoFn execution. () Go SDK users may now write self-checkpointing Splittable DoFns to read from streaming sources. () Go SDK textio Reads have been moved to Splittable DoFns exclusively. () Pipeline drain support added for Go SDK has now been tested. () Go SDK users can now see heap usage, sideinput cache stats, and active process bundle stats in Worker Status. () The Go Sdk now requires a minimum version of 1.18 in order to support generics (). synthetic.SourceConfig field types have changed to int64 from int for better compatibility with Flink's use of Logical types in Schemas (Go) () Default coder updated to compress sources used with `BoundedSourceAsSDFWrapperFn` and `UnboundedSourceAsSDFWrapper`. Fixed Java expansion service to allow specific files to stage (). Fixed Elasticsearch connection when using both ssl and username/password (Java) () Watermark estimation is now supported in the Go SDK (). Support for impersonation credentials added to dataflow runner in the Java and Python SDK (). Implemented Apache PulsarIO (). JmsIO gains the ability to map any kind of input to any subclass of `javax.jms.Message` (Java) (). JmsIO introduces the ability to write to dynamic topics (Java) (). A `topicNameMapper` must be set to extract the topic name from the input value. A `valueMapper` must be set to convert the input value to JMS message. Reduce number of threads spawned by BigqueryIO StreamingInserts ( ). Implemented Apache PulsarIO (). Support for flink scala 2.12, because most of the libraries support version 2.12 onwards. () 'Manage Clusters' JupyterLab extension added for users to configure usage of Dataproc clusters managed by Interactive Beam (Python) (). Pipeline drain support added for Go SDK (). Note: this feature is not yet fully validated and should be treated as experimental in this release.* `DataFrame.unstack()`, `DataFrame.pivot() ` and `Series.unstack()` implemented for DataFrame API (, ). Support for impersonation credentials added to dataflow runner in the Java and Python SDK (). Implemented Jupyterlab extension for managing Dataproc clusters (). ExternalPythonTransform API added for easily invoking Python transforms from Java (). Added Add support for Elasticsearch 8.x (). Shard aware Kinesis record aggregation (AWS Sdk v2), (). Upgrade to ZetaSQL 2022.04.1 (). Fixed ReadFromBigQuery cannot be used with the interactive runner (). Unused functions `ShallowCloneParDoPayload()`, `ShallowCloneSideInput()`, and `ShallowCloneFunctionSpec()` have been removed from the Go SDK's pipelinex package (). JmsIO requires an explicit `valueMapper` to be set (). You can use the `TextMessageMapper` to convert `String` inputs to JMS `TestMessage`s: ```java JmsIO.<String>write() .withConnectionFactory(jmsConnectionFactory) .withValueMapper(new TextMessageMapper()); ``` Coders in Python are expected to inherit from Coder. (). New abstract method `metadata()` added to io.filesystem.FileSystem in the Python SDK. () Flink 1.11 is no longer supported (). Python 3.6 is no longer supported (). Fixed Java Spanner IO NPE when ProjectID not specified in template executions (Java) (). Fixed potential NPE in BigQueryServicesImpl.getErrorInfo (Java) (). Introduce projection pushdown optimizer to the Java SDK (). The optimizer currently only works on the , but more I/Os will be added in future

If you encounter a bug with the optimizer, please file a JIRA and disable the optimizer using pipeline option `--experiments=disableprojectionpushdown`. A new IO for Neo4j graph databases was added. () It has the ability to update nodes and relationships using UNWIND statements and to read data using cypher statements with parameters. `amazon-web-services2` has reached feature parity and is finally recommended over the earlier `amazon-web-services` and `kinesis` modules (Java). These will be deprecated in one of the next releases (). Long outstanding write support for `Kinesis` was added (). Configuration was simplified and made consistent across all IOs, including the usage of `AwsOptions` (, , ). Additionally, there's a long list of recent improvements and fixes to `S3` Filesystem (, , , , ), `DynamoDB` IO (, ), `SQS` IO (, ) and others. Pipeline dependencies supplied through `--requirementsfile` will now be staged to the runner using binary distributions (wheels) of the PyPI packages for linuxx8664 platform (). To restore the behavior to use source distributions, set pipeline option `--requirementscacheonlysources`. To skip staging the packages at submission time, set pipeline option `--requirements_cache=skip` (Python). The Flink runner now supports Flink 1.14.x (). Interactive Beam now supports remotely executing Flink pipelines on Dataproc (Python) (). (Python) Previously `DoFn.inferoutputtypes` was expected to return `Iterable. (`amazon-web-services2`) The types of `awsRegion` / `endpoint` in `AwsOptions` changed from String to `Region` / `URI` (). Beam 2.38.0 will be the last minor release to support Flink 1.11. (`amazon-web-services2`) Client providers (`withXYZClientProvider()`) as well as IO specific `RetryConfiguration`s are deprecated, instead use `withClientConfiguration()` or `AwsOptions` to configure AWS IOs / clients. Custom implementations of client providers shall be replaced with a respective `ClientBuilderFactory` and configured through `AwsOptions` (). Fix S3 copy for large objects (Java) () Fix quadratic behavior of pipeline canonicalization (Go) () This caused unnecessarily long pre-processing times before job submission for large complex pipelines. Fix `pyarrow` version parsing (Python)() Some pipelines that use Java SpannerIO may raise a NPE when the project ID is not specified () Java 17 support for Dataflow (). Users using Dataflow Runner V2 may see issues with state cache due to inaccurate object sizes (). ZetaSql is currently unsupported (). Python 3.9 support in Apache Beam (). Go SDK now has wrappers for the following Cross Language Transforms from Java, along with automatic expansion service startup for each. JDBCIO (). Debezium (). BeamSQL (). BiqQuery (). KafkaIO now also has automatic expansion service startup. (). DataFrame API now supports pandas 1.4.x (). Go SDK DoFns can now observe trigger panes directly (). Added option to specify a caching directory in Interactive Beam (Python) (). Added support for caching batch pipelines to GCS in Interactive Beam (Python) (). On rare occations, Python Datastore source may swallow some exceptions. Users are adviced to upgrade to Beam 2.38.0 or later () On rare occations, Python GCS source may swallow some exceptions. Users are adviced to upgrade to Beam 2.38.0 or later () Support for stopReadTime on KafkaIO SDF (Java).(). Added ability to register URI schemes to use the S3 protocol via FileIO using amazon-web-services2 (amazon-web-services already had this ability). (, ). Added support for cloudpickle as a pickling library for Python SDK (). To use cloudpickle, set pipeline option: --pickler_lib=cloudpickle Added option to specify triggering frequency when streaming to BigQuery (Python) (). Added option to enable caching uploaded artifacts across job runs for Python Dataflow jobs (). To enable, set pipeline option: --enableartifactcaching, this will be enabled by default in a future release. Updated the jedis from 3.x to 4.x to Java

If you are using RedisIO and using jedis directly, please refer to to update it. (). Datatype of timestamp fields in `SqsMessage` for AWS IOs for SDK v2 was changed from `String` to `long`, visibility of all fields was fixed from `package private` to `public` . Properly check output timestamps on elements output from DoFns, timers, and onWindowExpiration in Java . Fixed a bug with DeferredDataFrame.xs when used with a non-tuple key (). Users may encounter an unexpected java.lang.ArithmeticException when outputting a timestamp for an element further than allowedSkew from an allowed DoFN skew set to a value more than Integer.MAX_VALUE. On rare occations, Python Datastore source may swallow some exceptions. Users are adviced to upgrade to Beam 2.38.0 or later () On rare occations, Python GCS source may swallow some exceptions. Users are adviced to upgrade to Beam 2.38.0 or later () On rare occations, Java SpannerIO source may swallow some exceptions. Users are adviced to upgrade to Beam 2.37.0 or later () MultiMap side inputs are now supported by the Go SDK (). Side inputs are supported within Splittable DoFns for Dataflow Runner V1 and Dataflow Runner V2. (). Upgrades Log4j version used in test suites (Apache Beam testing environment only, not for end user consumption) to 2.17.0(). Note that Apache Beam versions do not depend on the Log4j 2 dependency (log4j-core) impacted by . However we urge users to update direct and indirect dependencies (if any) on Log4j 2 to the latest version by updating their build configuration and redeploying impacted pipelines. We changed the data type for ranges in `JdbcIO.readWithPartitions` from `int` to `long` (). This is a relatively minor breaking change, which we're implementing to improve the usability of the transform without increasing cruft. This transform is relatively new, so we may implement other breaking changes in the future to improve its usability. Side inputs are supported within Splittable DoFns for Dataflow Runner V1 and Dataflow Runner V2. (). Added custom delimiters to Python TextIO reads (). Added escapechar parameter to Python TextIO reads (). Splittable reading is enabled by default while reading data with ParquetIO (). DoFn Execution Time metrics added to Go (). Cross-bundle side input caching is now available in the Go SDK for runners that support the feature by setting the EnableSideInputCache hook (). Upgraded the GCP Libraries BOM version to 24.0.0 and associated dependencies ([BEAM-11205]( https://issues.apache.org/jira/browse/BEAM-11205)). For Google Cloud client library versions set by this BOM, see . Removed avro-python3 dependency in AvroIO. Fastavro has already been our Avro library of choice on Python 3. Boolean use_fastavro is left for api compatibility, but will have no effect.(). MultiMap side inputs are now supported by the Go SDK (). Remote packages can now be downloaded from locations supported by apache_beam.io.filesystems. The files will be downloaded on Stager and uploaded to staging location. For more information, see A new URN convention was adopted for cross-language transforms and existing URNs were updated. This may break advanced use-cases, for example, if a custom expansion service is used to connect diffrent Beam Java and Python versions. (). The upgrade to Calcite 1.28.0 introduces a breaking change in the SUBSTRING function in SqlTransform, when used with the Calcite dialect (, ). ListShards (with DescribeStreamSummary) is used instead of DescribeStream to list shards in Kinesis streams (AWS SDK v2). Due to this change, as mentioned in , for fine-grained IAM policies it is required to update them to allow calls to ListShards and DescribeStreamSummary APIs. For more information, see (). Non-splittable reading is deprecated while reading data with ParquetIO (). Properly map main input windows to side input windows by default (Go)

Fixed data loss when writing to DynamoDB without setting deduplication key names (Java) (). Go SDK Examples now have types and functions registered. (Go) () Users of beam-sdks-java-io-hcatalog (and beam-sdks-java-extensions-sql-hcatalog) must take care to override the transitive log4j dependency when they add a hive dependency (). On rare occations, Python Datastore source may swallow some exceptions. Users are adviced to upgrade to Beam 2.38.0 or later () On rare occations, Python GCS source may swallow some exceptions. Users are adviced to upgrade to Beam 2.38.0 or later () On rare occations, Java SpannerIO source may swallow some exceptions. Users are adviced to upgrade to Beam 2.37.0 or later () The Beam Java API for Calcite SqlTransform is no longer experimental (). Python's ParDo (Map, FlatMap, etc.) transforms now suport a `withexceptionhandling` option for easily ignoring bad records and implementing the dead letter pattern. `ReadFromBigQuery` and `ReadAllFromBigQuery` now run queries with BATCH priority by default. The `query_priority` parameter is introduced to the same transforms to allow configuring the query priority (Python) (). added to `ReadFromBigQuery`. The newly introduced `method` parameter can be set as `DIRECT_READ` to use the Storage Read API. The default is `EXPORT` which invokes a BigQuery export request. (Python) (). fields when using `ReadFromBigQuery`. This parameter can only* be used when `method = DIRECT_READ`(Python) (). as a sink in RedisIO () Upgraded to Calcite 1.26.0 (). Added a new `dataframe` extra to the Python SDK that tracks `pandas` versions we've verified compatibility with. We now recommend installing Beam with `pip install apache-beam[dataframe]` when you intend to use the DataFrame API (). Added an of deploying Python Apache Beam job with Spark Cluster SQL Rows are no longer flattened (). ). was fixed. It used to silently pass incorrect null data read from JdbcIO. Pipelines affected by this will now start throwing failures instead of silently passing incorrect data. Fixed error while writing multiple DeferredFrames to csv (Python) (). Fixed error when importing the DataFrame API with pandas 1.0.x installed (). Fixed top.SmallestPerKey implementation in the Go SDK (). On rare occations, Python Datastore source may swallow some exceptions. Users are adviced to upgrade to Beam 2.38.0 or later () On rare occations, Python GCS source may swallow some exceptions. Users are adviced to upgrade to Beam 2.38.0 or later () On rare occations, Java SpannerIO source may swallow some exceptions. Users are adviced to upgrade to Beam 2.37.0 or later () Go SDK is no longer experimental, and is officially part of the Beam release process. Matching Go SDK containers are published on release. Batch usage is well supported, and tested on Flink, Spark, and the Python Portable Runner. SDK Tests are also run against Google Cloud Dataflow, but this doesn't indicate reciprical support. The SDK supports Splittable DoFns, Cross Language transforms, and most Beam Model basics. Go Modules are now used for dependency management. This is a breaking change, see Breaking Changes for resolution. Easier path to contribute to the Go SDK, no need to set up a GO\_PATH. Minimum Go version is now Go v1.16 See the announcement blogpost for full information once published. <!-- Support for X source added (Java/Python) (). --> Projection pushdown in SchemaIO (). Upgrade Flink runner to Flink versions 1.13.2, 1.12.5 and 1.11.4 (). Go SDK pipelines require new import paths to use this release due to migration to Go Modules. `go.mod` files will need to change to require `github.com/apache/beam/sdks/v2`. Code depending on beam imports need to include v2 on the module path. Fix by'v2' to the import paths, turning `.../sdks/go/...` to

No other code change should be required to use v2.33.0 of the Go SDK. Since release 2.30.0, "The AvroCoder changes for BEAM-2303 \). Python GBK will stop supporting unbounded PCollections that have global windowing and a default trigger in Beam 2.34. This can be overriden with `--allowunsafetriggers`. (). Python GBK will start requiring safe triggers or the `--allowunsafetriggers` flag starting with Beam 2.34. (). Workaround to not delete orphaned files to avoid missing events when using Python WriteToFiles in streaming pipeline ()) Spark 2.x users will need to update Spark's Jackson runtime dependencies (`spark.jackson.version`) to at least version 2.9.2, due to Beam updating its dependencies. Go SDK jobs may produce "Failed to deduce Step from MonitoringInfo" messages following successful job execution. The messages are benign and don't indicate job failure. These are due to not yet handling PCollection metrics. On rare occations, Python GCS source may swallow some exceptions. Users are adviced to upgrade to Beam 2.38.0 or later () The [Beam DataFrame API](https://beam.apache.org/documentation/dsls/dataframes/overview/) is no longer experimental! We've spent the time since the [2.26.0 preview announcement](https://beam.apache.org/blog/dataframe-api-preview-available/) implementing the most frequently used pandas operations (), improving and , adding , integrating DataFrames with [interactive Beam](https://beam.apache.org/releases/pydoc/current/apachebeam.runners.interactive.interactivebeam.html), and of course finding and fixing . Leaving experimental just means that we now have high confidence in the API and recommend its use for production workloads. We will continue to improve the API, guided by your . New experimental Firestore connector in Java SDK, providing sources and sinks to Google Cloud Firestore (). Added ability to use JdbcIO.Write.withResults without statement and preparedStatementSetter. () Added ability to register URI schemes to use the S3 protocol via FileIO. (). Respect number of shards set in SnowflakeWrite batch mode. () Java SDK: Update Google Cloud Healthcare IO connectors from using v1beta1 to using the GA version. Add support to convert Beam Schema to Avro Schema for JDBC LogicalTypes: `VARCHAR`, `NVARCHAR`, `LONGVARCHAR`, `LONGNVARCHAR`, `DATE`, `TIME` (Java)(). Reading from JDBC source by partitions (Java) (). PubsubIO can now write to a dead-letter topic after a parsing error (Java)(). New append-only option for Elasticsearch sink (Java) DatastoreIO: Write and delete operations now follow automatic gradual ramp-up, in line with best practices (Java/Python) (, ). ListShards (with DescribeStreamSummary) is used instead of DescribeStream to list shards in Kinesis streams. Due to this change, as mentioned in , for fine-grained IAM policies it is required to update them to allow calls to ListShards and DescribeStreamSummary APIs. For more information, see (). Python GBK will stop supporting unbounded PCollections that have global windowing and a default trigger in Beam 2.33. This can be overriden with `--allowunsafetriggers`. (). Python GBK will start requiring safe triggers or the `--allowunsafetriggers` flag starting with Beam 2.33. (). Fixed race condition in RabbitMqIO causing duplicate acks (Java) ()) On rare occations, Python GCS source may swallow some exceptions. Users are adviced to upgrade to Beam 2.38.0 or later () Fixed bug in ReadFromBigQuery when a RuntimeValueProvider is used as value of table argument (Python) (). `CREATE FUNCTION` DDL statement added to Calcite SQL syntax. `JAR` and `AGGREGATE` are now reserved keywords. (). Flink 1.13 is now supported by the Flink runner (). Python `TriggerFn` has a new `maylosedata` method to signal potential data loss. Default behavior assumes safe (necessary for backwards compatibility). See Deprecations for potential impact of overriding this. (). Python Row objects are now sensitive to field order. So `Row(x=3, y=4)` is no longer considered equal to `Row(y=4, x=3)` (BEAM-11929). Kafka Beam SQL tables now ascribe meaning to the LOCATION field; previously it was ignored if

`TopCombineFn` disallow `compare` as its argument (Python) (). Drop support for Flink 1.10 (). Python GBK will stop supporting unbounded PCollections that have global windowing and a default trigger in Beam 2.33. This can be overriden with `--allowunsafetriggers`. (). Python GBK will start requiring safe triggers or the `--allowunsafetriggers` flag starting with Beam 2.33. (). Allow splitting apart document serialization and IO for ElasticsearchIO Support Bulk API request size optimization through addition of ElasticsearchIO.Write.withStatefulBatches Added capability to declare resource hints in Java and Python SDKs (). Added Spanner IO Performance tests for read and write. (Python) (). Added support for accessing GCP PubSub Message ordering keys, message IDs and message publish timestamp (Python) (). DataFrame API: Added support for collecting DataFrame objects in interactive Beam () DataFrame API: Added module () Upgraded the GCP Libraries BOM version to 20.0.0 (). For Google Cloud client library versions set by this BOM, see . Drop support for Flink 1.8 and 1.9 (). MongoDbIO: Read.withFilter() and Read.withProjection() are removed since they are deprecated since Beam 2.12.0 (). RedisIO.readAll() was removed since it was deprecated since Beam 2.13.0. Please use RedisIO.readKeyPatterns() for the equivalent functionality. (). MqttIO.create() with clientId constructor removed because it was deprecated since Beam 2.13.0 (). Spark Classic and Portable runners officially support Spark 3 (). Official Java 11 support for most runners (Dataflow, Flink, Spark) (). DataFrame API now supports GroupBy.apply (). Added support for S3 filesystem on AWS SDK V2 (Java) () DataFrame API now supports pandas 1.2.x (). Multiple DataFrame API bugfixes (, ) Deterministic coding enforced for GroupByKey and Stateful DoFns. Previously non-deterministic coding was allowed, resulting in keys not properly being grouped in some cases. () To restore the old behavior, one can register `FakeDeterministicFastPrimitivesCoder` with `beam.coders.registry.registerfallbackcoder(beam.coders.coders.FakeDeterministicFastPrimitivesCoder())` or use the `allownondeterministickeycoders` pipeline option. Support for Flink 1.8 and 1.9 will be removed in the next release (2.30.0) (). Many improvements related to Parquet support (, , and ) Hash Functions in BeamSQL () Hash functions in ZetaSQL () Create ApproximateDistinct using HLL Impl () SpannerIO supports using BigDecimal for Numeric fields () Add Beam schema support to ParquetIO () Support ParquetTable Writer () GCP BigQuery sink (streaming inserts) uses runner determined sharding () PubSub support types: TIMESTAMP, DATE, TIME, DATETIME () ParquetIO add methods readGenericRecords and readFilesGenericRecords can read files with an unknown schema. See and () Added support for thrift in KafkaTableProvider () Added support for HadoopFormatIO to skip key/value clone () Support Conversion to GenericRecords in Convert.to transform (). Support writes for Parquet Tables in Beam SQL (). Support reading Parquet files with unknown schema () Support user configurable Hadoop Configuration flags for ParquetIO () Expose commitoffsetinfinalize and timestamppolicy to ReadFromKafka () S3 options does not provided to boto3 client while using FlinkRunner and Beam worker pool container () HDFS not deduplicating identical configuration paths () Hash Functions in BeamSQL () Create ApproximateDistinct using HLL Impl () Add Beam schema support to ParquetIO () Add a Deque Encoder () Hash functions in ZetaSQL () Refactor ParquetTableProvider () Add JVM properties to JavaJobServer () Single source of truth for supported Flink versions () Use metric for Python BigQuery streaming insert API latency logging () Use metric for Java BigQuery streaming insert API latency logging () Upgrade Flink runner to Flink versions 1.12.1 and 1.11.3 () Upgrade Beam base image to use Tensorflow 2.4.1 () Create Beam GCP BOM () The Java artifacts "beam-sdks-java-io-kinesis", "beam-sdks-java-io-google-cloud-platform", and "beam-sdks-java-extensions-sql-zetasql" declare Guava 30.1-jre dependency (It was 25.1-jre in Beam 2.27.0). This new Guava version may introduce dependency conflicts if your project or dependencies rely on removed

If affected, ensure to use an appropriate Guava version via `dependencyManagement` in Maven and `force` in Gradle. ReadFromMongoDB can now be used with MongoDB Atlas (Python) (.) ReadFromMongoDB/WriteToMongoDB will mask password in display_data (Python) (.) Support for X source added (Java/Python) (). There is a new transform `ReadAllFromBigQuery` that can receive multiple requests to read data from BigQuery at pipeline runtime. See , and . Beam modules that depend on Hadoop are now tested for compatibility with Hadoop 3 (). (Hive/HCatalog pending) Publishing Java 11 SDK container images now supported as part of Apache Beam release process. () Added Cloud Bigtable Provider extension to Beam SQL (, ) Added a schema provider for thrift data () Added combiner packing pipeline optimization to Dataflow runner. () Support for the Deque structure by adding a coder () HBaseIO hbase-shaded-client dependency should be now provided by the users (). `--region` flag in amazon-web-services2 was replaced by `--awsRegion` (). Splittable DoFn is now the default for executing the Read transform for Java based runners (Spark with bounded pipelines) in addition to existing runners from the 2.25.0 release (Direct, Flink, Jet, Samza, Twister2). The expected output of the Read transform is unchanged. Users can opt-out using `--experiments=usedeprecatedread`. The Apache Beam community is looking for feedback for this change as the community is planning to make this change permanent with no opt-out. If you run into an issue requiring the opt-out, please send an e-mail to specifically referencing BEAM-10670 in the subject line and why you needed to opt-out. (Java) () Java BigQuery streaming inserts now have timeouts enabled by default. Pass `--HTTPWriteTimeout=0` to revert to the old behavior. () Added support for Contextual Text IO (Java), a version of text IO that provides metadata about the records (). Support for this IO is currently experimental. Specifically, there are no update-compatibility guarantees* for streaming jobs with this IO between current future verisons of Apache Beam SDK. Added support for avro payload format in Beam SQL Kafka Table () Added support for json payload format in Beam SQL Kafka Table () Added support for protobuf payload format in Beam SQL Kafka Table () Added support for avro payload format in Beam SQL Pubsub Table () Added option to disable unnecessary copying between operators in Flink Runner (Java) () Added CombineFn.setup and CombineFn.teardown to Python SDK. These methods let you initialize the CombineFn's state before any of the other methods of the CombineFn is executed and clean that state up later on. If you are using Dataflow, you need to enable Dataflow Runner V2 by passing `--experiments=userunnerv2` before using this feature. () Added support for NestedValueProvider for the Python SDK (). BigQuery's DATETIME type now maps to Beam logical type org.apache.beam.sdk.schemas.logicaltypes.SqlTypes.DATETIME Pandas 1.x is now required for dataframe operations. Non-idempotent combiners built via `CombineFn.fromcallable()` or `CombineFn.maybefrom_callable()` can lead to incorrect behavior. (). Splittable DoFn is now the default for executing the Read transform for Java based runners (Direct, Flink, Jet, Samza, Twister2). The expected output of the Read transform is unchanged. Users can opt-out using `--experiments=usedeprecatedread`. The Apache Beam community is looking for feedback for this change as the community is planning to make this change permanent with no opt-out. If you run into an issue requiring the opt-out, please send an e-mail to specifically referencing BEAM-10670 in the subject line and why you needed to opt-out. (Java) () Added cross-language support to Java's KinesisIO, now available in the Python module `apache_beam.io.kinesis` (, ). Update Snowflake JDBC dependency for SnowflakeIO () Added cross-language support to Java's

now available in the Python module `apache_beam.io.snowflake` (). Added delete function to Java's `ElasticsearchIO#Write`. Now, Java's ElasticsearchIO can be used to selectively delete documents using `withIsDeleteFn` function (). Java SDK: Added new IO connector for InfluxDB - InfluxDbIO (). Config options added for Python's S3IO () Support for repeatable fields in JSON decoder for `ReadFromBigQuery` added. (Python) () Added an opt-in, performance-driven runtime type checking system for the Python SDK (). More details will be in an upcoming . Added support for Python 3 type annotations on PTransforms using typed PCollections (). More details will be in an upcoming . Improved the Interactive Beam API where recording streaming jobs now start a long running background recording job. Running ib.show() or ib.collect() samples from the recording (). In Interactive Beam, ib.show() and ib.collect() now have "n" and "duration" as parameters. These mean read only up to "n" elements and up to "duration" seconds of data read from the recording (). Initial preview of support. See also example at apachebeam/examples/wordcountdataframe.py Fixed support for type hints on `@ptransform_fn` decorators in the Python SDK. () This has not enabled by default to preserve backwards compatibility; use the `--typecheckadditional=ptransform_fn` flag to enable. It may be enabled by default in future versions of Beam. Python 2 and Python 3.5 support dropped (, ). Pandas 1.x allowed. Older version of Pandas may still be used, but may not be as well tested. Python transform ReadFromSnowflake has been moved from `apachebeam.io.external.snowflake` to `apachebeam.io.snowflake`. The previous path will be removed in the future versions. Dataflow streaming timers once against not strictly time ordered when set earlier mid-bundle, as the fix for introduced more severe bugs and has been rolled back. Default compressor change breaks dataflow python streaming job update compatibility. Please use python SDK version <= 2.23.0 or > 2.25.0 if job update is critical.() Apache Beam 2.24.0 is the last release with Python 2 and Python 3.5 support. New overloads for BigtableIO.Read.withKeyRange() and BigtableIO.Read.withRowFilter() methods that take ValueProvider as a parameter (Java) (). The WriteToBigQuery transform (Python) in Dataflow Batch no longer relies on BigQuerySink by default. It relies on a new, fully-featured transform based on file loads into BigQuery. To revert the behavior to the old implementation, you may use `--experiments=uselegacybq_sink`. Add cross-language support to Java's JdbcIO, now available in the Python module `apache_beam.io.jdbc` (, ). Add support of AWS SDK v2 for KinesisIO.Read (Java) (). Add streaming support to SnowflakeIO in Java SDK () Support reading and writing to Google Healthcare DICOM APIs in Python SDK () Add dispositions for SnowflakeIO.write () Add cross-language support to SnowflakeIO.Read now available in the Python module `apache_beam.io.external.snowflake` (). Shared library for simplifying management of large shared objects added to Python SDK. An example use case is sharing a large TF model object across threads (). Dataflow streaming timers are not strictly time ordered when set earlier mid-bundle (). OnTimerContext should not create a new one when processing each element/timer in FnApiDoFnRunner () Key should be available in @OnTimer methods (Spark Runner) () WriteToBigQuery transforms now require a GCS location to be provided through either customgcstemp_location in the constructor of WriteToBigQuery or the fallback option --templocation, or pass method="STREAMINGINSERTS" to WriteToBigQuery (). Python SDK now understands `typing.FrozenSet` type hints, which are not interchangeable with `typing.Set`. You may need to update your pipelines if type checking fails. () When a timer fires but is reset prior to being executed, a watermark hold may be leaked, causing a stuck pipeline . Default compressor change breaks dataflow python streaming job update compatibility. Please use python SDK version <= 2.23.0 or >

if job update is critical.() Twister2 Runner (). Python 3.8 support (). Support for reading from Snowflake added (Java) (). Support for writing to Splunk added (Java) (). Support for assume role added (Java) (). A new transform to read from BigQuery has been added: `apache_beam.io.gcp.bigquery.ReadFromBigQuery`. This transform is experimental. It reads data from BigQuery by exporting data to Avro files, and reading those files. It also supports reading data by exporting to JSON files. This has small differences in behavior for Time and Date-related fields. See Pydoc for more information. Update Snowflake JDBC dependency and add application=beam to connection URL (). `RowJson.RowJsonDeserializer`, `JsonToRow`, and `PubsubJsonTableProvider` now accept "implicit nulls" by default when deserializing JSON (Java) (). Previously nulls could only be represented with explicit null values, as in `{"foo": "bar", "baz": null}`, whereas an implicit null like `{"foo": "bar"}` would raise an exception. Now both JSON strings will yield the same result by default. This behavior can be overridden with `RowJson.RowJsonDeserializer#withNullBehavior`. Fixed a bug in `GroupIntoBatches` experimental transform in Python to actually group batches by key. This changes the output type for this transform (). Remove Gearpump runner. () Remove Apex runner. () RedisIO.readAll() is deprecated and will be removed in 2 versions, users must use RedisIO.readKeyPatterns() as a replacement (). Fixed X (Java/Python) (). Basic Kafka read/write support for DataflowRunner (Python) (). Sources and sinks for Google Healthcare APIs (Java)(). Support for writing to Snowflake added (Java) (). `--workerCacheMB` flag is supported in Dataflow streaming pipeline () `--directnumworkers=0` is supported for FnApi runner. It will set the number of threads/subprocesses to number of cores of the machine executing the pipeline (). Python SDK now has experimental support for SqlTransform (). Add OnWindowExpiration method to Stateful DoFn (). Added PTransforms for Google Cloud DLP (Data Loss Prevention) services integration (): Inspection of data, Deidentification of data, Reidentification of data. Add a more complete I/O support matrix in the documentation site (). Upgrade Sphinx to 3.0.3 for building PyDoc. Added a PTransform for image annotation using Google Cloud AI image processing service () Dataflow streaming timers are not strictly time ordered when set earlier mid-bundle (). The Python SDK now requires `--job_endpoint` to be set when using `--runner=PortableRunner` (). Users seeking the old default behavior should set `--runner=FlinkRunner` instead. Python: Deprecated module `apache_beam.io.gcp.datastore.v1` has been removed as the client it uses is out of date and does not support Python 3 (). Please migrate your code to use . See the updated for example usage. Python SDK: Added integration tests and updated batch write functionality for Google Cloud Spanner transform (). Python SDK will now use Python 3 type annotations as pipeline type hints. () If you suspect that this feature is causing your pipeline to fail, calling `apachebeam.typehints.disabletype_annotations()` before pipeline creation will disable is completely, and decorating specific functions (such as `process()`) with `@apachebeam.typehints.noannotations` will disable it for that function. More details will be in and an upcoming . Java SDK: Introducing the concept of options in Beam Schemas. These options add extra context to fields and schemas. This replaces the current Beam metadata that is present in a FieldType only, options are available in fields and row schemas. Schema options are fully typed and can contain complex rows. Remark: Schema aware is still experimental. () Java SDK: The protobuf extension is fully schema aware and also includes protobuf option conversion to beam schema options. Remark: Schema aware is still

() Added ability to write to BigQuery via Avro file loads (Python) () By default, file loads will be done using JSON, but it is possible to specify the tempfileformat parameter to perform file exports with AVRO. AVRO-based file loads work by exporting Python types into Avro types, so to switch to Avro-based loads, you will need to change your data types from Json-compatible types (string-type dates and timestamp, long numeric values as strings) into Python native types that are written to Avro (Python's date, datetime types, decimal, etc). For more information see https://cloud.google.com/bigquery/docs/loading-data-cloud-storage-avro#avro_conversions. Added integration of Java SDK with Google Cloud AI VideoIntelligence service () Added integration of Java SDK with Google Cloud AI natural language processing API () `docker-pull-licenses` tag was introduced. Licenses/notices of third party dependencies will be added to the docker images when `docker-pull-licenses` was set. The files are added to `/opt/apache/beam/thirdpartylicenses/`. By default, no licenses/notices are added to the docker images. () Dataflow runner now requires the `--region` option to be set, unless a default value is set in the environment (). See for more details. HBaseIO.ReadAll now requires a PCollection of HBaseIO.Read objects instead of HBaseQuery objects (). ProcessContext.updateWatermark has been removed in favor of using a WatermarkEstimator (). Coder inference for PCollection of Row objects has been disabled (). Go SDK docker images are no longer released until further notice. Java SDK: Beam Schema FieldType.getMetadata is now deprecated and is replaced by the Beam Schema Options, it will be removed in version `2.23.0`. () The `--zone` option in the Dataflow runner is now deprecated. Please use `--worker_zone` instead. () Java SDK: Adds support for Thrift encoded data via ThriftIO. () Java SDK: KafkaIO supports schema resolution using Confluent Schema Registry. () Java SDK: Add Google Cloud Healthcare IO connectors: HL7v2IO and FhirIO () Python SDK: Support for Google Cloud Spanner. This is an experimental module for reading and writing data from Google Cloud Spanner (). Python SDK: Adds support for standard HDFS URLs (with server name). (). New AnnotateVideo & AnnotateVideoWithContext PTransform's that integrates GCP Video Intelligence functionality. (Python) () New AnnotateImage & AnnotateImageWithContext PTransform's for element-wise & batch image annotation using Google Cloud Vision API. (Python) () Added a PTransform for inspection and deidentification of text using Google Cloud DLP. (Python) () New AnnotateText PTransform that integrates Google Cloud Natural Language functionality (Python) () ReadFromBigQuery now supports value providers for the query string (Python) () Direct runner for FnApi supports further parallelism (Python) () Support for @RequiresTimeSortedInput in Flink and Spark (Java) () ReadFromPubSub(topic=<topic>) in Python previously created a subscription under the same project as the topic. Now it will create the subscription under the project specified in pipelineoptions. If the project is not specified in pipelineoptions, then it will create the subscription under the same project as the topic. (). SpannerAccessor in Java is now package-private to reduce API surface. `SpannerConfig.connectToSpanner` has been moved to `SpannerAccessor.create`. (). ParquetIO hadoop dependency should be now provided by the users (). Docker images will be deployed to repositories from 2.20. They used to be deployed to repository. () PCollections now have tags inferred from the result type (e.g. the keys of a dict or index of a tuple). Users may expect the old implementation which gave PCollection output ids a monotonically increasing id. To go back to the old implementation, use the `forcegeneratedpcollectionoutputids` experiment. Fixed numpy operators in ApproximateQuantiles (Python) (). Fixed exception when running in IPython notebook (Python) (). Fixed Flink uberjar job termination bug. () Fixed SyntaxError in process worker startup () Key should be available in @OnTimer methods (Java) (). ().