milenkovicm commented on issue #17297: URL: https://github.com/apache/datafusion/issues/17297#issuecomment-3258739674
looking at spark, cache is represented as `InMemoryRelation` : ```python from pyspark.sql import SparkSession spark : SparkSession = SparkSession.builder.getOrCreate() # %% df0 = spark.read.parquet("./tpch-data-sf10/lineitem") df1 = df0.filter("l_partkey == 1") df2 = df1.cache() df2.explain() ``` will produce: ``` == Physical Plan == InMemoryTableScan [l_orderkey#0L, l_partkey#1L, l_suppkey#2L, l_linenumber#3, l_quantity#4, l_extendedprice#5, l_discount#6, l_tax#7, l_returnflag#8, l_linestatus#9, l_shipdate#10, l_commitdate#11, l_receiptdate#12, l_shipinstruct#13, l_shipmode#14, l_comment#15] +- InMemoryRelation [l_orderkey#0L, l_partkey#1L, l_suppkey#2L, l_linenumber#3, l_quantity#4, l_extendedprice#5, l_discount#6, l_tax#7, l_returnflag#8, l_linestatus#9, l_shipdate#10, l_commitdate#11, l_receiptdate#12, l_shipinstruct#13, l_shipmode#14, l_comment#15], StorageLevel(disk, memory, deserialized, 1 replicas) +- *(1) Filter (isnotnull(l_partkey#1L) AND (l_partkey#1L = 1)) +- *(1) ColumnarToRow +- FileScan parquet [l_orderkey#0L,l_partkey#1L,l_suppkey#2L,l_linenumber#3,l_quantity#4,l_extendedprice#5,l_discount#6,l_tax#7,l_returnflag#8,l_linestatus#9,l_shipdate#10,l_commitdate#11,l_receiptdate#12,l_shipinstruct#13,l_shipmode#14,l_comment#15] Batched: true, DataFilters: [isnotnull(l_partkey#1L), (l_partkey#1L = 1)], Format: Parquet, Location: InMemoryFileIndex(1 paths)[file:./tpch-data-sf10/lineitem], PartitionFilters: [], PushedFilters: [IsNotNull(l_partkey), EqualTo(l_partkey,1)], ReadSchema: struct<l_orderkey:bigint,l_partkey:bigint,l_suppkey:bigint,l_linenumber:int,l_quantity:decimal(15... ``` -- 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: github-unsubscr...@datafusion.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: github-unsubscr...@datafusion.apache.org For additional commands, e-mail: github-h...@datafusion.apache.org