Skip to content

[To rel/0.12] support fill by specific value#3621

Merged
qiaojialin merged 6 commits into
apache:rel/0.12from
yanhongwangg:add_value_fill
Aug 12, 2021
Merged

[To rel/0.12] support fill by specific value#3621
qiaojialin merged 6 commits into
apache:rel/0.12from
yanhongwangg:add_value_fill

Conversation

@yanhongwangg

Copy link
Copy Markdown
Contributor

No description provided.

@HTHou HTHou changed the title support fill by specific value [To rel/0.12] support fill by specific value Jul 23, 2021
@jixuan1989

Copy link
Copy Markdown
Member

How the feature is defined?
value, and constant?

@jixuan1989

Copy link
Copy Markdown
Member

BTW, user guide need to be updated..

@yanhongwangg

Copy link
Copy Markdown
Contributor Author

How the feature is defined?
value, and constant?

constant

@HTHou

HTHou commented Jul 27, 2021

Copy link
Copy Markdown
Contributor

Hi, I think the user guide is necessary for this new feature.

@yanhongwangg

Copy link
Copy Markdown
Contributor Author

Hi, I think the user guide is necessary for this new feature.

I'll add it later

@mychaow

mychaow commented Aug 4, 2021

Copy link
Copy Markdown
Member

please merge the rel/0.12 to make ci happy.

@HTHou HTHou left a comment

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.

Submit a PR to master branch?

public TimeValuePair getFillResult() {
switch (dataType) {
case BOOLEAN:
return new TimeValuePair(

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

We could cache the primitive value in this class to avoid parse each time, like this:

boolean booleanValue;
int intValue;
long longValue;
float floatValue;
double doubleValue;

@ijihang ijihang Aug 11, 2021

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.

In new commit ,The initialization of value is placed in the constructor,configureFill is null , avoid parse each time

@ijihang

ijihang commented Aug 11, 2021

Copy link
Copy Markdown
Contributor

Submit a PR to master branch?

After merge,i will cherry pick to master

public TimeValuePair getFillResult() {
switch (dataType) {
case BOOLEAN:
return new TimeValuePair(queryTime, new TsPrimitiveType.TsBoolean(booleanValue));

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

could we cache TsPrimitiveType not the primary type?

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.

Tsprimitivetype can be cached

}

@Override
public void configureFill(

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Is it useless?

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.

one parameter,queryTime

@mychaow mychaow requested review from HTHou and qiaojialin August 11, 2021 11:35

@mychaow mychaow left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM

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.

6 participants