final StatementBuilder statementBuilder = new StatementBuilder()
.where("id in (:id)")
.limit(segmentIds.size())
.orderBy("id ASC")
.withBindVariableValue("id", Sets.newHashSet(segmentIds));
AudienceSegmentPage page = audienceSegmentService.getAudienceSegmentsByStatement(statementBuilder.toStatement());
But getAudienceSegmentsByStatement always fails with SERVER ERROR.
Things I have tried:
1. SegmentIds as a list of Longs - SERVER ERROR
2 SegmentIds as a list of Strings - SERVER ERROR
3. Remove withBindVariableValue and hardcode the segmentIds in where clause: PASS
Any solution or workaround for this?
Thanks
Haresh