What is the full stack trace of any errors you encountered?
java.lang.NullPointerException: Cannot invoke "java.util.List.iterator()" because the return value of "net.sf.jsqlparser.expression.AnalyticExpression.getOrderByElements()" is null
net.sf.jsqlparser.expression.ExpressionVisitorAdapter.visit(ExpressionVisitorAdapter.java:342)
net.sf.jsqlparser.expression.AnalyticExpression.accept(AnalyticExpression.java:73)
net.sf.jsqlparser.expression.ExpressionVisitorAdapter.visit(ExpressionVisitorAdapter.java:523)
net.sf.jsqlparser.statement.select.SelectExpressionItem.accept(SelectExpressionItem.java:46)
org.openrewrite.sql.SqlDetector$1$1.visit(SqlDetector.java:79)
net.sf.jsqlparser.statement.select.PlainSelect.accept(PlainSelect.java:145)
org.openrewrite.sql.SqlDetector$1.visit(SqlDetector.java:72)
net.sf.jsqlparser.statement.select.Select.accept(Select.java:30)
...
Are you interested in [contributing a fix to OpenRewrite]
What version of OpenRewrite are you using?
Group: org.openrewrite.recipe artifact: rewrite-sql version: 1.1.0-SNAPSHOT datedSnapshot: 1.1.0-20230820.181705-87
How are you running OpenRewrite?
Through the Moderne SaaS https://app.moderne.io/recipes/org.openrewrite.sql.FindSql?organizationId=RGVmYXVsdA%3D%3D
Can you share your configuration so that we can rule out any configuration issues? N/A
Is your project public? If so, can you share a link to it? https://github.com/spring-projects/spring-data-relational
What is the smallest, simplest way to reproduce the problem?
Run the FindSql recipe on the https://github.com/spring-projects/spring-data-relational repo.
What did you expect to see?
A result without error.
What did you see instead?
What is the full stack trace of any errors you encountered?
java.lang.NullPointerException: Cannot invoke "java.util.List.iterator()" because the return value of "net.sf.jsqlparser.expression.AnalyticExpression.getOrderByElements()" is null net.sf.jsqlparser.expression.ExpressionVisitorAdapter.visit(ExpressionVisitorAdapter.java:342) net.sf.jsqlparser.expression.AnalyticExpression.accept(AnalyticExpression.java:73) net.sf.jsqlparser.expression.ExpressionVisitorAdapter.visit(ExpressionVisitorAdapter.java:523) net.sf.jsqlparser.statement.select.SelectExpressionItem.accept(SelectExpressionItem.java:46) org.openrewrite.sql.SqlDetector$1$1.visit(SqlDetector.java:79) net.sf.jsqlparser.statement.select.PlainSelect.accept(PlainSelect.java:145) org.openrewrite.sql.SqlDetector$1.visit(SqlDetector.java:72) net.sf.jsqlparser.statement.select.Select.accept(Select.java:30) ...
Are you interested in [contributing a fix to OpenRewrite]
N/A