Closed pablobd closed 4 days ago
As the documentation of BatchGetRequest
shows, the projection
field should be an instance of ProjectionExpression
. These get constructed using the F
class and it handles parametrizing the paths for you.
Your request should probably be something like this:
request = {
"ml_integ.feature_engineering.amount_binned__counterparty_name": BatchGetRequest(
keys=[
{
"_feature_store_internal__primary_keys": '["[-50, 0]", "97e8256663aac93993d112a3958658de72240569"]'
}
],
projection=F("_feature_store_internal__primary_keys") & F("subCategoryRulesCounterAC") & F("subCategoryUserCounterAC") & F("ruleUserConfusionMetricsCounterAC"),
)
}
I am using Python 3.10.13 and aiodynamo==24.1
I am trying to a client.batch_get.
r = await client.batch_get(request)
Request is the following:
I am getting the following error,
The request key (which works well) using boto3 sync client is the following:
Note that the
ExpressionAttributeNames
is necessary because it starts with underscore and having it directly inProjectionExpression
throws an error.