cancel
Showing results for 
Search instead for 
Did you mean: 
Community Platform Discussions
Connect with fellow community members to discuss general topics related to the Databricks platform, industry trends, and best practices. Share experiences, ask questions, and foster collaboration within the community.
cancel
Showing results for 
Search instead for 
Did you mean: 

Change Data Feed And Column Masks

mh177
New Contributor II

Hi there,

Wondering if anyone can help me. I have had a job set up to stream from one change data feed enabled delta table to another delta table and has been executing successfully. I then added column masks to the source table from which I am streaming and get the the following error:

 [UNSUPPORTED_FEATURE.TABLE_OPERATION] The feature is not supported: Table [source_table_name] does not support either micro-batch or continuous scan. Please check the current catalog and namespace to make sure the qualified table name is expected, and also check the catalog implementation which is configured by "spark.sql.catalog". SQLSTATE: 0A000

 

change_stream = spark.readStream.format("delta").option("readChangeFeed", "true")

change_stream.table(source_table)
.writeStream.option("checkpointLocation", checkpoints_location)
.outputMode("append")
.option("mergeSchema", False)
.trigger(availableNow=True)
.toTable(target_table)
1 ACCEPTED SOLUTION

Accepted Solutions

Advika
Databricks Employee
Databricks Employee

Hello @mh177!

It looks like this post duplicates the one you recently posted. A response has already been provided to that post. I recommend continuing the discussion in that thread to keep the conversation focused and organised.

View solution in original post

2 REPLIES 2

Advika
Databricks Employee
Databricks Employee

Hello @mh177!

It looks like this post duplicates the one you recently posted. A response has already been provided to that post. I recommend continuing the discussion in that thread to keep the conversation focused and organised.

saisaran_g
Contributor

Hello Mate,

Hope doing great,

you can configure a service principle in that case, add proper roles as per needs and use as run owner. Re_run the stream so that your PII will not be able to display to other teams/persons until having the member. 

Simple words your are not masking but not restricting other teams directly to avoid the stream failures with mask objects. If not help please ignore.

Thanks for the ask. 

Saran

Happy Learning and solve new errors :
Saran

Join Us as a Local Community Builder!

Passionate about hosting events and connecting people? Help us grow a vibrant local community—sign up today to get started!

Sign Up Now