>>> textFile = spark.read.text("/Users/cloud/dev/spark/README.md")
>>> linesWithSpark = textFile.filter("Spark" in textFile.value)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Users/cloud/product/spark/python/pyspark/sql/column.py", line 426, in __nonzero__
raise ValueError("Cannot convert column into bool: please use '&' for 'and', '|' for 'or', "
ValueError: Cannot convert column into bool: please use '&' for 'and', '|' for 'or', '~' for 'not' when building DataFrame boolean expressions.