You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Columns: awsGlobalRegionColumns([]*plugin.Column{
{
Name: "account_aliases",
Description: "A list of aliases associated with the account, if applicable.",
Type: proto.ColumnType_JSON,
Transform: transform.FromField("Aliases"),
Hydrate: plugin.HydrateFunc(GetAccountAliases).Memoize()
},
Instead the function to memoize must be wrapped in another hydrate:
func GetAccountAliasesUncached(ctx context.Context, d *QueryData, h *HydrateData) (interface{}, error){
// do stuff
}
var GetAccountAliasesCached = HydrateFunc(GetAccountAliasesUncached).Memoize()
func GetAccountAliasesMemoized(ctx context.Context, d *QueryData, h *HydrateData) (interface{}, error){
return GetAccountAliasesCached(ctx, d, h)
}
Columns: awsGlobalRegionColumns([]*plugin.Column{
{
Name: "account_aliases",
Description: "A list of aliases associated with the account, if applicable.",
Type: proto.ColumnType_JSON,
Transform: transform.FromField("Aliases"),
Hydrate: GetAccountAliases
},
The text was updated successfully, but these errors were encountered:
kaidaguerre
changed the title
The original function names for Memoized hydrate calls are incorrectly resolved
The original function names for Memoized hydrate calls are incorrectly resolved.
Feb 2, 2024
This usage is no longer supported:
Instead the function to memoize must be wrapped in another hydrate:
The text was updated successfully, but these errors were encountered: