cloud-fan commented on code in PR #40359: URL: https://github.com/apache/spark/pull/40359#discussion_r1132005699
########## sql/core/src/main/scala/org/apache/spark/sql/jdbc/OracleDialect.scala: ########## @@ -181,19 +181,35 @@ private case object OracleDialect extends JdbcDialect { if (limit > 0) s"WHERE rownum <= $limit" else "" } + override def getOffsetClause(offset: Integer): String = { + // Oracle doesn't support OFFSET clause. + // We can use rownum > n to skip some rows in the result set. + // Note: rn is an alias of rownum. Review Comment: every table in oracle has the `rn` column? -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org