Comments (2)
Actually it's not that bad when I think about it. A UDT for example looks like this in JSON:
{
"Name": "col0",
"Type": {
"Types": {
"udt_672245080_0": "ascii",
"udt_672245080_1": "boolean",
"udt_672245080_2": "bigint",
"udt_672245080_3": "blob"
},
"TypeName": "udt_672245080",
"Frozen": true
}
}
The UDT field names are ugly simply because they are generated but it is quite clear that it is a complex type. The fact that it is a UDT isn't explicit but a "map" of type names and simple types should be a clue. The generated names hint at it but when hand writing such a file they can of course be called anything.
A tuple looks like:
{
"Name": "col5",
"Type": {
"Types": [
"varchar",
"smallint"
],
"Frozen": false
}
}
This is also pretty clear.
What does not seem clear is the index definitions:
{
"Name": "col0_idx",
"Column": {
"Name": "col0",
"Type": {
"Types": {
"udt_672245080_0": "ascii",
"udt_672245080_1": "boolean",
"udt_672245080_2": "bigint",
"udt_672245080_3": "blob"
},
"TypeName": "udt_672245080",
"Frozen": true
}
}
}
This refers to the column col0
and repeats the type information. This should be omitted and be a simple reference by either column name or column index.
from gemini.
The index definition can look like:
"indexes": [
{
"Name": "col0_idx",
"Column": "col0"
},
{
"Name": "col1_idx",
"Column": "col1"
},
{
"Name": "col2_idx",
"Column": "col2"
},
{
"Name": "col3_idx",
"Column": "col3"
}
]
Without affecting functionality but greatly increasing readability.
from gemini.
Related Issues (20)
- Gemini generated query with wrong number of values
- The `result channel` doesn't get closed after load ends blocking the results file generation HOT 2
- Add support of an embedded complex-type for a collection in a given json schema
- Make error more verbose
- Gemini failed writing to a "map" type column: Mutation statement generation failed","error":"json: unsupported type: map[interface {}]interface {}"} HOT 1
- There is a case when GetHash would not ever return hash that matches certain partitions
- Values are not circulating properly from new to old
- AddIfNotPresent to be run early
- Mutation failed: unable to apply mutations to the test store HOT 1
- after v1.8,7 it hungs without `--schema-seed`
- gemini detected row difference, while error message shows rows are the same HOT 4
- 'varint' and 'decimal' scylla types does`t work properly as a maps key. HOT 2
- MIgrate Go to v1.21 HOT 3
- Log details required for debugging failed tests HOT 4
- Make use of PGO HOT 1
- Could not initialize seastar when starting scylla 5.2.9 HOT 1
- Could not initialize seastar when starting scylla 5.2.9 HOT 12
- Use Query.Observer to log statements
- Float type (float32) is shown and compared as a 64-bit number instead of 32-bit HOT 3
- Possible memory leak - 8GB of RAM is not enough for gemini-3h-with-nemesis HOT 3
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 gemini.