I am unable to import from_avro in Pyspark. Trying to run a spark-submit job by invoking the external package for Avro.
Eg: spark-submit --packages org.apache.spark:spark-avro_2.12:3.0.1 test1.py
My test1.py file contains the import statement
from pyspark.sql.avro.functions import from_avro, to_avro
Getting ImportError: NO module names avro.function
Please help!!! Need to import from_avro using python code