cloud-fan commented on code in PR #39660: URL: https://github.com/apache/spark/pull/39660#discussion_r1090133283
########## sql/core/src/main/scala/org/apache/spark/sql/jdbc/JdbcDialects.scala: ########## @@ -544,6 +544,14 @@ abstract class JdbcDialect extends Serializable with Logging { if (limit > 0 ) s"LIMIT $limit" else "" } + /** + * MS SQL Server version of `getLimitClause`. + * This is only supported by SQL Server as it uses TOP (N) instead. Review Comment: The problem is TOP (N) is just the SQLServer syntax of LIMIT. It's really weird to have a new dialect API for it, as it's different from table sample which is a new feature. -- 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