Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The ScyllaDB Cloud do not officially support experimental Features #9

Open
gauravsinghaec opened this issue Sep 7, 2024 · 1 comment

Comments

@gauravsinghaec
Copy link

The migration is failing. and looks like the Scylla cloud doesn't support the experimental feature
image

Do we have a way to set the flag with cloud, OR you can update the documentation for the workaround.

@gauravsinghaec
Copy link
Author

gauravsinghaec commented Sep 7, 2024

Actually you don't need a UDF. It was done forcefully in this example.
Basically the CQL query is also misleading.
SELECT id, top10(created_at) AS date FROM recent_videos_view;
this is bad as you are UDF on every row and basically you have same set to date(which is array of top created_at).

Anyway as the example has only 9 rows. This UDF is not needed.

Below 3 things I did to fix the start issue.

  1. Change the ENV var for app base URL APP_BASE_URL="http://localhost:3000"
  2. Remove UDFs from video-streaming/migrate/schema.cql
    Delete all the lines after
    USE streaming;
    The the npm run migrate will run successfully
  3. Update queryVideoDates and rawVideos values as below in file video-streaming/src/pages/api/list-videos.ts. Now npm run dev will work fine
    const queryVideoDates = "SELECT id, created_at AS date FROM recent_videos_view;"
    const rawVideos = await cluster.execute(query, [videoDates.rows.map((row) => row?.date)], { prepare: true })

TADA
your app is running now
image

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

No branches or pull requests

1 participant