Skip to content

[FAQ Bot] UPDATE: How can I calculate the duration between two Spark timestamp columns in #236

Merged
alexeygrigorev merged 2 commits intomainfrom
faq-bot/issue-235
Apr 8, 2026
Merged

[FAQ Bot] UPDATE: How can I calculate the duration between two Spark timestamp columns in #236
alexeygrigorev merged 2 commits intomainfrom
faq-bot/issue-235

Conversation

@github-actions
Copy link
Copy Markdown
Contributor

@github-actions github-actions Bot commented Mar 6, 2026

📝 FAQ UPDATE

Course: data-engineering-zoomcamp
Section: module-6 (Incorporate an explicit unix_timestamp-based method for computing duration in hours, alongside the existing timedelta and datediff approaches.)
Related Issue: #235

Question

How can I calculate the duration between two Spark timestamp columns in hours (e.g., tpep_pickup_datetime and tpep_dropoff_datetime)?

Decision Rationale

The existing FAQ already covers calculating duration between two Spark timestamps but lacks the unix_timestamp approach introduced in the new proposal. Updating combines the original methods with the new method to provide a complete set of options.

Placement Details

  • Section ID: module-6
  • Sort Order: 53
  • Document ID: 1da0437718

🤖 Generated by FAQ Bot

Closes #235

@alexeygrigorev alexeygrigorev merged commit d845ded into main Apr 8, 2026
1 check passed
@alexeygrigorev alexeygrigorev deleted the faq-bot/issue-235 branch April 8, 2026 06:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FAQ] How can I correctly calculate trip duration using Spark timestamps?

1 participant