Ultimate access to all questions.
A data engineer is tasked with processing data and wishes to perform unit testing to ensure that a query returns more than zero rows. The engineer has written the following code snippet to obtain the row count: row_count = spark.sql('select count(*) from table_name').collect()[0][0]
. Which Python statement correctly tests this functionality to confirm the row count exceeds zero?