2 Risposte
- Più recenti
- Maggior numero di voti
- Maggior numero di commenti
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
con risposta un anno fa
Contenuto pertinente
- AWS UFFICIALEAggiornata 3 anni fa
- AWS UFFICIALEAggiornata 2 anni fa
- AWS UFFICIALEAggiornata 2 anni fa
- AWS UFFICIALEAggiornata 3 anni fa
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