-
-
Notifications
You must be signed in to change notification settings - Fork 31
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
Making MERGE more robust in handling edge-cases #222
base: main
Are you sure you want to change the base?
Conversation
Codecov ReportAttention: Patch coverage is
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## main #222 +/- ##
==========================================
+ Coverage 48.54% 48.85% +0.31%
==========================================
Files 47 47
Lines 17906 17920 +14
==========================================
+ Hits 8692 8755 +63
+ Misses 7763 7714 -49
Partials 1451 1451 |
@bony2023 Still doesn't work for me until I specify individual column name in the MERGE statement. E.g. doesn't work when statement ends with .... WHEN NOT MATCHED THEN INSERT ROW like in raised issue |
Hi @bony2023 I am seeing Exception: ApiError: failed to analyze: INVALID_ARGUMENT: Missing insert column list [at 1:180]. Can you please try to support Thanks for the good work anyway !! Update: I tested by building your PR locally and its still same issue for me. |
@n10l It was missing a feature flag |
Thanks @bony2023 I will let you know shortly. |
@bony2023 Seems like that error is gone. Thank you for fixing the original issue. But, in my case I am running query using nodejs bigquery client with query Fully qualified name for table should be like project_dataset_tablename instead of just tablename which works for all other commands except MERGE. |
Very well @bony2023 testing that as well. |
Closes: goccy/bigquery-emulator#163
The MERGE statement currently works fine but on a few edge cases:
ROW
instead of specifying a column list, it raises the error. We can simply add the featureFeatureV13OmitInsertColumnList
to fix that.This PR aims to fix all these issues while adding some test cases for basic merge statements.