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

Aligns variable placeholder and float encoding with IR format specification #115

Merged
merged 12 commits into from
May 4, 2023

Conversation

haiqi96
Copy link
Contributor

@haiqi96 haiqi96 commented Apr 25, 2023

References

Description

Use IR format for CLP message encoding and floating number

Validation performed

Compression ratio delta:
hadoop-24hrs. +0.5%
hadoop-30gb. < -0.01%
openstacks-24hr. -0.2%
spark. -0.3%
var-logs. -2%

@@ -131,12 +134,12 @@ QueryToken::QueryToken (const string& query_string, const size_t begin_pos, cons

if (!converts_to_non_dict_var) {
// Dictionary variable
m_type = Type::DictOrIntVar;
m_type = Type::DictionaryVar;
Copy link
Contributor Author

@haiqi96 haiqi96 Apr 25, 2023

Choose a reason for hiding this comment

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

This seems to be incorrect even at the first place? what if a wildcard is at the middle?
example: log = "INFO static text 12345" and the query string is "12*45"

@haiqi96 haiqi96 marked this pull request as draft April 25, 2023 21:46
@haiqi96 haiqi96 changed the title Format change Aligns variable placeholder and float encoding with IR format specification Apr 30, 2023
@haiqi96 haiqi96 marked this pull request as ready for review April 30, 2023 18:08
Copy link
Member

@kirkrodrigues kirkrodrigues left a comment

Choose a reason for hiding this comment

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

There are some remaining usages of the term double that we could change to float. E.g., convert_string_to_representable_double_var

components/core/src/LogTypeDictionaryEntry.hpp Outdated Show resolved Hide resolved
components/core/src/EncodedVariableInterpreter.hpp Outdated Show resolved Hide resolved
components/core/src/LogTypeDictionaryEntry.hpp Outdated Show resolved Hide resolved
components/core/src/LogTypeDictionaryEntry.cpp Outdated Show resolved Hide resolved
components/core/tests/test-EncodedVariableInterpreter.cpp Outdated Show resolved Hide resolved
components/core/tests/test-EncodedVariableInterpreter.cpp Outdated Show resolved Hide resolved
components/core/tests/test-EncodedVariableInterpreter.cpp Outdated Show resolved Hide resolved
@kirkrodrigues kirkrodrigues merged commit 742a40d into y-scope:main May 4, 2023
@haiqi96 haiqi96 deleted the format_change branch May 4, 2023 15:03
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