2개 답변
- 최신
- 최다 투표
- 가장 많은 댓글
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
답변함 일 년 전
관련 콘텐츠
- AWS 공식업데이트됨 3년 전
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