Github user mgaido91 commented on a diff in the pull request: https://github.com/apache/spark/pull/21789#discussion_r203684095 --- Diff: sql/hive-thriftserver/src/test/scala/org/apache/spark/sql/hive/thriftserver/HiveThriftServer2Suites.scala --- @@ -766,6 +774,14 @@ class HiveThriftHttpServerSuite extends HiveThriftJdbcTest { assert(resultSet.getString(2) === HiveUtils.builtinHiveVersion) } } + + test("Checks cast as float") { --- End diff -- I don't think so. If you add: ``` test("Checks cast as float") { withJdbcStatement() { statement => val resultSet = statement.executeQuery("SELECT CAST('4.56' AS FLOAT)") resultSet.next() assert(resultSet.getString(1) === "4.56") } } ``` to the abstract class you need to change nothing else and the test would be executed both as a part of HiveThriftHttpServerSuite with one mode and as a part of HiveThriftBinaryServerSuite with the other mode.
--- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org