Comments (2)
I think we could transform simple MERGE statements to INSERT ON CONFLICT, ie: when the clause is when not matched
or when matched
like in your example.
But if there is a case predicate, eg: when not matched and a < 100
I can't see how to express it in terms of INSERT ON CONFLICT. Likewise for the DELETE action.
We'd probably have to transform this into multiple individual INSERT, UPDATE and DELETE statements.
from fakesnow.
I have the same issue, would be great to support MERGE statements.
from fakesnow.
Related Issues (20)
- info schema for ARRAY and OBJECT column returns data_type VARIANT
- Support for loading data from stages HOT 4
- Enforce fixed length VARCHAR
- cursor description fails with "SHOW TABLES" HOT 1
- Create table like existing not supported HOT 4
- DELETE statement fails with Parser Error HOT 2
- Support for `SHOW USERS` HOT 4
- CREATE SEQUENCE fails with cursor description HOT 8
- Connection object has no attribute 'close'
- `paramstyle` is not propagated from original client
- Binder Error: No function matches the given name and argument types 'json_extract(JSON, BOOLEAN)'. HOT 1
- Mock table HOT 2
- Double transpiled `DESCRIBE` queries on `cursor.description` HOT 1
- parse_json transform is redundant? or its test is missing the point? HOT 1
- Redirecting Queries from a Third-Party Service to 'fakesnow': Is it Possible? HOT 1
- `extract_text_length` might extract invalid column names on CTAS
- `Catalog Error: Scalar Function with name date does not exist!` in version 0.9.8 HOT 2
- Binder Error when alias is used in JOIN clause HOT 1
- Lateral Flatten Conversion Error: Malformed JSON at byte 0 of input: unexpected character
- Aggregate function with over clause handled incorrectly HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fakesnow.