novatechflow commented on code in PR #646:
URL: https://github.com/apache/incubator-wayang/pull/646#discussion_r2622059279
##########
wayang-api/wayang-api-scala-java/src/main/scala/org/apache/wayang/api/PlanBuilder.scala:
##########
@@ -140,6 +140,16 @@ class PlanBuilder(private[api] val wayangContext:
WayangContext, private var job
*/
def readParquet(url: String, projection: Array[String] = null):
DataQuanta[Record] = load(ParquetSource.create(url, projection))
+ /**
+ * Read a parquet file and keep it backed by a Spark Dataset throughout
execution.
+ *
+ * @param url the URL of the Parquet file
+ * @param projection the projection, if any
+ * @return [[DataQuanta]] of [[Record]]s backed by a Spark Dataset when
executed on Spark
+ */
+ def readParquetAsDataset(url: String, projection: Array[String] = null):
DataQuanta[Record] =
Review Comment:
good catch - yeah, good idea. Its a bit duplicated given some month of
coding :)
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]