Migration Guide
Quick Swap
# from pyspark.sql import SparkSession
from sparkless.sql import SparkSession as SparkSession, functions as F, Window
Common Patterns
Keep DataFrame APIs unchanged (select, filter, withColumn, groupBy)
Replace
Windowwithsparkless.Windowif imported directlyExceptions: use
AnalysisExceptionsemantics for missing columns
Tips
Use
validation_mode="strict"to catch schema mismatchesUse session
benchmark_operationfor performance checksUse
clear_cache()between tests to control memory