Skip to content

Conversation

@lightify97
Copy link
Contributor

ROW_NUMBER is not defined as an alias and will cause an error. Defined an alias for the column for future reference outside of the subquery.

ROW_NUMBER is not defined as an alias and will cause an error. Defined an alias for the column for future reference outside of the subquery.
@vercel
Copy link

vercel bot commented Apr 23, 2025

@lightify97 is attempting to deploy a commit to the neondatabase Team on Vercel.

A member of the Team first needs to authorize it.

@danieltprice danieltprice requested a review from Copilot April 23, 2025 09:20
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR resolves an error by defining an alias for the ROW_NUMBER function and updating its subsequent usage in the WHERE clause.

  • Added alias "rn" for the ROW_NUMBER function.
  • Updated the WHERE clause to use the "rn" alias instead of the undefined ROW_NUMBER.
Comments suppressed due to low confidence (2)

content/postgresql/postgresql-window-function/postgresql-row_number.md:183

  • The alias 'rn' has been correctly added for the ROW_NUMBER() function. Please confirm that 'rn' is consistently used in all subsequent references to avoid undefined column errors.
) as rn

content/postgresql/postgresql-window-function/postgresql-row_number.md:188

  • The WHERE clause now correctly references the 'rn' alias instead of ROW_NUMBER, resolving the undefined alias error.
rn BETWEEN 6 AND 10;

@danieltprice danieltprice requested a review from Copilot May 9, 2025 22:46
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR corrects an error in the PostgreSQL ROW_NUMBER example by defining an alias for the ROW_NUMBER column.

  • Added the alias "rn" for the ROW_NUMBER column in the subquery.
  • Updated the WHERE clause to reference the new alias.

@vercel
Copy link

vercel bot commented May 9, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
neon-next ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 9, 2025 10:52pm

@danieltprice danieltprice merged commit 32f5bd5 into neondatabase:main May 9, 2025
5 checks passed
@danieltprice
Copy link
Collaborator

Thank you @lightify97

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.

2 participants