Skip to content

SparkSQLCompare does not work on Databricks serverless #407

@scardella

Description

@scardella

Got this error when running on serverless:

[NOT_SUPPORTED_WITH_SERVERLESS] PERSIST TABLE is not supported on serverless compute. SQLSTATE: 0A000
File , line 1
----> 1 compare = SparkSQLCompare(
2 spark,
3 old,
4 new,
5 join_columns=['CurrencyExchangeRateDate','SourceCurrencyCode', 'TargetCurrencyCode'], # You can also specify a list of columns
6 df1_name='old', # Optional, defaults to 'df1'
7 df2_name='new' # Optional, defaults to 'df2'
8 )
10 # This method prints out a human-readable report summarizing and sampling differences
11 print(compare.report())

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions