Skip to main content
← Back to index page

1.1.0

New features:

  • Replication Constraint in Dynamo Config: Use the new replica_region parameter in the DynamoConfig to specify which regions you want to constrain replication to. This allows you to avoid costly replication charges to your satellite regions that you don't need to serve traffic to.

  • Migrate off of Python 3.7 in EMR: You can now run EMR compute on Python 3.9 regardless of which EMR version you use. This allows users running in EMR version 6.X to get off of Python 3.7, which reached end of life in June 2023 and is no longer receiving security upgrades. To set the python_version parameter in the EMRClusterConfig:

    EMRClusterConfig(emr_version="emr-6.7.0", python_version="python_3_9_13")

    In SDK 1.2, the Python version will be set to "python_3_9_13" by default. We recommend using the flag in your 1.1 upgrade to ensure a smooth transition

  • Improved Unit Testing Support: Using the MockContext class, you can now set custom mock secrets and resources for your queries, enabling faster development and iteration in unit test and notebook environments. View the Unit Testing docs for more details.

    mock_context = MockContext(secrets={"my_secret": "my_secret_value"})

    actual = transaction_amount_is_high.run_transformation(
    input_data={
    "transaction_request": transaction_request,
    "context": mock_context,
    },
    ).to_pandas()

    expected = pandas.DataFrame({"transaction_amount_is_high": [0, 1, 1]})
    pandas.testing.assert_frame_equal(actual, expected)

New features in Private Preview:

  • API Resources: Seamlessly integrate external APIs into your Feature Views using the new @resource_provider decorator. Available for Rift-based Batch and Realtime Feature Views. See API Resources for examples.

  • Calculations: Speed up the execution of RealtimeFeatureViews using Calculations. Calculations define features through simple sql-like expressions, removing the need for python transformation functions in realtime feature views. This delivers a performance boost in offline and online serving.

    the transformation as a Calculation instead of a python function.

See the upgrade guide.