Skip to content

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

Merged
qiaojialin merged 6 commits intoapache: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 intoapache:rel/0.12from
yanhongwangg:add_value_fill

Conversation

@yanhongwangg
Copy link
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
Member

How the feature is defined?
value, and constant?

@jixuan1989
Copy link
Member

BTW, user guide need to be updated..

@yanhongwangg
Copy link
Contributor Author

How the feature is defined?
value, and constant?

constant

@HTHou
Copy link
Contributor

HTHou commented Jul 27, 2021

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

@yanhongwangg
Copy link
Contributor Author

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

I'll add it later

@mychaow
Copy link
Member

mychaow commented Aug 4, 2021

please merge the rel/0.12 to make ci happy.

Copy link
Contributor

@HTHou HTHou left a comment

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
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;

Copy link
Contributor

@ijihang ijihang Aug 11, 2021

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
Copy link
Contributor

ijihang commented Aug 11, 2021

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
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
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
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
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
Copy link
Member

@mychaow mychaow left a comment

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