How do I check for equality using Spark Dataframe without SQL Query? April 18, 2023 by Tarik I had the same issue, and the following syntax worked for me: df.filter(df("state")==="TX").show() I’m using Spark 1.6.