Skip to content

add IsTrueOrFalseMetadata#176

Merged
XuHuaiyu merged 5 commits intopingcap:masterfrom
Reminiscent:KeepNull
Apr 14, 2020
Merged

add IsTrueOrFalseMetadata#176
XuHuaiyu merged 5 commits intopingcap:masterfrom
Reminiscent:KeepNull

Conversation

@Reminiscent
Copy link
Contributor

Related to: pingcap/tidb#15926

@Reminiscent
Copy link
Contributor Author

@XuHuaiyu @breeswish PTAL

optional bytes consts = 2;
}

message KeepNullMetadata {
Copy link
Member

Choose a reason for hiding this comment

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

prefer to name it for functions, i.e. IsTrueMetadata

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This name is to be consistent with a similar implementation before. We use the parameters in the expression variable to name instead of the name of the expression. Besides, keepNull can be used in more expression, such as isTrue , isFalse. What's your opinion? @breeswish

Copy link
Member

Choose a reason for hiding this comment

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

InUnionMetadata was named as InUnion because not all cast functions uses it so that it is not suitable to name it CastMetadata.

If multiple (but not many) functions shares it, prefer to duplicate it, like IsTrueMetadata and IsFalseMetadata. The reason of the duplication is that each SIG can only associate with one metadata, so that when more properties are needed in future, it can be added easily.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Got it. @breeswish PTAL

@Reminiscent Reminiscent requested a review from breezewish April 13, 2020 03:01
Copy link
Contributor

@XuHuaiyu XuHuaiyu left a comment

Choose a reason for hiding this comment

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

LGTM

@XuHuaiyu XuHuaiyu changed the title add KeepNullMetadata add IsTrueOrFalseMetadata Apr 14, 2020
@XuHuaiyu XuHuaiyu merged commit d9af310 into pingcap:master Apr 14, 2020
hanfei1991 pushed a commit to hanfei1991/tipb that referenced this pull request May 28, 2020
hanfei1991 added a commit that referenced this pull request Jun 18, 2020
* add join proto

Signed-off-by: Fei Han <hanfei19910905@gmail.com>

fix

adjust join proto

refine proto

refine proto

refine proto

refine proto

refine proto

refine proto

refine proto

refine proto

refine proto

refine proto

add key range for table scan

change go code

* *: update dependency (#173)

update protobuf-build to 0.11 and prost to 0.6
update ci image

Signed-off-by: Jay Lee <BusyJayLee@gmail.com>

* Separate signatures for ModInt PCP#13978 (#175)

Signed-off-by: fredchenbj <cfworking@163.com>

* add IsTrueOrFalseMetadata (#176)

* add new sig `isTrueWithNull` and `isFalseWithNull` (#177)

* make broadcast join backward compatible

* fix rust ci

* fix make go

* add probe/build field types in join

* Update proto/executor.proto

Co-authored-by: Feng Liyuan <darktemplar.f@gmail.com>

* add comments

Co-authored-by: Jay <BusyJay@users.noreply.github.com>
Co-authored-by: Fu Chen <cfworking@163.com>
Co-authored-by: Chengpeng Yan <41809508+Reminiscent@users.noreply.github.com>
Co-authored-by: xufei <xufeixw@mail.ustc.edu.cn>
Co-authored-by: Feng Liyuan <darktemplar.f@gmail.com>
@Reminiscent Reminiscent deleted the KeepNull branch August 5, 2021 02:02
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.

3 participants