Yang Jie created SPARK-45687:
--------------------------------

             Summary: Fix `Passing an explicit array value to a Scala varargs 
method is deprecated`
                 Key: SPARK-45687
                 URL: https://issues.apache.org/jira/browse/SPARK-45687
             Project: Spark
          Issue Type: Sub-task
          Components: Spark Core, SQL
    Affects Versions: 4.0.0
            Reporter: Yang Jie


Passing an explicit array value to a Scala varargs method is deprecated (since 
2.13.0) and will result in a defensive copy; Use the more efficient non-copying 
ArraySeq.unsafeWrapArray or an explicit toIndexedSeq call

 
{code:java}
[warn] 
/Users/yangjie01/SourceCode/git/spark-mine-sbt/sql/hive/src/test/scala/org/apache/spark/sql/hive/execution/AggregationQuerySuite.scala:945:21:
 Passing an explicit array value to a Scala varargs method is deprecated (since 
2.13.0) and will result in a defensive copy; Use the more efficient non-copying 
ArraySeq.unsafeWrapArray or an explicit toIndexedSeq call
[warn] Applicable -Wconf / @nowarn filters for this warning: msg=<part of the 
message>, cat=deprecation, 
site=org.apache.spark.sql.hive.execution.AggregationQuerySuite, version=2.13.0
[warn]         df.agg(udaf(allColumns: _*)),
[warn]                     ^
[warn] 
/Users/yangjie01/SourceCode/git/spark-mine-sbt/sql/hive/src/test/scala/org/apache/spark/sql/hive/execution/ObjectHashAggregateSuite.scala:156:48:
 Passing an explicit array value to a Scala varargs method is deprecated (since 
2.13.0) and will result in a defensive copy; Use the more efficient non-copying 
ArraySeq.unsafeWrapArray or an explicit toIndexedSeq call
[warn] Applicable -Wconf / @nowarn filters for this warning: msg=<part of the 
message>, cat=deprecation, 
site=org.apache.spark.sql.hive.execution.ObjectHashAggregateSuite, 
version=2.13.0
[warn]         df.agg(aggFunctions.head, aggFunctions.tail: _*),
[warn]                                                ^
[warn] 
/Users/yangjie01/SourceCode/git/spark-mine-sbt/sql/hive/src/test/scala/org/apache/spark/sql/hive/execution/ObjectHashAggregateSuite.scala:161:76:
 Passing an explicit array value to a Scala varargs method is deprecated (since 
2.13.0) and will result in a defensive copy; Use the more efficient non-copying 
ArraySeq.unsafeWrapArray or an explicit toIndexedSeq call
[warn] Applicable -Wconf / @nowarn filters for this warning: msg=<part of the 
message>, cat=deprecation, 
site=org.apache.spark.sql.hive.execution.ObjectHashAggregateSuite, 
version=2.13.0
[warn]         df.groupBy($"id" % 4 as "mod").agg(aggFunctions.head, 
aggFunctions.tail: _*),
[warn]                                                                          
  ^
[warn] 
/Users/yangjie01/SourceCode/git/spark-mine-sbt/sql/hive/src/test/scala/org/apache/spark/sql/hive/execution/ObjectHashAggregateSuite.scala:171:50:
 Passing an explicit array value to a Scala varargs method is deprecated (since 
2.13.0) and will result in a defensive copy; Use the more efficient non-copying 
ArraySeq.unsafeWrapArray or an explicit toIndexedSeq call
[warn] Applicable -Wconf / @nowarn filters for this warning: msg=<part of the 
message>, cat=deprecation, 
site=org.apache.spark.sql.hive.execution.ObjectHashAggregateSuite, 
version=2.13.0
[warn]           df.agg(aggFunctions.head, aggFunctions.tail: _*),
[warn]  {code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org
For additional commands, e-mail: issues-h...@spark.apache.org

Reply via email to