dubinc / dub

Open-source link management infrastructure. Loved by modern marketing teams like Vercel, Raycast, and Perplexity.
https://dub.co
GNU Affero General Public License v3.0
18.96k stars 2.06k forks source link

Error: `DEFAULT value is not allowed when jsonpath is set` when running Dub.co's pipe #1623

Open unrenamed opened 1 month ago

unrenamed commented 1 month ago

Issue Summary

While following the guide to run Dub.co’s codebase locally, I encountered an error when executing tb push. The error message indicates that when you specify a column with a jsonpath attribute, you cannot also provide a DEFAULT value for that column.

The error is caused by 4 files:

  1. dub_lead_events.datasource
  2. dub_links_metadata.datasource
  3. dub_sale_events.datasource
  4. dub_webhook_events.datasource

Steps to Reproduce

  1. Follow the setup instructions provided in the guide up to Step 2: Set up the Tinybird Clickhouse database.
  2. After you run tb push, wait for the command to fail and observe the error message like on the screenshot below.

Expected behavior

The command should execute successfully, creating the essential data sources without errors.

Screenshots

image

Version info

linear[bot] commented 1 month ago

ENG-870 Error: `DEFAULT value is not allowed when jsonpath is set` when running Dub.co's pipe

steven-tey commented 1 month ago

/award 150

oss-gg[bot] commented 1 month ago

Awarding unrenamed: 150 points 🕹️ Well done! Check out your new contribution on oss.gg/unrenamed

nhannv commented 3 days ago

I got the same issue and resolved it by upgrade tinybird-cli: pip install tinybird-cli==5.13.0

unrenamed commented 2 days ago

@nhannv good catch! It's resolved on my end too—the old CLI version was way outdated.

Should we update the Dub Docs? For contributors who haven't run the app recently, pip install tinybird-cli won’t upgrade an existing install. The docs could clarify whether to install the latest version, how to upgrade, or the minimum supported version for schemas. Thoughts, @steven-tey?