Skip to content

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

Open
github-actions[bot] wants to merge 1 commit intomainfrom
faq-bot/issue-235
Open

[FAQ Bot] UPDATE: How can I calculate the duration between two Spark timestamp columns in #236
github-actions[bot] wants to merge 1 commit intomainfrom
faq-bot/issue-235

Conversation

@github-actions
Copy link
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

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?

0 participants