[request] --start --end values should consider local timezone

Aberta
#5,673 3 comentários 0 reações 0 responsáveis Ver no GitHub

Mantenedores costumam responder em até 4 dias

Ninguém assumiu esta issue ainda.

Avaliação

Dificuldade
4/5
Tempo estimado
3-5 dias
Facilidade para iniciantes
38/100
Tipo de issue
Funcionalidade
Clareza
Razoavelmente clara
Status de atividade
Pouca atividade
Stack de tecnologia
python, sql
Domínio
data-engineering

Direção de pesquisa

Start by tracing how restatement handles --start and --end values and constructs the start_tstz variables; the issue does not name files or tests. Check how relative times are interpreted and whether timezone input is available, then determine how an optional --tz should affect the week boundary. Done means the boundary reflects the user's timezone rather than always starting at 00:00 UTC.

Escrita pelo modelo de indexação a partir do texto da issue.

Descrição

Improvement

when restating models with relative time values such as --start "2 weeks ago" for example, the current start_tstz variables are considering the beginning of the week in UTC time, but the is wrong because a relative time is to be interpreted in the eyes of a user and thus the start_tzts should consider the timezone information, at least as a optional input variable --tz for example.

inside the model everything can then be run in UTC but the start tstz should not be at 00:00+00 but rather at 00:00+0x meaning the beginning of the week where the use is located

Linguagem predominante
Python
Estrelas
3.3k
Forks
471
Merge médio
6d 7h
PRs com merge (30d)
35

Preparar o ambiente

Abrir no Codespaces

Inicia o contêiner de desenvolvimento do projeto no navegador, com a sua própria conta do GitHub.

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de SQLMesh/sqlmesh

Todas as issues de SQLMesh/sqlmesh

Issues semelhantes

Mais issues de Python

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.