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 return value of FORMAT_DATE('%u', date) #125

Open
nishioka-wemex opened this issue Oct 26, 2023 · 0 comments
Open

The return value of FORMAT_DATE('%u', date) #125

nishioka-wemex opened this issue Oct 26, 2023 · 0 comments

Comments

@nishioka-wemex
Copy link

I have been using your bigquery-emulator and I greatly appreciate the effort and dedication you have put into this project.

In using it, I discovered a discrepancy between the BigQuery behavior and the emulator's behavior. The function FORMAT_DATE('%u', date) in your emulator returns the week number of the year , which I noticed differs from BigQuery's functionality. In BigQuery, this function is intended to return The weekday (Monday as the first day of the week) as a decimal number (1-7) instead.

ref: https://cloud.google.com/bigquery/docs/reference/standard-sql/format-elements#format_elements_date_time

Could you please consider revising the emulator's FORMAT_DATE('%u', date) function?

Let me know if you need any additional information or clarification on this issue.

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