-
Notifications
You must be signed in to change notification settings - Fork 411
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
Fix date/datetime/bit encode error #200
Merged
Merged
Changes from 37 commits
Commits
Show all changes
40 commits
Select commit
Hold shift + click to select a range
309ab6b
Enhance dbg invoke and add dag as schemaful function
zanmato1984 31d83c4
Add basic sql parse to dag
zanmato1984 3c4c508
Merge cop
zanmato1984 2de7311
Merge branch 'cop' into cop-ruoxi
zanmato1984 63a5800
Column id starts from 1
zanmato1984 232e7de
Fix value to ref
zanmato1984 1b14a12
Add basic dag test
zanmato1984 25eb831
Fix dag bugs and pass 1st mock test
zanmato1984 80f9fc6
Make dag go normal routine and add mock dag
zanmato1984 a1173e1
Add todo
zanmato1984 c8109f6
Add comment
zanmato1984 7dc0397
Fix gcc compile error
zanmato1984 66d9e8a
Enhance dag test
zanmato1984 36d1117
Address comments
zanmato1984 8aea5aa
Merge branch 'cop' into cop-ruoxi
zanmato1984 f62b318
Merge branch 'cop' into cop-ruoxi
zanmato1984 a9fe9f9
Enhance mock sql -> dag compiler and add project test
zanmato1984 1372262
Mock sql dag compiler support more expression types and add filter test
zanmato1984 e2f9a02
Add topn and limit test
zanmato1984 8cea243
Add agg for sql -> dag parser and agg test
zanmato1984 5008a7a
Merge branch 'cop' of github.com:pingcap/tics into cop-ruoxi
zanmato1984 8fb4d52
Add dag specific codec
zanmato1984 c77310e
Merge branch 'cop' of github.com:pingcap/tics into cop-ruoxi
zanmato1984 0c8e3a5
type
zanmato1984 76b5444
Merge branch 'cop' of github.com:pingcap/tics into cop-ruoxi
zanmato1984 41d2b4f
Update codec accordingly
zanmato1984 17111f5
Remove cop-test
zanmato1984 f3adf8e
Merge cop
zanmato1984 31684fa
Merge branch 'cop' of github.com:pingcap/tics into cop-ruoxi
zanmato1984 7a74ffb
Merge branch 'cop' of github.com:pingcap/tics into cop-ruoxi
zanmato1984 0c29e49
Merge branch 'cop' of github.com:pingcap/tics into cop-ruoxi
zanmato1984 d6eefa7
Pass tests after merging master
zanmato1984 916f5bb
Merge branch 'cop' of github.com:pingcap/tics into cop-ruoxi
zanmato1984 50873d6
Copy some changes from xufei
zanmato1984 96de82e
Enable date/datetime test
zanmato1984 ac37a78
Enable date/datetime test
zanmato1984 2153142
Refine code
zanmato1984 1485066
Adjust date/datetime tiflash rep to UInt
zanmato1984 d01d0b6
Fix datetime to Int
zanmato1984 68b4955
Typo
zanmato1984 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should be UInt64 or UInt32
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually this function converts an arbitrary Field (comes from AST literal) to a non-flat (aka.
Bumpy
) representation (as Field too) in TiFlash. This bumpy representation will be immediately flattened usingDatumBumpy
into the flat representation that suits for theencodingRow
.In bumpy representation, data will be as TiFlash's format (therefore
Int64
forDate
/DateTime
). Meanwhile in flat representation, data will be as TiDB format (thereforeUInt64
forDate
/DateTime
).There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
But in TiFlash's format, Date is represented by UInt32, so I suggest to use UInt32 or UInt64 here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, UInt it is. I was asking @hanfei1991 for several times and he kept giving me the wrong answer.