10110346 commented on a change in pull request #23901: [MINOR]Remove 
unnecessary gets when getting a value from map.
URL: https://github.com/apache/spark/pull/23901#discussion_r261446980
 
 

 ##########
 File path: 
sql/core/src/test/scala/org/apache/spark/sql/sources/v2/DataSourceV2Suite.scala
 ##########
 @@ -330,7 +330,7 @@ class DataSourceV2Suite extends QueryTest with 
SharedSQLContext {
       val options = df.queryExecution.optimizedPlan.collectFirst {
         case d: DataSourceV2Relation => d.options
       }.get
-      assert(options.get(optionName).get == "false")
+      assert(options(optionName) == "false")
 
 Review comment:
   ok, thanks

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to