-
Notifications
You must be signed in to change notification settings - Fork 40
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
Add mixed affinity UPDATE
, unify UUID behaviour
#95
Add mixed affinity UPDATE
, unify UUID behaviour
#95
Conversation
ef32b70
to
a8a8c06
Compare
e2dcaa7
to
5f66998
Compare
UPDATE
, detach bitstring
testsUPDATE
, unify UUID behaviour
0642111
to
a8ba629
Compare
@t-kataym , could you please write me approximate date of review of this PR? |
@mkgrgis , Thank you for your contribution. We would like to confirm the PR and then merge it in this month if no problem. |
Thanks, @t-kataym ! In this case I'll also prepare PR with |
Hello @mkgrgis , thanks for your hard work.
I see that you created a custom function to convert text/blob to uuid, and deparsed remote UPDATE query to call it. Therefore, I think this change should be for UPDATE, not IMPORT FOREIGN SCHEMA. Is that correct?
I see that you handled 2 cases here: uuid and timestamp, but your description in this PR only mentioned about uuid case. |
Thanks, @son-phamngoc ! Added in description
The second
Yes. Rule for |
@mkgrgis So, I think the description should be "add translation rule for UPDATE if SQLite formal column name is uuid.". Could you update it? |
No, @son-phamngoc. In SQLite data processing code there is a common good style not to use formal column definitions at all, only affinity de facto of a SQLite data value. |
@mkgrgis I thought that description related to your modification in |
I am sorry, @son-phamngoc. There was no that modification. I was sure this was committed by me, but before 9c81b0f this was only in my private draft. Now this is fixed. |
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.
@mkgrgis Thanks for your support.
I reviewed you PR. Could you check my comments?
All your comments are checked, @son-phamngoc ! Let's request the second review? |
@son-phamngoc Thank you for your confirmation. |
Mixed affinity support PRs continued with #97. |
In this PR
UPDATE
works withcolumn_type
option for mixed affinity cases and writes different affinity values depends on value of the option. This fix Column optioncolumn_type
doesn't works with UPDATE #90. This issue affectsuuid
andtimestamp
types of data, implemented in different time. Mixed affinitytimestamp
was implemented beforeuuid
support in Add uuid support #82,SELECT
/WHERE
usage,INSERT
andUPDATE
,sqlite_fdw_post
firsts, than tests about data types in ABC order, other sequence with no changes,column_type
option value to SQLite affinity code for standard values withint
asinteger
affinity synonym,uuid
test renumbering and addCOSTS OFF
in some TCs,uuid
test important TC about semantics conflict in SQLite: the same UUID values with different affinity, but no error during SQLite unique check,Infinity
values infloatN
column intotype
tests with SQLite unique value check. No code changes. This behaviour should be tested before special planned PR about special values infloatN
columns,IMPORT FOREIGN SCHEMA
if SQLite formal column name isuuid
.