cancel
Showing results for 
Search instead for 
Did you mean: 
Data Engineering
Join discussions on data engineering best practices, architectures, and optimization strategies within the Databricks Community. Exchange insights and solutions with fellow data engineers.
cancel
Showing results for 
Search instead for 
Did you mean: 

SparkR or sparklyr not showing history

Sagas
New Contributor II

Hi,

for some reason Azure Databricks doesn't show History if the data is saved with SparkR (2 in the figure below) or Sparklyr (3), but it does show it with Data Ingestion (0) or with PySpark (1). Is this a known bug or am I doing something wrong? Is it possible to save data with R while getting the UserId and Username?

Databricks_history.PNG

PySpark code:

 

test_data = [[4,"d",30],[5,"e",70]]
df = spark.createDataFrame(test_data,['a','b','c']) df.write.mode('append').format("delta").saveAsTable("catalog.schema.table")

 

SparkR df and save to table:

SparkR.PNG

Sparklyr df and save to table:

Sparklyr.PNG

1 REPLY 1

Sagas
New Contributor II

Thank you for your response! I'll consider capturing UserId for each row. But do you mean that also sparklyr can't automatically capture the userId for the Delta table history?

Connect with Databricks Users in Your Area

Join a Regional User Group to connect with local Databricks users. Events will be happening in your city, and you won’t want to miss the chance to attend and share knowledge.

If there isn’t a group near you, start one and help create a community that brings people together.

Request a New Group