-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comparators error when using pyspark #225
Comments
You are right, that Python example code in DIFF.md was wrong, it should read Please modify your code as follows: -.withComparator(DiffComparators.epsilon(0.01).asRelative().asInclusive(), DoubleType)
+.with_data_type_comparator(DiffComparators.epsilon(0.01).as_relative().as_inclusive(), DoubleType()) I have fixed the DIFF.md. |
Thanks for the quick response. One last question - the map attribute doesn't seem to be supported for python.
Error - AttributeError: type object 'DiffComparators' has no attribute 'map' |
Right, the Python API does not support the Map comparator. I haven't yet figured out how to get the key and value types |
Thanks Enrico. |
I have found a way to provide the That fix allows for |
This has been released. |
Trying to run example in documentation using pyspark but keep getting the following error -
AttributeError: 'DiffOptions' object has no attribute 'withComparator' .
Running this in a Glue notebook with Spark version 3.3 and spark-extension_2.12-2.8.0. Same issue when upgrading to spark-extension_2.13-2.11.0. Is this method supported for the python api?
Create 2 dataframes
Run Comparator method
Error - AttributeError: 'DiffOptions' object has no attribute 'withComparator'
The text was updated successfully, but these errors were encountered: