Skip to content

[#3] - Solução para o problema dos múltiplos warnings#17

Open
Conradox wants to merge 1 commit intomasterfrom
hotfix/problem_with_warnings
Open

[#3] - Solução para o problema dos múltiplos warnings#17
Conradox wants to merge 1 commit intomasterfrom
hotfix/problem_with_warnings

Conversation

@Conradox
Copy link
Copy Markdown
Contributor

No description provided.

Comment thread src/modifiers.jl
#TODO: Verificar se tem colunas duplicatas
FilterModifier(columns::Symbol...) = FilterModifier([columns...])

const EasyWarnings = Set()
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Problema que esse aviso fica armazenado no módulo. Caso a pessoa crie um novo stream, ela não vai ser avisada. Outra parada, o Set eu acho que é imutável. Dá uma conferida nisso.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Poderíamos tornar esse warn checker um atributo do Stream e em determinados procedimentos limpamos ele pra evitar que isso acabe inibindo o aviso de um futuro erro. Vou pensar mais um pouco nesse problema.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Acho que teria que ser ... Problema que você nunca sabe o que está vindo.

Comment thread src/modifiers.jl
FilterModifier(columns::Symbol...) = FilterModifier([columns...])

const EasyWarnings = Set()
warn(str::String, warnChecker::Set) = str in warnChecker || (@warn str) == nothing && push!(warnChecker, str)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Na verdade seria String ou Symbol. Tem que conferir se no dataframe o nome da coluna sempre vem em Symbol. Se for é symbol aqui.

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