Comments (5)
This issue has been fixed in v0.1.7. If you have any problems, please reopen this.
from bigquery-emulator.
There is a type called ParameterMode in go-zetasql ( https://github.com/goccy/go-zetasql/blob/c0cdb2761078bdee9a269bcb29da4686d7ad4869/enum.go#L6-L19 ) that bigquery emulator uses.
As far as I know, this value can only be applied one at a time, so it may be difficult to enable positional parameter or named parameter at the same time 🤔
from bigquery-emulator.
I found a way to solve this problem ! I'll fix this problem as soon as possible !
from bigquery-emulator.
I have confirmed that Named Parameters is working.
$ bq --api http://0.0.0.0:9050 query --use_legacy_sql=false --parameter=id:integer:1 --project_id=test "select * from dataset1.table_a where id = @id"
[
{
"id": "1",
"name": "alice"
}
]
bigquery-emulator logged the following.
2022-08-26T03:43:43.254Z INFO server/middleware.go:41 GET /discovery/v1/apis/bigquery/v2/rest {"query": ""}
2022-08-26T03:43:43.282Z INFO server/middleware.go:41 POST /projects/test/jobs {"query": "alt=json"}
2022-08-26T03:43:43.286Z INFO contentdata/repository.go:145 {"query": "select * from dataset1.table_a where id = @id", "values": ["1"]}
2022-08-26T03:43:43.286Z DEBUG contentdata/repository.go:208 query result {"rows": [[1,"alice"]]}
2022-08-26T03:43:43.294Z INFO server/middleware.go:41 GET /projects/test/queries/bqjob_r3513523cffe35404_00000182d83f9a8e_1 {"query": "timeoutMs=0&startIndex=0&alt=json&maxResults=100"}
from bigquery-emulator.
Amazing! I will look forward to it.
from bigquery-emulator.
Related Issues (20)
- Error processing job with UNNEST and query parameters HOT 1
- Split fails with NULL, while BigQuery just returns no results HOT 1
- Running binary twice always gives error
- BigQuery Emulator Returns NULL for Empty Arrays HOT 1
- C# client HOT 3
- The return value of FORMAT_DATE('%u', date) HOT 1
- Support for the "LAX" functions (e.g. LAX_INT64) HOT 1
- DATE_TRUNC with ISO_WEEK HOT 2
- Trouble Integrating BigQuery Emulator with Write Streams Java Library : runtime error: invalid memory address or nil pointer dereference HOT 3
- `_default` WriteStream not supported HOT 1
- `COMMITTED` write stream don't seem to work. HOT 1
- Table.getNumRows is null (numRows field not populated eventhough the table has rows) HOT 1
- Storage API Avro encoding does not work with nullable fields
- return 409 on dataset duplicate
- Library blocks compiling HOT 2
- Support for SSL/TLS in gRPC for spark compatibility
- `/projects/{projectId}/queries/{jobId}` endpoint does not respect the `maxResults` query parameter
- Use Emulator with PySpark HOT 1
- Wrong results returned when querying a RECORD column HOT 5
- Cant parametrize FLOAT value in query HOT 9
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 bigquery-emulator.