Open
Conversation
| ```bash | ||
| cd ~ | ||
| git clone https://github.com/ldbc/ldbc_finbench_transaction_impls.git | ||
| cd ~/ldbc_finbench_transaction_impls |
Contributor
There was a problem hiding this comment.
should cd to tigergraph directory
| workload=org.ldbcouncil.finbench.driver.workloads.transaction.LdbcFinBenchTransactionWorkload | ||
| db=org.ldbcouncil.finbench.impls.tigergraph.TigerGraphTransactionDb | ||
| operation_count=1000000 | ||
| validation_parameters_size=1000 |
Contributor
There was a problem hiding this comment.
keep the parameters same here
| ldbc.finbench.transaction.queries.scale_factor=1 | ||
| # Frequency of complex read queries | ||
| ldbc.finbench.transaction.queries.ComplexRead1_freq=10 | ||
| ldbc.finbench.transaction.queries.ComplexRead2_freq=45 |
Contributor
There was a problem hiding this comment.
keep the parameters same here
|
|
||
| # multi-edge | ||
| CREATE DIRECTED EDGE transfer(From Account, To Account, DISCRIMINATOR(timestamp UINT), orderNumber STRING, amount DOUBLE, comment STRING, payType STRING, goodsType STRING) WITH REVERSE_EDGE="transfer_REVERSE" | ||
| CREATE DIRECTED EDGE deposit(From Loan, To Account, DISCRIMINATOR(timestamp UINT), amount DOUBLE) WITH REVERSE_EDGE="deposit_REVERSE" |
Contributor
There was a problem hiding this comment.
the keyword for edge multiplicity is DISCRIMINATOR?
| gsql -g ldbc_fin "install query -single all" | ||
| else | ||
| gsql -g ldbc_fin "install query -single trw2" | ||
| gsql -g ldbc_fin "set single_gpr=false install query all" |
Contributor
There was a problem hiding this comment.
what is single_gpr used for?
Contributor
There was a problem hiding this comment.
And why is trw2 special?
tigergraph/scripts/ExprFunctions.hpp
Outdated
|
|
||
| using namespace std; | ||
|
|
||
| inline uint64_t convert_time_to_uint(string str_time) { |
Contributor
There was a problem hiding this comment.
convert_time_to_uint function is not used
| Nodes = SELECT s FROM Nodes:s | ||
| POST-ACCUM | ||
| s.isBlocked = (s.@outCount > 0 AND s.@totalE1Amount/s.@totalE2Amount <= ratioThreshold) OR (s.@outCount == 0 AND ratioThreshold >= -1) | ||
| ; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Implementing queries through GSQL's v1 syntax.