2 réponses
- Le plus récent
- Le plus de votes
- La plupart des commentaires
0
Hi,
I have seen in past that string may give troubles in being passed to Lambda function. Can you try creating a n object holding the input, such as a POJO or just a Map<String, Object>?
Hope it helps ;)
0
Hi alatech I try this
public class ip_to_long implements RequestHandler<String, String>{
@Override
/*
* Takes a String as input, and converts all characters to lowercase.
*/
public String handleRequest(String event, Context context)
{
LambdaLogger logger = context.getLogger();
logger.log("EVENT TYPE: " + event.getClass().toString());
return event.toLowerCase();
}
}
In the AWS console is OK, but in athen query nothing :(
USING EXTERNAL FUNCTION handleRequest(s VARCHAR)
RETURNS VARCHAR
LAMBDA 'ip_to_long'
select handleRequest('test')
I dont know if i something is missing to accept in athena queries
thanks for all
répondu il y a un an
Contenus pertinents
- demandé il y a un an
- demandé il y a 10 mois
- AWS OFFICIELA mis à jour il y a 2 ans
- AWS OFFICIELA mis à jour il y a 3 ans
- AWS OFFICIELA mis à jour il y a un an
Thanks for all alatech. In AWS console it is OK but in athena query no, i dont know if something is missing in configuration to accept athena queries and string encoding. Thanks