vicennial commented on code in PR #44109: URL: https://github.com/apache/spark/pull/44109#discussion_r1423128412
########## connector/connect/client/jvm/src/main/scala/org/apache/spark/sql/SparkSession.scala: ########## @@ -590,6 +590,48 @@ class SparkSession private[sql] ( @Experimental def addArtifact(uri: URI): Unit = client.addArtifact(uri) + /** + * Add a single in-memory artifact to the session while preserving the directory structure + * specified by `target` under the session's working directory of that particular file + * extension. + * + * Supported target file extensions are .jar and .class. + * + * ==Example== + * {{{ + * addArtifact(bytesBar, "foo/bar.class") + * addArtifact(bytesFlat, "flat.class") + * // Directory structure of the session's working directory for class files would look like: + * // ${WORKING_DIR_FOR_CLASS_FILES}/flat.class + * // ${WORKING_DIR_FOR_CLASS_FILES}/foo/bar.class + * }}} + * + * @since 4.0.0 + */ + @Experimental + def addArtifact(bytes: Array[Byte], target: String): Unit = client.addArtifact(bytes, target) + + /** + * Add a single in-memory artifact to the session while preserving the directory structure Review Comment: Oops, fixed, good eye! -- 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