def METHOD_NAME(self):
    metadata = Metadata.of_table(
        "test",
        "non_incremental_query",
        "v1",
        TEST_DIR / "data" / "test_sql" / "moz-fx-data-test-project",
    )
    metadata.set_bigquery_partitioning(
        field="submission_date",
        partition_type=PartitionType.DAY,
        required=True,
        expiration_days=2,
    )
    assert metadata.bigquery.time_partitioning.field == "submission_date"
    assert metadata.bigquery.time_partitioning.type == PartitionType.DAY
    assert metadata.bigquery.time_partitioning.require_partition_filter
    assert metadata.bigquery.time_partitioning.expiration_days == 2
    assert metadata.bigquery.time_partitioning.expiration_ms == 2 * 86400000