should be it
This commit is contained in:
18
external/duckdb/extension/tpch/dbgen/CMakeLists.txt
vendored
Normal file
18
external/duckdb/extension/tpch/dbgen/CMakeLists.txt
vendored
Normal file
@@ -0,0 +1,18 @@
|
||||
include_directories(include)
|
||||
|
||||
|
||||
add_library(dbgen OBJECT
|
||||
dbgen.cpp
|
||||
dbgen_gunk.cpp
|
||||
bm_utils.cpp
|
||||
build.cpp
|
||||
permute.cpp
|
||||
rnd.cpp
|
||||
rng64.cpp
|
||||
speed_seed.cpp
|
||||
text.cpp)
|
||||
set(DBGEN_OBJECT_FILES
|
||||
${DBGEN_OBJECT_FILES} $<TARGET_OBJECTS:dbgen>
|
||||
PARENT_SCOPE)
|
||||
|
||||
disable_target_warnings(dbgen)
|
||||
320
external/duckdb/extension/tpch/dbgen/LICENSE
vendored
Normal file
320
external/duckdb/extension/tpch/dbgen/LICENSE
vendored
Normal file
@@ -0,0 +1,320 @@
|
||||
END USER LICENSE AGREEMENT
|
||||
VERSION 2.2
|
||||
|
||||
READ THE TERMS AND CONDITIONS OF THIS AGREEMENT ("AGREEMENT") CAREFULLY
|
||||
BEFORE INSTALLING OR USING THE ACCOMPANYING SOFTWARE. BY INSTALLING OR
|
||||
USING THE SOFTWARE OR RELATED DOCUMENTATION, YOU AGREE TO BE BOUND BY
|
||||
THE TERMS OF THIS AGREEMENT. IF YOU DO NOT AGREE TO THE TERMS OF THIS
|
||||
AGREEMENT, DO NOT INSTALL OR USE THE SOFTWARE. IF YOU ARE ACCESSING THE
|
||||
SOFTWARE ON BEHALF OF YOUR ORGANIZATION, YOU REPRESENT AND WARRANT THAT
|
||||
YOU HAVE SUFFICIENT AUTHORITY TO BIND YOUR ORGANIZATION TO THIS
|
||||
AGREEMENT.
|
||||
|
||||
USE AND RE-EXPORT OF THE SOFTWARE IS SUBJECT TO THE UNITED STATES EXPORT
|
||||
CONTROL ADMINISTRATION REGULATIONS. THE SOFTWARE MAY NOT BE USED BY
|
||||
UNLICENSED PERSONS OR ENTITIES, AND MAY NOT BE RE- EXPORTED TO ANOTHER
|
||||
COUNTRY. SEE EXPORT ASSURANCE (CLAUSE 13) OF THIS LICENSE.
|
||||
|
||||
This is a legal agreement between you (or, if you are accessing the
|
||||
software on behalf of your organization, your organization) ("You" or
|
||||
"User") and the Transaction Processing Performance Council ("TPC"). This
|
||||
Agreement states the terms and conditions upon which TPC offers to
|
||||
license the Software, including, but not limited to, the source code,
|
||||
scripts, executable programs, drivers, libraries and data files
|
||||
associated with such programs, and modifications thereof (the
|
||||
"Software"), and online, electronic or printed documentation
|
||||
("Documentation," together with the Software, "Materials").
|
||||
|
||||
LICENSE
|
||||
|
||||
1. Definitions
|
||||
|
||||
"Executive Summary" shall mean a short summary of a TPC Benchmark Result
|
||||
that shows the configuration, primary metrics, performance data, and
|
||||
pricing details. The exact requirements for the Executive Summary are
|
||||
defined in each TPC Benchmark Standard.
|
||||
"Full Disclosure Report (FDR)" shall mean a document that describes The
|
||||
TPC Benchmark Result in sufficient detail such that the Result could be
|
||||
recreated. The exact requirements for the FDR are defined in each TPC
|
||||
Benchmark Standard.
|
||||
"TPC Benchmark Result (Result)" shall mean a performance test submitted
|
||||
to the TPC attested to meet the requirements of a TPC Benchmark Standard
|
||||
at the time of submission. A Result is documented by an Executive
|
||||
Summary and, if required, a FDR.
|
||||
"TPC Benchmark Standard" shall mean a TPC Benchmark Specification and
|
||||
any associated code or binaries approved by the TPC. The various TPC
|
||||
Benchmark Standards can be found at
|
||||
http://www.tpc.org/information/current_specifications.asp.
|
||||
"TPC Policies" shall mean the guiding principles for how the TPC
|
||||
conducts its operations and business. The current TPC Policies can be
|
||||
found at http://www.tpc.org/information/current_specifications.asp.
|
||||
|
||||
2. Ownership. The Materials are licensed, not sold, to You for use only
|
||||
under the terms of this Agreement. As between You and TPC (and, to the
|
||||
extent applicable, its licensors), TPC retains all rights, title and
|
||||
interest to and ownership of the Materials and reserves all rights not
|
||||
expressly granted to You.
|
||||
|
||||
3. License Grant. Subject to Your compliance in all material respects
|
||||
with the terms and conditions of this Agreement, TPC grants You a
|
||||
restricted, non-exclusive, revocable license to install and use the
|
||||
Materials, but only as expressly permitted herein. You may only use the
|
||||
Software on computer systems under Your direct control. You may download
|
||||
multiple copies of the Materials and make verbatim copies of the
|
||||
original of the Software so long as Your use of such copies complies
|
||||
with the terms of this Agreement.
|
||||
a. Use by Individual. If You are accessing the Materials as an
|
||||
individual, only You (as an individual) may access and use the
|
||||
Materials.
|
||||
b. Use by Organization. If You are accessing the Materials on behalf of
|
||||
Your organization, only You and those within Your organization may use
|
||||
the Materials. Your organization must identify a contact person to TPC
|
||||
and conduct communications with TPC through that contact person.
|
||||
|
||||
4. Restrictions. The following restrictions apply to all use of the
|
||||
Materials by You.
|
||||
a. General: You may not:
|
||||
(1) use, copy, print, modify, adapt, create derivative works from,
|
||||
market, deliver, rent, lease, sublicense, make, have made, assign,
|
||||
pledge, transfer, sell, offer to sell, import, reproduce, distribute,
|
||||
publicly perform, publicly display or otherwise grant rights to the
|
||||
Materials, or any copy thereof, in whole or in part, except as expressly
|
||||
permitted under this Agreement; or
|
||||
(2) use the Materials in any way that does not comply with all
|
||||
applicable laws and regulations.
|
||||
b. Modification: You may modify the Software.
|
||||
c. Public Disclosure: You may not publicly disclose any performance
|
||||
results produced while using the Software except in the following
|
||||
circumstances:
|
||||
(1) as part of a TPC Benchmark Result. For purposes of this Agreement, a
|
||||
"TPC Benchmark Result" is a performance test submitted to the TPC,
|
||||
documented by a Full Disclosure Report and Executive Summary, claiming
|
||||
to meet the requirements of an official TPC Benchmark Standard. You
|
||||
agree that TPC Benchmark Results may only be published in accordance
|
||||
with the TPC Policies. viewable at http: //www.tpc.org
|
||||
(2) as part of an academic or research effort that does not imply or
|
||||
state a marketing position
|
||||
(3) any other use of the Software, provided that any performance results
|
||||
must be clearly identified as not being comparable to TPC Benchmark
|
||||
Results unless specifically authorized by TPC.
|
||||
|
||||
5. License Modification. Requests for modification of this license shall
|
||||
be addressed to info@tpc.org. You may not remove or modify this license
|
||||
without permission.
|
||||
|
||||
6. Copyright. The Materials are owned by TPC and/or its licensors, and
|
||||
are protected by United States copyright laws and international treaty
|
||||
provisions. You may not remove the copyright notice from the original or
|
||||
any copy of the Materials, and You must apply the notice if You extract
|
||||
part of the Materials not bearing a notice.
|
||||
|
||||
7. Use of Name. You acknowledge and agree that TPC owns all trademark
|
||||
and trade name rights in the names, trademarks and logos used by TPC in
|
||||
the Materials. User shall preserve any notices regarding such ownership.
|
||||
User may only use such names, trademarks and logos in accordance with
|
||||
the usage guidelines specified by the TPC Policies.
|
||||
|
||||
8. Merger or Integration. Any portion of the Materials merged into or
|
||||
integrated with other software or documentation will continue to be
|
||||
subject to the terms and conditions of this Agreement.
|
||||
|
||||
9. Limited Grants of Sublicense. You may distribute the Software as
|
||||
provided or as modified as permitted under clause 4 b. of this
|
||||
Agreement, provided You comply with all of the terms of this Agreement
|
||||
and the following conditions:
|
||||
|
||||
a. If You distribute any portion of the Software in its original form
|
||||
You may do so only under this Agreement by including a complete copy of
|
||||
this Agreement with Your distribution, and if You distribute the
|
||||
Software in modified form, You may only do so under a license that at a
|
||||
minimum provides all of the protections and conditions of use contained
|
||||
within this Agreement;
|
||||
|
||||
b. You must include on each copy of the Software that You distribute the
|
||||
following legend in all caps, at the top of the label and license, and
|
||||
in a font not less than 12 point and no less prominent than any other
|
||||
printing: "THE TPC SOFTWARE IS AVAILABLE WITHOUT CHARGE FROM TPC.";
|
||||
|
||||
c. You must retain all copyright, patent, trademark, and attribution
|
||||
notices that are present in the Software; and
|
||||
|
||||
d. You may not charge a fee for the distribution of this Software,
|
||||
including any modifications permitted under clause 4.b.
|
||||
|
||||
10. Term and Termination.
|
||||
a. Term. The license granted to You is effective until terminated.
|
||||
b. Termination.
|
||||
(1) By You. You may terminate this Agreement at any time by returning
|
||||
the Materials (including any portions or copies thereof) to TPC or
|
||||
providing written notice to the TPC that all copies of the Materials
|
||||
within Your custody or control have been deleted or destroyed.
|
||||
(2) By TPC. In the event You materially fail to comply with any term or
|
||||
condition of this Agreement, and You fail to remedy such non-compliance
|
||||
within 30 days after the receipt of notice to that effect, then TPC
|
||||
shall have the right to terminate this Agreement immediately upon
|
||||
written notice at the end of such 30-day period.
|
||||
c. Effect of Termination. Termination of this Agreement in accordance
|
||||
with this clause 10 will not terminate the rights of end users
|
||||
sublicensed by You pursuant to this Agreement. Moreover, upon
|
||||
termination and at TPC's written request, You agree to either (1) return
|
||||
the Materials (including any portions or copies thereof) to TPC or (2)
|
||||
immediately destroy all copies of the Materials within Your custody or
|
||||
control and inform the TPC of the destruction of the Materials. Upon
|
||||
termination, TPC may also enforce any rights provided by law. The
|
||||
provisions of this Agreement that protect the proprietary rights of TPC
|
||||
and its Licensors will continue in force after termination.
|
||||
|
||||
11. No Warranty; Materials Provided "As Is". TO THE MAXIMUM EXTENT
|
||||
PERMITTED BY APPLICABLE LAW, THE MATERIALS ARE PROVIDED "AS IS" AND WITH
|
||||
ALL FAULTS, AND TPC (AND ITS LICENSORS) AND THE AUTHORS AND DEVELOPERS
|
||||
OF THE MATERIALS HEREBY DISCLAIM ALL WARRANTIES, REPRESENTATIONS AND
|
||||
CONDITIONS, EITHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING, BUT NOT
|
||||
LIMITED TO, ANY IMPLIED WARRANTIES, DUTIES OR CONDITIONS RELATING TO
|
||||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, ACCURACY OR
|
||||
COMPLETENESS OF RESPONSES, RESULTS, WORKMANLIKE EFFORT, LACK OF VIRUSES,
|
||||
LACK OF NEGLIGENCE, TITLE, QUIET ENJOYMENT, QUIET POSSESSION,
|
||||
CORRESPONDENCE TO DESCRIPTION OR NONINFRINGEMENT. USER RECOGNIZES THAT
|
||||
THE MATERIALS ARE THE RESULT OF A COOPERATIVE, NON-PROFIT EFFORT AND
|
||||
THAT TPC DOES NOT CONDUCT A TYPICAL BUSINESS. USER ACCEPTS THE MATERIALS
|
||||
"AS IS" AND WITHOUT ANY WARRANTY, EXPRESS OR IMPLIED.
|
||||
|
||||
Without limitation, TPC (and its licensors) do not warrant that the
|
||||
functions contained in the Software or Materials will meet Your
|
||||
requirements or that the operation of the Software will be
|
||||
uninterrupted, error-free or free from malicious code. For purposes of
|
||||
this paragraph, "malicious code" means any program code designed to
|
||||
contaminate other computer programs or computer data, consume computer
|
||||
resources, modify, destroy, record, or transmit data, or in some other
|
||||
fashion usurp the normal operation of the computer, computer system, or
|
||||
computer network, including viruses, Trojan horses, droppers, worms,
|
||||
logic bombs, and the like. TPC (and its licensors) shall not be liable
|
||||
for the accuracy of any information provided by TPC or third-party
|
||||
technical support personnel, or any damages caused, either directly or
|
||||
indirectly, by acts taken or omissions made by You as a result of such
|
||||
technical support.
|
||||
|
||||
You assume full responsibility for the selection of the Materials to
|
||||
achieve Your intended results, and for the installation, use and results
|
||||
obtained from the Materials. You also assume the entire risk as it
|
||||
applies to the quality and performance of the Materials. Should the
|
||||
Materials prove defective, You (and not TPC) assume the entire liability
|
||||
of any and all necessary servicing, repair or correction. Some
|
||||
countries/states do not allow the exclusion of implied warranties, so
|
||||
the above exclusion may not apply to You. TPC (and its licensors)
|
||||
further disclaims all warranties of any kind if the Materials were
|
||||
customized, repackaged or altered in any way by any party other than TPC
|
||||
(or its licensors).
|
||||
|
||||
12. Disclaimer of Liability. TPC (and its licensors) assumes no
|
||||
liability with respect to the Materials, including liability for
|
||||
infringement of intellectual property rights, negligence, or any other
|
||||
liability. TPC is not aware of any infringement of copyright or patent
|
||||
that may result from its grant of rights to User of the Materials. If
|
||||
User receives any notice of infringement, such notice shall be
|
||||
immediately communicated to TPC who will have sole discretion to take
|
||||
action to evaluate the claim and, if practicable, modify the Materials
|
||||
as necessary to avoid infringement. In the event that TPC determines
|
||||
that the Materials cannot be modified to avoid such infringement (or any
|
||||
other infringement claim communicated to TPC), TPC may terminate this
|
||||
Agreement immediately. User shall suspend use of the Materials until
|
||||
modifications to avoid claims of infringement have been completed. User
|
||||
waives any claim against TPC in the event of such infringement claims by
|
||||
others.
|
||||
|
||||
13. Export Assurance. Use and re-export of the Materials and related
|
||||
technical information is subject to the Export Administration
|
||||
Regulations (EAR) of the United States Department of Commerce. User
|
||||
hereby agrees that User (a) assumes responsibility for compliance with
|
||||
the EAR in its use of the Materials and technical information, and (b)
|
||||
will not export, re-export, or otherwise disclose directly or
|
||||
indirectly, the Materials, technical data, or any direct product of the
|
||||
Materials or technical data in violation of the EAR.
|
||||
|
||||
14. Limitation of Remedies And Damages. IN NO EVENT WILL TPC OR ITS
|
||||
LICENSORS OR LICENSEE BE LIABLE FOR ANY INDIRECT, INCIDENTAL, SPECIAL OR
|
||||
CONSEQUENTIAL DAMAGES OR FOR ANY LOST PROFITS, LOST SAVINGS, LOST
|
||||
REVENUES OR LOST DATA ARISING FROM OR RELATING TO THE MATERIALS OR THIS
|
||||
AGREEMENT, EVEN IF TPC OR ITS LICENSORS OR LICENSEE HAVE BEEN ADVISED OF
|
||||
THE POSSIBILITY OF SUCH DAMAGES. IN NO EVENT WILL TPC'S OR ITS
|
||||
LICENSORS' LIABILITY OR DAMAGES TO YOU OR ANY OTHER PERSON EVER EXCEED
|
||||
U.S. ONE HUNDRED DOLLARS (US $100), REGARDLESS OF THE FORM OF THE CLAIM.
|
||||
IN NO EVENT WILL LICENSEE'S LIABILITY OR DAMAGES TO TPC OR ANY OTHER
|
||||
PERSON EVER EXCEED $1,000,000, REGARDLESS OF THE FORM OF THE CLAIM. Some
|
||||
countries/states do not allow the limitation or exclusion of liability
|
||||
for incidental or consequential damages, so the above limitation or
|
||||
exclusion may not apply to You.
|
||||
|
||||
15. U.S. Government Restricted Rights. All Software and related
|
||||
documentation are provided with restricted rights. Use, duplication or
|
||||
disclosure by the U.S. Government is subject to restrictions as set
|
||||
forth in subdivision (b)(3)(ii) of the Rights in Technical Data and
|
||||
Computer Software Clause at 252.227-7013. If You are using the Software
|
||||
outside of the United States, You will comply with the applicable local
|
||||
laws of Your country, U.S. export control law, and the English version
|
||||
of this Agreement.
|
||||
|
||||
16. Contractor/Manufacturer. The Contractor/Manufacturer for the
|
||||
Software is:
|
||||
|
||||
Transaction Processing Performance Council
|
||||
572B Ruger Street, P.O. Box 29920
|
||||
San Francisco, CA 94129
|
||||
|
||||
17. General. This Agreement is binding on You as well as Your employees,
|
||||
employers, contractors and agents, and on any successors and assignees.
|
||||
This Agreement is governed by the laws of the State of California
|
||||
(except to the extent federal law governs copyrights and trademarks)
|
||||
without respect to any provisions of California law that would cause
|
||||
application of the law of another state or country. The parties agree
|
||||
that the United Nations Convention on Contracts for the International
|
||||
Sale of Goods will not govern this Agreement. This Agreement is the
|
||||
entire agreement between us regarding the subject matter hereof and
|
||||
supersedes any other understandings or agreements with respect to the
|
||||
Materials or the subject matter hereof. If any provision of this
|
||||
Agreement is deemed invalid or unenforceable by any court having
|
||||
jurisdiction, that particular provision will be deemed modified to the
|
||||
extent necessary to make the provision valid and enforceable, and the
|
||||
remaining provisions will remain in full force and effect.
|
||||
|
||||
SPECIAL PROVISIONS APPLICABLE TO THE EUROPEAN UNION
|
||||
|
||||
If You acquired the Materials in the European Union (EU), the following
|
||||
provisions also apply to You. If there is any inconsistency between the
|
||||
terms of the Software License Agreement set out earlier and the
|
||||
following provisions, the following provisions shall take precedence.
|
||||
|
||||
1. Distribution. You may sublicense modifications of the Software
|
||||
covered in this Agreement if they meet the requirements of clause 9
|
||||
above.
|
||||
|
||||
2. Limited Warranty. EXCEPT AS STATED EARLIER IN THIS AGREEMENT, AND AS
|
||||
PROVIDED UNDER THE HEADING "STATUTORY RIGHTS", THE SOFTWARE IS PROVIDED
|
||||
AS-IS WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED,
|
||||
INCLUDING, BUT NOT LIMITED TO, ANY IMPLIED WARRANTIES, NONINFRINGEMENT,
|
||||
OR CONDITIONS OF MERCHANTABILITY, QUALITY AND FITNESS FOR A PARTICULAR
|
||||
PURPOSE.
|
||||
|
||||
3. Limitation of Remedy and Damages. THE LIMITATIONS OF REMEDIES AND
|
||||
DAMAGES IN THE SOFTWARE LICENSE AGREEMENT SHALL NOT APPLY TO PERSONAL
|
||||
INJURY (INCLUDING DEATH) TO ANY PERSON CAUSED BY TPC'S NEGLIGENCE AND
|
||||
ARE SUBJECT TO THE PROVISION SET OUT UNDER THE HEADING "STATUTORY
|
||||
RIGHTS".
|
||||
|
||||
4. Statutory Rights: Irish law provides that certain conditions and
|
||||
warranties may be implied in contracts for the sale of goods and in
|
||||
contracts for the supply of services. Such conditions and warranties are
|
||||
hereby excluded, to the extent such exclusion, in the context of this
|
||||
transaction, is lawful under Irish law. Conversely, such conditions and
|
||||
warranties, insofar as they may not be lawfully excluded, shall apply.
|
||||
Accordingly nothing in this Agreement shall prejudice any rights that
|
||||
You may enjoy by virtue of Sections 12, 13, 14 or 15 of the Irish Sale
|
||||
of Goods Act 1893 (as amended).
|
||||
|
||||
5. General. This Agreement is governed by the laws of the Republic of
|
||||
Ireland. The local language version of this agreement shall apply to
|
||||
Materials acquired in the EU. This Agreement is the entire agreement
|
||||
between us with respect to the subject matter hereof and You agree that
|
||||
TPC will not have any liability for any untrue statement or
|
||||
representation made by it, its agents or anyone else (whether innocently
|
||||
or negligently) upon which You relied upon entering this Agreement,
|
||||
unless such untrue statement or representation was made fraudulently.
|
||||
5
external/duckdb/extension/tpch/dbgen/answers/sf0.01/q01.csv
vendored
Normal file
5
external/duckdb/extension/tpch/dbgen/answers/sf0.01/q01.csv
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
l_returnflag|l_linestatus|sum_qty|sum_base_price|sum_disc_price|sum_charge|avg_qty|avg_price|avg_disc|count_order
|
||||
A|F|380456|532348211.65|505822441.4861|526165934.000839|25.575154611454693|35785.70930693735|0.05008133906964238|14876
|
||||
N|F|8971|12384801.37|11798257.2080|12282485.056933|25.778735632183906|35588.50968390804|0.047758620689655175|348
|
||||
N|O|742802|1041502841.45|989737518.6346|1029418531.523350|25.45498783454988|35691.129209074395|0.04993111956409993|29181
|
||||
R|F|381449|534594445.35|507996454.4067|528524219.358903|25.597168165346933|35874.00653268018|0.049827539927526504|14902
|
||||
|
5
external/duckdb/extension/tpch/dbgen/answers/sf0.01/q02.csv
vendored
Normal file
5
external/duckdb/extension/tpch/dbgen/answers/sf0.01/q02.csv
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
s_acctbal|s_name|n_name|p_partkey|p_mfgr|s_address|s_phone|s_comment
|
||||
4186.95|Supplier#000000077|GERMANY|249|Manufacturer#4|w5yO 0yjXou 8I4ffzADq,R8tD06x1vbeMpLJF2|17-281-345-4863|ainst the blithely ironic packages poach at the regul
|
||||
1883.37|Supplier#000000086|ROMANIA|1015|Manufacturer#4|iZLKKWaQADe|29-903-665-7065| foxes boost after the carefully silent asymptotes. slyl
|
||||
1687.81|Supplier#000000017|ROMANIA|1634|Manufacturer#2|PYN0m9j98GhX42DvBKvURcAd,B|29-601-884-9219|se slyly furiously even notornis. furiously regular packa
|
||||
287.16|Supplier#000000052|ROMANIA|323|Manufacturer#4|5oGr3pj2sprZNwho8CFW2haaObd0|29-974-934-4713|arefully silent pinto beans use furiously furiously even deposits. regular packages are furious
|
||||
|
11
external/duckdb/extension/tpch/dbgen/answers/sf0.01/q03.csv
vendored
Normal file
11
external/duckdb/extension/tpch/dbgen/answers/sf0.01/q03.csv
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
l_orderkey|revenue|o_orderdate|o_shippriority
|
||||
47714|267010.5894|1995-03-11|0
|
||||
22276|266351.5562|1995-01-29|0
|
||||
32965|263768.3414|1995-02-25|0
|
||||
21956|254541.1285|1995-02-02|0
|
||||
1637|243512.7981|1995-02-08|0
|
||||
10916|241320.0814|1995-03-11|0
|
||||
30497|208566.6969|1995-02-07|0
|
||||
450|205447.4232|1995-03-05|0
|
||||
47204|204478.5213|1995-03-13|0
|
||||
9696|201502.2188|1995-02-20|0
|
||||
|
6
external/duckdb/extension/tpch/dbgen/answers/sf0.01/q04.csv
vendored
Normal file
6
external/duckdb/extension/tpch/dbgen/answers/sf0.01/q04.csv
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
o_orderpriority|order_count
|
||||
1-URGENT|93
|
||||
2-HIGH|103
|
||||
3-MEDIUM|109
|
||||
4-NOT SPECIFIED|102
|
||||
5-LOW|128
|
||||
|
6
external/duckdb/extension/tpch/dbgen/answers/sf0.01/q05.csv
vendored
Normal file
6
external/duckdb/extension/tpch/dbgen/answers/sf0.01/q05.csv
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
n_name|revenue
|
||||
VIETNAM|1000926.6999
|
||||
CHINA|740210.7570
|
||||
JAPAN|660651.2425
|
||||
INDONESIA|566379.5276
|
||||
INDIA|422874.6844
|
||||
|
2
external/duckdb/extension/tpch/dbgen/answers/sf0.01/q06.csv
vendored
Normal file
2
external/duckdb/extension/tpch/dbgen/answers/sf0.01/q06.csv
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
revenue
|
||||
1193053.2253
|
||||
|
5
external/duckdb/extension/tpch/dbgen/answers/sf0.01/q07.csv
vendored
Normal file
5
external/duckdb/extension/tpch/dbgen/answers/sf0.01/q07.csv
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
supp_nation|cust_nation|l_year|revenue
|
||||
FRANCE|GERMANY|1995|268068.5774
|
||||
FRANCE|GERMANY|1996|303862.2980
|
||||
GERMANY|FRANCE|1995|621159.4882
|
||||
GERMANY|FRANCE|1996|379095.8854
|
||||
|
3
external/duckdb/extension/tpch/dbgen/answers/sf0.01/q08.csv
vendored
Normal file
3
external/duckdb/extension/tpch/dbgen/answers/sf0.01/q08.csv
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
o_year|mkt_share
|
||||
1995|0.0
|
||||
1996|0.0
|
||||
|
174
external/duckdb/extension/tpch/dbgen/answers/sf0.01/q09.csv
vendored
Normal file
174
external/duckdb/extension/tpch/dbgen/answers/sf0.01/q09.csv
vendored
Normal file
@@ -0,0 +1,174 @@
|
||||
nation|o_year|sum_profit
|
||||
ALGERIA|1998|97864.5682
|
||||
ALGERIA|1997|368231.6695
|
||||
ALGERIA|1996|196525.8046
|
||||
ALGERIA|1995|341438.6885
|
||||
ALGERIA|1994|677444.0160
|
||||
ALGERIA|1993|458756.9157
|
||||
ALGERIA|1992|549243.9511
|
||||
ARGENTINA|1998|80448.7680
|
||||
ARGENTINA|1997|186279.1618
|
||||
ARGENTINA|1996|154041.8822
|
||||
ARGENTINA|1995|113143.3119
|
||||
ARGENTINA|1994|169680.4239
|
||||
ARGENTINA|1993|116513.8141
|
||||
ARGENTINA|1992|202404.7608
|
||||
BRAZIL|1998|75952.5946
|
||||
BRAZIL|1997|190548.1104
|
||||
BRAZIL|1996|219059.0692
|
||||
BRAZIL|1995|186435.2023
|
||||
BRAZIL|1994|96835.1870
|
||||
BRAZIL|1993|186365.4109
|
||||
BRAZIL|1992|152546.4439
|
||||
CANADA|1998|101030.3336
|
||||
CANADA|1997|101197.3441
|
||||
CANADA|1996|257697.1355
|
||||
CANADA|1995|91474.8820
|
||||
CANADA|1994|249182.7548
|
||||
CANADA|1993|185737.8379
|
||||
CANADA|1992|143371.7465
|
||||
CHINA|1998|508364.5444
|
||||
CHINA|1997|650235.1646
|
||||
CHINA|1996|911366.0698
|
||||
CHINA|1995|797268.4076
|
||||
CHINA|1994|529989.3095
|
||||
CHINA|1993|573864.3972
|
||||
CHINA|1992|751688.7613
|
||||
EGYPT|1998|306325.2842
|
||||
EGYPT|1997|568461.6699
|
||||
EGYPT|1996|465081.9232
|
||||
EGYPT|1995|542886.5087
|
||||
EGYPT|1994|745807.8123
|
||||
EGYPT|1993|381503.2008
|
||||
EGYPT|1992|641866.4367
|
||||
ETHIOPIA|1998|226054.5716
|
||||
ETHIOPIA|1997|585193.2802
|
||||
ETHIOPIA|1996|405412.7741
|
||||
ETHIOPIA|1995|270455.7637
|
||||
ETHIOPIA|1994|567875.4279
|
||||
ETHIOPIA|1993|412302.2871
|
||||
ETHIOPIA|1992|551284.5821
|
||||
FRANCE|1998|135723.4050
|
||||
FRANCE|1997|249664.7578
|
||||
FRANCE|1996|175882.8934
|
||||
FRANCE|1995|116394.7866
|
||||
FRANCE|1994|197695.2438
|
||||
FRANCE|1993|231878.6201
|
||||
FRANCE|1992|199131.2037
|
||||
GERMANY|1998|172741.1024
|
||||
GERMANY|1997|393833.4660
|
||||
GERMANY|1996|335634.5936
|
||||
GERMANY|1995|378106.0763
|
||||
GERMANY|1994|250107.6653
|
||||
GERMANY|1993|327154.9365
|
||||
GERMANY|1992|387240.0885
|
||||
INDIA|1998|347548.7604
|
||||
INDIA|1997|656797.9670
|
||||
INDIA|1996|522759.3529
|
||||
INDIA|1995|574428.6693
|
||||
INDIA|1994|741983.7846
|
||||
INDIA|1993|729948.5341
|
||||
INDIA|1992|661061.1415
|
||||
INDONESIA|1998|91791.5096
|
||||
INDONESIA|1997|183956.4613
|
||||
INDONESIA|1996|415234.7848
|
||||
INDONESIA|1995|427155.3804
|
||||
INDONESIA|1994|286271.2875
|
||||
INDONESIA|1993|551178.8823
|
||||
INDONESIA|1992|274513.2685
|
||||
IRAN|1998|47959.8219
|
||||
IRAN|1997|184335.0615
|
||||
IRAN|1996|223115.2464
|
||||
IRAN|1995|125339.0927
|
||||
IRAN|1994|117228.3122
|
||||
IRAN|1993|208030.3229
|
||||
IRAN|1992|161835.5475
|
||||
IRAQ|1998|161797.4924
|
||||
IRAQ|1997|224876.5436
|
||||
IRAQ|1996|145277.8980
|
||||
IRAQ|1995|467955.2505
|
||||
IRAQ|1994|97455.2990
|
||||
IRAQ|1993|114821.6440
|
||||
IRAQ|1992|213307.1574
|
||||
JAPAN|1998|307594.5980
|
||||
JAPAN|1997|339018.1488
|
||||
JAPAN|1996|649578.3368
|
||||
JAPAN|1995|671644.0911
|
||||
JAPAN|1994|576266.2386
|
||||
JAPAN|1993|514190.8437
|
||||
JAPAN|1992|534914.9339
|
||||
JORDAN|1996|33460.2447
|
||||
JORDAN|1995|20364.1623
|
||||
JORDAN|1994|15528.6088
|
||||
JORDAN|1993|14640.9889
|
||||
JORDAN|1992|10904.2931
|
||||
KENYA|1998|521926.5198
|
||||
KENYA|1997|559632.3408
|
||||
KENYA|1996|772855.7939
|
||||
KENYA|1995|516452.5067
|
||||
KENYA|1994|543665.8154
|
||||
KENYA|1993|866924.8754
|
||||
KENYA|1992|567410.5502
|
||||
MOROCCO|1998|217794.4973
|
||||
MOROCCO|1997|439240.9287
|
||||
MOROCCO|1996|399969.4680
|
||||
MOROCCO|1995|258131.9398
|
||||
MOROCCO|1994|386972.1424
|
||||
MOROCCO|1993|145468.0381
|
||||
MOROCCO|1992|284314.2813
|
||||
MOZAMBIQUE|1998|518693.2238
|
||||
MOZAMBIQUE|1997|613873.2961
|
||||
MOZAMBIQUE|1996|936793.5612
|
||||
MOZAMBIQUE|1995|727204.7718
|
||||
MOZAMBIQUE|1994|1104618.1807
|
||||
MOZAMBIQUE|1993|893266.0530
|
||||
MOZAMBIQUE|1992|1062432.0884
|
||||
PERU|1998|287242.9797
|
||||
PERU|1997|532358.3660
|
||||
PERU|1996|398435.7507
|
||||
PERU|1995|462031.6251
|
||||
PERU|1994|304235.4118
|
||||
PERU|1993|505885.4890
|
||||
PERU|1992|382290.0947
|
||||
ROMANIA|1998|357824.5528
|
||||
ROMANIA|1997|569806.5564
|
||||
ROMANIA|1996|732001.5568
|
||||
ROMANIA|1995|408657.1154
|
||||
ROMANIA|1994|540702.5463
|
||||
ROMANIA|1993|883158.5056
|
||||
ROMANIA|1992|505488.9501
|
||||
RUSSIA|1998|34448.6357
|
||||
RUSSIA|1997|314972.0446
|
||||
RUSSIA|1996|430049.5821
|
||||
RUSSIA|1995|360538.0586
|
||||
RUSSIA|1994|301791.0114
|
||||
RUSSIA|1993|308993.9622
|
||||
RUSSIA|1992|289868.6564
|
||||
SAUDI ARABIA|1998|16502.4100
|
||||
SAUDI ARABIA|1997|61830.9556
|
||||
SAUDI ARABIA|1996|213650.2809
|
||||
SAUDI ARABIA|1995|62668.7250
|
||||
SAUDI ARABIA|1994|94629.1538
|
||||
SAUDI ARABIA|1993|57768.3071
|
||||
SAUDI ARABIA|1992|66520.1093
|
||||
UNITED KINGDOM|1998|80437.6523
|
||||
UNITED KINGDOM|1997|252509.7351
|
||||
UNITED KINGDOM|1996|231152.8582
|
||||
UNITED KINGDOM|1995|181310.8808
|
||||
UNITED KINGDOM|1994|239161.2061
|
||||
UNITED KINGDOM|1993|122103.1142
|
||||
UNITED KINGDOM|1992|60882.3080
|
||||
UNITED STATES|1998|440347.6658
|
||||
UNITED STATES|1997|652958.9371
|
||||
UNITED STATES|1996|1004593.8282
|
||||
UNITED STATES|1995|860144.1029
|
||||
UNITED STATES|1994|807797.4877
|
||||
UNITED STATES|1993|736669.4711
|
||||
UNITED STATES|1992|877851.4103
|
||||
VIETNAM|1998|358248.0159
|
||||
VIETNAM|1997|394817.2842
|
||||
VIETNAM|1996|439390.0836
|
||||
VIETNAM|1995|418626.6325
|
||||
VIETNAM|1994|422644.8168
|
||||
VIETNAM|1993|309063.4020
|
||||
VIETNAM|1992|716126.5378
|
||||
|
21
external/duckdb/extension/tpch/dbgen/answers/sf0.01/q10.csv
vendored
Normal file
21
external/duckdb/extension/tpch/dbgen/answers/sf0.01/q10.csv
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
c_custkey|c_name|revenue|c_acctbal|n_name|c_address|c_phone|c_comment
|
||||
679|Customer#000000679|378211.3252|1394.44|IRAN|jhLZlG1fRiSE0 wDLOCguVB96dH6a5|20-146-696-9508|oys. furiously silent pinto beans
|
||||
1201|Customer#000001201|374331.5340|5165.39|IRAN|gLo85h4Cst5ckn40ZKR6403KjW26YCWAFZsq d|20-825-400-1187|r foxes boost blithely final accounts. furiously silent ideas unwind. blithely even dependencies wake slyly; sly
|
||||
422|Customer#000000422|366451.0126|-272.14|INDONESIA|rtds1qwEinDWYhyIbRusRgXBDxGJraP,C,S zDwA|19-299-247-2444| are carefully. slyly regular requests hag
|
||||
334|Customer#000000334|360370.7550|-405.91|EGYPT|dbdZdUyWQaZX7DoCO|14-947-291-5002|r, bold pinto beans according to the blithely final theodolites can snooze slyly even packages. carefully ironic acc
|
||||
805|Customer#000000805|359448.9036|511.69|IRAN|woguVtOjwvC8LLtPRALISNwAOFRf70Pfqk|20-732-989-5653| quickly unusual accounts haggle carefully after the even accounts. deposits cajole carefully bravely spec
|
||||
932|Customer#000000932|341608.2753|6553.37|JORDAN|kdRqB0ezhkUePSc|23-300-708-7927|ound the regular accounts. quickly ironic requests try to
|
||||
853|Customer#000000853|341236.6246|-444.73|BRAZIL|7,rRbAvqK4hSqm,ljEDolyjRp8Mu44xSTG|12-869-161-3468|l foxes affix. furiously regular foxes
|
||||
872|Customer#000000872|338328.7808|-858.61|PERU|xfbTIe1pgWq0jqdm7gQP6iXqcs2RcSk|27-357-139-7164|unts believe across the ironic instructions. packages nag re
|
||||
737|Customer#000000737|338185.3365|2501.74|CHINA|eNHkZHYWXIpf8Ct,F2Aej BwxkZ6LTW|28-658-938-1102|ackages. blithely daring packages detect slyly around the carefully busy excuses. f
|
||||
1118|Customer#000001118|319875.7280|4130.18|IRAQ|bjK0newm53R2CoNAtvQsIqh|21-583-715-8627|ecial sentiments. express deposits across the blithely express packages wake quickly across the attainments. platele
|
||||
223|Customer#000000223|319564.2750|7476.20|SAUDI ARABIA|MyQxUcG0P QCetmG00GlF|30-193-643-1517|xcuses. silent theodolites across the carefully bold excuses sleep ironic, final courts. regular excuses
|
||||
808|Customer#000000808|314774.6167|5561.93|ROMANIA|9Y4G8hokyDQJOlcCUe4OypX smFlME6d Kr|29-531-319-7726|usual pinto beans use carefully. express ideas boost. ironic, ironic Tir
|
||||
478|Customer#000000478|299651.8026|-210.40|ARGENTINA|PFtAWWSniG43yWAgtjFPN0DrhyMCDIm|11-655-291-2694|even asymptotes haggle carefully slyl
|
||||
1441|Customer#000001441|294705.3935|9465.15|UNITED KINGDOM|y,221QWUv0CvgCVkRwsrOUpRshWpcjKkrHu|33-681-334-4499|ccounts are furiously above the slyly even foxes. furiously even requests hagg
|
||||
1478|Customer#000001478|294431.9178|9701.54|GERMANY|vTjnwinnB9YeA1VxKYoQELaZJm,HW|17-420-484-5959|nal instructions. quickly regular excuses haggle after the sl
|
||||
211|Customer#000000211|287905.6368|4198.72|JORDAN|79JF5cssWlB3ME|23-965-335-9471|unusual requests haggle after the unusual, ironic ideas. ironic orbits hinder carefully quickly final p
|
||||
197|Customer#000000197|283190.4807|9860.22|ARGENTINA|7M5Az MBdx4Ey1XTn|11-107-312-6585|latelets doze fluffily blithely final dep
|
||||
1030|Customer#000001030|282557.3566|6359.27|INDIA|4ByZpJpVJRD|18-759-877-1870| the final accounts. quick platelets are carefully. instructions a
|
||||
1049|Customer#000001049|281134.1117|8747.99|INDONESIA|Q1ZcOmJjQi2VKeIk|19-499-258-2851|sleep carefully final deposits. furiously bold depo
|
||||
1094|Customer#000001094|274877.4440|2544.49|BRAZIL|dls,MNN7EbF3GYrY3eRwSeOBZYd5o,cg|12-234-721-9871|structions among the furiously final pinto beans haggle fluffily
|
||||
|
360
external/duckdb/extension/tpch/dbgen/answers/sf0.01/q11.csv
vendored
Normal file
360
external/duckdb/extension/tpch/dbgen/answers/sf0.01/q11.csv
vendored
Normal file
@@ -0,0 +1,360 @@
|
||||
ps_partkey|value
|
||||
1376|13271249.89
|
||||
788|9498648.06
|
||||
1071|9388264.40
|
||||
1768|9207199.75
|
||||
1168|8881908.96
|
||||
1084|8709494.16
|
||||
1415|8471489.56
|
||||
1338|8293841.12
|
||||
124|8203209.30
|
||||
1232|8111663.34
|
||||
1643|7975862.75
|
||||
1952|7936947.61
|
||||
1944|7880018.60
|
||||
1884|7513422.84
|
||||
942|7511018.76
|
||||
670|7299956.80
|
||||
1532|7222347.20
|
||||
1052|7158586.00
|
||||
455|7064285.84
|
||||
1176|7060670.89
|
||||
143|7037648.64
|
||||
1653|6949533.70
|
||||
1140|6929464.08
|
||||
1076|6877472.96
|
||||
2000|6720009.38
|
||||
348|6681307.34
|
||||
810|6576640.95
|
||||
943|6458641.70
|
||||
720|6391330.27
|
||||
1748|6341530.40
|
||||
1241|6304944.66
|
||||
1384|6279261.12
|
||||
1784|6247863.25
|
||||
984|6136927.00
|
||||
445|6127784.28
|
||||
1976|6079237.08
|
||||
1609|6022720.80
|
||||
1563|5978195.08
|
||||
452|5838052.00
|
||||
222|5737162.24
|
||||
1629|5703117.12
|
||||
1454|5694804.18
|
||||
1082|5681981.25
|
||||
691|5633589.72
|
||||
1474|5614673.64
|
||||
1900|5591905.36
|
||||
262|5553285.32
|
||||
1876|5517997.59
|
||||
1027|5490916.00
|
||||
1833|5451495.00
|
||||
513|5374426.22
|
||||
752|5358919.70
|
||||
1367|5352773.25
|
||||
543|5189101.68
|
||||
1144|5174388.56
|
||||
403|5126118.15
|
||||
1406|5121886.44
|
||||
320|5072099.76
|
||||
1940|5069178.40
|
||||
1503|5050895.50
|
||||
1437|5039590.60
|
||||
743|5039271.42
|
||||
82|4995939.00
|
||||
916|4994730.10
|
||||
732|4932809.82
|
||||
356|4879860.09
|
||||
1592|4831242.60
|
||||
1043|4825921.31
|
||||
132|4781984.14
|
||||
1006|4733954.64
|
||||
497|4711173.60
|
||||
1008|4565588.85
|
||||
1370|4563830.10
|
||||
216|4561143.80
|
||||
34|4501982.71
|
||||
1908|4417931.80
|
||||
982|4391495.46
|
||||
1652|4358793.14
|
||||
614|4356657.45
|
||||
1552|4355541.70
|
||||
359|4353566.87
|
||||
1104|4347515.90
|
||||
198|4315049.00
|
||||
998|4167784.88
|
||||
1543|4159568.16
|
||||
1308|4153124.95
|
||||
474|4123819.20
|
||||
1394|4122729.33
|
||||
271|4095180.96
|
||||
908|4088856.20
|
||||
1135|4045014.13
|
||||
1632|4010794.90
|
||||
1362|3982060.16
|
||||
158|3941881.65
|
||||
1852|3923035.02
|
||||
1556|3896709.54
|
||||
584|3843848.30
|
||||
885|3826021.16
|
||||
376|3781201.96
|
||||
712|3749696.80
|
||||
2|3743241.43
|
||||
676|3735715.20
|
||||
1832|3709008.60
|
||||
1955|3702794.70
|
||||
68|3690702.41
|
||||
1435|3659114.10
|
||||
1443|3656762.84
|
||||
1278|3653100.66
|
||||
1920|3647892.54
|
||||
423|3602031.80
|
||||
818|3589047.60
|
||||
779|3559597.53
|
||||
485|3558511.44
|
||||
552|3555470.10
|
||||
1269|3510427.65
|
||||
1602|3492117.70
|
||||
426|3486888.02
|
||||
1452|3480825.60
|
||||
756|3469373.70
|
||||
832|3447746.46
|
||||
1493|3446867.40
|
||||
1650|3417752.58
|
||||
205|3403046.25
|
||||
93|3361425.89
|
||||
76|3342081.82
|
||||
1759|3303050.40
|
||||
886|3302180.70
|
||||
1544|3288573.16
|
||||
1932|3270900.40
|
||||
489|3253368.30
|
||||
594|3177408.57
|
||||
184|3177162.05
|
||||
950|3165213.01
|
||||
1124|3143279.36
|
||||
106|3099021.98
|
||||
1964|3016553.10
|
||||
384|2964262.77
|
||||
974|2959497.10
|
||||
964|2951329.45
|
||||
1984|2907345.36
|
||||
200|2895688.32
|
||||
683|2829476.95
|
||||
1564|2816506.56
|
||||
546|2788059.64
|
||||
502|2780828.64
|
||||
396|2778421.39
|
||||
203|2761439.88
|
||||
866|2753031.20
|
||||
1743|2743889.49
|
||||
1041|2738083.92
|
||||
1432|2713412.16
|
||||
43|2587359.58
|
||||
941|2587091.52
|
||||
1890|2558739.69
|
||||
1866|2545838.40
|
||||
747|2511745.32
|
||||
776|2506489.89
|
||||
554|2505417.25
|
||||
1210|2490820.92
|
||||
1239|2405206.30
|
||||
443|2382150.05
|
||||
1661|2370574.16
|
||||
1079|2363505.11
|
||||
1329|2305870.42
|
||||
1691|2261159.92
|
||||
1247|2239553.28
|
||||
1752|2230055.76
|
||||
150|2217043.59
|
||||
1814|2213635.20
|
||||
289|2187160.45
|
||||
1400|2139845.10
|
||||
1898|2130114.96
|
||||
1809|2122758.72
|
||||
884|2107479.56
|
||||
1038|2096868.97
|
||||
1318|2051302.44
|
||||
524|2035262.22
|
||||
414|2029692.45
|
||||
298|2026981.74
|
||||
1996|2020953.54
|
||||
1742|2019190.80
|
||||
1620|2010112.00
|
||||
877|1956429.18
|
||||
1332|1919029.56
|
||||
1536|1859318.15
|
||||
1116|1852588.28
|
||||
447|1817951.32
|
||||
1676|1802306.08
|
||||
1911|1779646.44
|
||||
1459|1767602.30
|
||||
576|1761838.75
|
||||
1273|1754235.01
|
||||
583|1725649.92
|
||||
532|1682311.48
|
||||
1732|1652831.20
|
||||
1572|1650953.52
|
||||
1889|1638443.72
|
||||
476|1631154.06
|
||||
1221|1629883.46
|
||||
1792|1606346.10
|
||||
243|1603235.16
|
||||
328|1569826.72
|
||||
1999|1553706.00
|
||||
1611|1529857.01
|
||||
643|1512838.80
|
||||
1276|1467567.28
|
||||
1823|1462293.00
|
||||
1|1456050.96
|
||||
27|1425832.40
|
||||
632|1408087.26
|
||||
1184|1406101.78
|
||||
252|1379186.35
|
||||
392|1354813.18
|
||||
1215|1344383.20
|
||||
26|1337002.89
|
||||
84|1334146.71
|
||||
784|1327297.01
|
||||
1803|1327045.06
|
||||
352|1326102.34
|
||||
165|1289075.76
|
||||
176|1285866.20
|
||||
1314|1244173.26
|
||||
1701|1239095.44
|
||||
844|1225696.05
|
||||
1988|1216798.33
|
||||
1847|1202012.13
|
||||
1706|1184125.10
|
||||
744|1182820.80
|
||||
230|1165932.30
|
||||
418|1078321.44
|
||||
174|1060584.80
|
||||
1073|1028449.89
|
||||
1726|1018673.04
|
||||
1206|1002319.49
|
||||
1343|998105.76
|
||||
952|997684.24
|
||||
484|991530.93
|
||||
932|980620.68
|
||||
843|978862.92
|
||||
1841|962131.86
|
||||
494|957575.34
|
||||
659|954291.05
|
||||
251|939764.70
|
||||
1413|936951.94
|
||||
572|906111.99
|
||||
32|894484.09
|
||||
9|893905.92
|
||||
1498|890887.85
|
||||
1790|878923.64
|
||||
1670|854046.43
|
||||
876|842245.67
|
||||
1758|841275.42
|
||||
930|832963.68
|
||||
284|826642.60
|
||||
1710|811504.38
|
||||
1047|791214.45
|
||||
653|788974.21
|
||||
315|770526.05
|
||||
1734|763569.40
|
||||
1017|715302.72
|
||||
1305|713351.43
|
||||
77|688865.82
|
||||
1512|682434.15
|
||||
276|680239.04
|
||||
1284|671225.94
|
||||
1356|665716.83
|
||||
800|663414.65
|
||||
117|639650.88
|
||||
652|635629.28
|
||||
57|630987.44
|
||||
1426|628241.25
|
||||
1196|622427.16
|
||||
51|622249.54
|
||||
1846|621068.80
|
||||
601|615942.60
|
||||
645|607985.84
|
||||
684|571490.70
|
||||
465|570337.40
|
||||
562|567651.24
|
||||
387|556634.76
|
||||
1152|555989.28
|
||||
1202|553818.18
|
||||
1112|552658.68
|
||||
304|535868.16
|
||||
368|526995.84
|
||||
1800|526711.11
|
||||
1148|515702.16
|
||||
225|513587.57
|
||||
324|500954.58
|
||||
586|499475.58
|
||||
1576|494401.05
|
||||
1484|462396.27
|
||||
126|461263.74
|
||||
1132|455492.24
|
||||
622|449685.60
|
||||
1160|448183.06
|
||||
1352|439967.04
|
||||
18|426442.08
|
||||
7|414558.20
|
||||
833|398540.87
|
||||
1694|376443.98
|
||||
650|370900.99
|
||||
1504|370815.90
|
||||
432|370528.52
|
||||
612|367894.50
|
||||
542|367653.66
|
||||
456|360911.32
|
||||
52|358792.36
|
||||
1346|350637.43
|
||||
59|342221.48
|
||||
1107|341805.20
|
||||
1171|334938.04
|
||||
1062|326445.90
|
||||
592|313081.75
|
||||
1750|312229.33
|
||||
1843|309456.95
|
||||
180|308539.84
|
||||
899|301989.50
|
||||
1180|293452.50
|
||||
522|291601.75
|
||||
249|282520.32
|
||||
1584|278559.38
|
||||
1404|276057.90
|
||||
1265|271079.76
|
||||
154|269641.42
|
||||
1295|265566.56
|
||||
1523|263158.90
|
||||
1635|254834.56
|
||||
1776|234181.20
|
||||
1097|234113.55
|
||||
1258|233500.61
|
||||
621|233431.30
|
||||
152|229781.60
|
||||
278|216372.84
|
||||
232|211879.92
|
||||
1684|201386.22
|
||||
1243|199587.54
|
||||
976|197432.10
|
||||
819|191475.90
|
||||
1943|191247.76
|
||||
853|189232.64
|
||||
400|188941.20
|
||||
639|186533.28
|
||||
851|184103.16
|
||||
909|175099.00
|
||||
257|169033.44
|
||||
1445|164888.68
|
||||
1855|164614.81
|
||||
1252|158680.90
|
||||
1014|156465.82
|
||||
1717|148325.75
|
||||
1032|146408.40
|
||||
780|136296.26
|
||||
918|135268.32
|
||||
690|133826.88
|
||||
711|113268.84
|
||||
332|112181.30
|
||||
1596|110565.00
|
||||
295|97604.25
|
||||
|
3
external/duckdb/extension/tpch/dbgen/answers/sf0.01/q12.csv
vendored
Normal file
3
external/duckdb/extension/tpch/dbgen/answers/sf0.01/q12.csv
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
l_shipmode|high_line_count|low_line_count
|
||||
MAIL|64|86
|
||||
SHIP|61|96
|
||||
|
33
external/duckdb/extension/tpch/dbgen/answers/sf0.01/q13.csv
vendored
Normal file
33
external/duckdb/extension/tpch/dbgen/answers/sf0.01/q13.csv
vendored
Normal file
@@ -0,0 +1,33 @@
|
||||
c_count|custdist
|
||||
0|500
|
||||
10|69
|
||||
9|66
|
||||
11|63
|
||||
12|60
|
||||
8|60
|
||||
14|56
|
||||
13|55
|
||||
21|48
|
||||
20|45
|
||||
7|45
|
||||
18|43
|
||||
19|42
|
||||
17|42
|
||||
16|42
|
||||
15|41
|
||||
22|37
|
||||
24|30
|
||||
6|30
|
||||
23|26
|
||||
25|20
|
||||
5|18
|
||||
26|17
|
||||
27|13
|
||||
29|7
|
||||
28|6
|
||||
4|6
|
||||
31|4
|
||||
3|3
|
||||
32|2
|
||||
30|2
|
||||
2|2
|
||||
|
2
external/duckdb/extension/tpch/dbgen/answers/sf0.01/q14.csv
vendored
Normal file
2
external/duckdb/extension/tpch/dbgen/answers/sf0.01/q14.csv
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
promo_revenue
|
||||
15.48654581228407
|
||||
|
2
external/duckdb/extension/tpch/dbgen/answers/sf0.01/q15.csv
vendored
Normal file
2
external/duckdb/extension/tpch/dbgen/answers/sf0.01/q15.csv
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
s_suppkey|s_name|s_address|s_phone|total_revenue
|
||||
21|Supplier#000000021|TZoQwNFFO i,baXpbpin02,hvuhE,GRVIKm |12-253-590-5816|1161099.4636
|
||||
|
297
external/duckdb/extension/tpch/dbgen/answers/sf0.01/q16.csv
vendored
Normal file
297
external/duckdb/extension/tpch/dbgen/answers/sf0.01/q16.csv
vendored
Normal file
@@ -0,0 +1,297 @@
|
||||
p_brand|p_type|p_size|supplier_cnt
|
||||
Brand#14|PROMO BRUSHED STEEL|9|8
|
||||
Brand#35|SMALL POLISHED COPPER|14|8
|
||||
Brand#22|LARGE BURNISHED TIN|36|6
|
||||
Brand#11|ECONOMY BURNISHED NICKEL|49|4
|
||||
Brand#11|LARGE PLATED TIN|23|4
|
||||
Brand#11|MEDIUM ANODIZED BRASS|45|4
|
||||
Brand#11|MEDIUM BRUSHED BRASS|45|4
|
||||
Brand#11|PROMO ANODIZED BRASS|3|4
|
||||
Brand#11|PROMO ANODIZED BRASS|49|4
|
||||
Brand#11|PROMO ANODIZED TIN|45|4
|
||||
Brand#11|PROMO BURNISHED BRASS|36|4
|
||||
Brand#11|SMALL ANODIZED TIN|45|4
|
||||
Brand#11|SMALL PLATED COPPER|45|4
|
||||
Brand#11|STANDARD POLISHED NICKEL|45|4
|
||||
Brand#11|STANDARD POLISHED TIN|45|4
|
||||
Brand#12|ECONOMY BURNISHED COPPER|45|4
|
||||
Brand#12|LARGE ANODIZED TIN|45|4
|
||||
Brand#12|LARGE BURNISHED BRASS|19|4
|
||||
Brand#12|LARGE PLATED STEEL|36|4
|
||||
Brand#12|MEDIUM PLATED BRASS|23|4
|
||||
Brand#12|PROMO BRUSHED COPPER|14|4
|
||||
Brand#12|PROMO BURNISHED BRASS|49|4
|
||||
Brand#12|SMALL ANODIZED COPPER|23|4
|
||||
Brand#12|STANDARD ANODIZED BRASS|3|4
|
||||
Brand#12|STANDARD BURNISHED TIN|23|4
|
||||
Brand#12|STANDARD PLATED STEEL|36|4
|
||||
Brand#13|ECONOMY PLATED STEEL|23|4
|
||||
Brand#13|ECONOMY POLISHED BRASS|9|4
|
||||
Brand#13|ECONOMY POLISHED COPPER|9|4
|
||||
Brand#13|LARGE ANODIZED TIN|19|4
|
||||
Brand#13|LARGE BURNISHED TIN|49|4
|
||||
Brand#13|LARGE POLISHED BRASS|3|4
|
||||
Brand#13|MEDIUM ANODIZED STEEL|36|4
|
||||
Brand#13|MEDIUM PLATED COPPER|19|4
|
||||
Brand#13|PROMO BRUSHED COPPER|49|4
|
||||
Brand#13|PROMO PLATED TIN|19|4
|
||||
Brand#13|SMALL BRUSHED NICKEL|19|4
|
||||
Brand#13|SMALL BURNISHED BRASS|45|4
|
||||
Brand#14|ECONOMY ANODIZED STEEL|19|4
|
||||
Brand#14|ECONOMY BURNISHED TIN|23|4
|
||||
Brand#14|ECONOMY PLATED STEEL|45|4
|
||||
Brand#14|ECONOMY PLATED TIN|9|4
|
||||
Brand#14|LARGE ANODIZED NICKEL|9|4
|
||||
Brand#14|LARGE BRUSHED NICKEL|45|4
|
||||
Brand#14|SMALL ANODIZED NICKEL|45|4
|
||||
Brand#14|SMALL BURNISHED COPPER|14|4
|
||||
Brand#14|SMALL BURNISHED TIN|23|4
|
||||
Brand#15|ECONOMY ANODIZED STEEL|36|4
|
||||
Brand#15|ECONOMY BRUSHED BRASS|36|4
|
||||
Brand#15|ECONOMY BURNISHED BRASS|14|4
|
||||
Brand#15|ECONOMY PLATED STEEL|45|4
|
||||
Brand#15|LARGE ANODIZED BRASS|45|4
|
||||
Brand#15|LARGE ANODIZED COPPER|3|4
|
||||
Brand#15|MEDIUM ANODIZED COPPER|9|4
|
||||
Brand#15|MEDIUM PLATED TIN|9|4
|
||||
Brand#15|PROMO POLISHED TIN|49|4
|
||||
Brand#15|SMALL POLISHED STEEL|19|4
|
||||
Brand#15|STANDARD BURNISHED STEEL|45|4
|
||||
Brand#15|STANDARD PLATED NICKEL|19|4
|
||||
Brand#15|STANDARD PLATED TIN|3|4
|
||||
Brand#21|ECONOMY ANODIZED STEEL|19|4
|
||||
Brand#21|ECONOMY BRUSHED TIN|49|4
|
||||
Brand#21|LARGE BURNISHED COPPER|19|4
|
||||
Brand#21|MEDIUM ANODIZED TIN|9|4
|
||||
Brand#21|MEDIUM BURNISHED STEEL|23|4
|
||||
Brand#21|PROMO BRUSHED STEEL|23|4
|
||||
Brand#21|PROMO BURNISHED COPPER|19|4
|
||||
Brand#21|STANDARD PLATED BRASS|49|4
|
||||
Brand#21|STANDARD POLISHED TIN|36|4
|
||||
Brand#22|ECONOMY BURNISHED NICKEL|19|4
|
||||
Brand#22|LARGE ANODIZED STEEL|3|4
|
||||
Brand#22|LARGE BURNISHED STEEL|23|4
|
||||
Brand#22|LARGE BURNISHED STEEL|45|4
|
||||
Brand#22|LARGE BURNISHED TIN|45|4
|
||||
Brand#22|LARGE POLISHED NICKEL|19|4
|
||||
Brand#22|MEDIUM ANODIZED TIN|9|4
|
||||
Brand#22|MEDIUM BRUSHED BRASS|14|4
|
||||
Brand#22|MEDIUM BRUSHED COPPER|3|4
|
||||
Brand#22|MEDIUM BRUSHED COPPER|45|4
|
||||
Brand#22|MEDIUM BURNISHED TIN|19|4
|
||||
Brand#22|MEDIUM BURNISHED TIN|23|4
|
||||
Brand#22|MEDIUM PLATED BRASS|49|4
|
||||
Brand#22|PROMO BRUSHED BRASS|9|4
|
||||
Brand#22|PROMO BRUSHED STEEL|36|4
|
||||
Brand#22|SMALL BRUSHED NICKEL|3|4
|
||||
Brand#22|SMALL BURNISHED STEEL|23|4
|
||||
Brand#22|STANDARD PLATED NICKEL|3|4
|
||||
Brand#22|STANDARD PLATED TIN|19|4
|
||||
Brand#23|ECONOMY BRUSHED COPPER|9|4
|
||||
Brand#23|LARGE ANODIZED COPPER|14|4
|
||||
Brand#23|LARGE PLATED BRASS|49|4
|
||||
Brand#23|MEDIUM BRUSHED NICKEL|3|4
|
||||
Brand#23|PROMO ANODIZED COPPER|19|4
|
||||
Brand#23|PROMO BURNISHED COPPER|14|4
|
||||
Brand#23|PROMO POLISHED BRASS|14|4
|
||||
Brand#23|SMALL BRUSHED BRASS|49|4
|
||||
Brand#23|SMALL BRUSHED COPPER|45|4
|
||||
Brand#23|SMALL BURNISHED COPPER|49|4
|
||||
Brand#23|SMALL PLATED BRASS|36|4
|
||||
Brand#23|SMALL POLISHED BRASS|9|4
|
||||
Brand#23|STANDARD BRUSHED TIN|3|4
|
||||
Brand#23|STANDARD PLATED BRASS|9|4
|
||||
Brand#23|STANDARD PLATED STEEL|36|4
|
||||
Brand#23|STANDARD PLATED TIN|19|4
|
||||
Brand#24|ECONOMY BRUSHED BRASS|36|4
|
||||
Brand#24|ECONOMY PLATED COPPER|36|4
|
||||
Brand#24|LARGE PLATED NICKEL|36|4
|
||||
Brand#24|MEDIUM PLATED STEEL|19|4
|
||||
Brand#24|PROMO POLISHED BRASS|14|4
|
||||
Brand#24|SMALL ANODIZED COPPER|3|4
|
||||
Brand#24|STANDARD BRUSHED BRASS|14|4
|
||||
Brand#24|STANDARD BRUSHED STEEL|14|4
|
||||
Brand#24|STANDARD POLISHED NICKEL|14|4
|
||||
Brand#25|ECONOMY BURNISHED TIN|19|4
|
||||
Brand#25|ECONOMY PLATED NICKEL|23|4
|
||||
Brand#25|LARGE ANODIZED NICKEL|23|4
|
||||
Brand#25|LARGE BRUSHED NICKEL|19|4
|
||||
Brand#25|LARGE BURNISHED TIN|49|4
|
||||
Brand#25|MEDIUM BURNISHED NICKEL|49|4
|
||||
Brand#25|MEDIUM PLATED BRASS|45|4
|
||||
Brand#25|PROMO ANODIZED TIN|3|4
|
||||
Brand#25|PROMO BURNISHED COPPER|45|4
|
||||
Brand#25|PROMO PLATED NICKEL|3|4
|
||||
Brand#25|SMALL BURNISHED COPPER|3|4
|
||||
Brand#25|SMALL PLATED TIN|36|4
|
||||
Brand#25|STANDARD ANODIZED TIN|9|4
|
||||
Brand#25|STANDARD PLATED NICKEL|36|4
|
||||
Brand#31|ECONOMY BURNISHED COPPER|36|4
|
||||
Brand#31|ECONOMY PLATED STEEL|23|4
|
||||
Brand#31|LARGE PLATED NICKEL|14|4
|
||||
Brand#31|MEDIUM BURNISHED COPPER|3|4
|
||||
Brand#31|MEDIUM PLATED TIN|36|4
|
||||
Brand#31|PROMO ANODIZED NICKEL|9|4
|
||||
Brand#31|PROMO POLISHED TIN|23|4
|
||||
Brand#31|SMALL ANODIZED COPPER|3|4
|
||||
Brand#31|SMALL ANODIZED COPPER|45|4
|
||||
Brand#31|SMALL BRUSHED NICKEL|23|4
|
||||
Brand#31|SMALL PLATED COPPER|36|4
|
||||
Brand#32|ECONOMY ANODIZED COPPER|36|4
|
||||
Brand#32|ECONOMY PLATED COPPER|9|4
|
||||
Brand#32|LARGE ANODIZED STEEL|14|4
|
||||
Brand#32|MEDIUM ANODIZED STEEL|49|4
|
||||
Brand#32|MEDIUM BURNISHED BRASS|9|4
|
||||
Brand#32|MEDIUM BURNISHED BRASS|49|4
|
||||
Brand#32|PROMO BRUSHED STEEL|23|4
|
||||
Brand#32|PROMO BURNISHED TIN|45|4
|
||||
Brand#32|SMALL ANODIZED TIN|9|4
|
||||
Brand#32|SMALL BRUSHED COPPER|3|4
|
||||
Brand#32|SMALL PLATED COPPER|45|4
|
||||
Brand#32|SMALL POLISHED STEEL|36|4
|
||||
Brand#32|SMALL POLISHED TIN|45|4
|
||||
Brand#32|STANDARD PLATED STEEL|36|4
|
||||
Brand#33|ECONOMY BURNISHED COPPER|14|4
|
||||
Brand#33|ECONOMY POLISHED BRASS|14|4
|
||||
Brand#33|LARGE BRUSHED TIN|36|4
|
||||
Brand#33|MEDIUM ANODIZED BRASS|3|4
|
||||
Brand#33|MEDIUM BURNISHED COPPER|14|4
|
||||
Brand#33|MEDIUM PLATED STEEL|49|4
|
||||
Brand#33|PROMO PLATED STEEL|49|4
|
||||
Brand#33|PROMO PLATED TIN|49|4
|
||||
Brand#33|PROMO POLISHED STEEL|9|4
|
||||
Brand#33|SMALL ANODIZED COPPER|23|4
|
||||
Brand#33|SMALL BRUSHED STEEL|3|4
|
||||
Brand#33|SMALL BURNISHED NICKEL|3|4
|
||||
Brand#33|STANDARD PLATED NICKEL|36|4
|
||||
Brand#34|ECONOMY ANODIZED TIN|49|4
|
||||
Brand#34|LARGE ANODIZED BRASS|23|4
|
||||
Brand#34|LARGE BRUSHED COPPER|23|4
|
||||
Brand#34|LARGE BURNISHED TIN|49|4
|
||||
Brand#34|LARGE PLATED BRASS|45|4
|
||||
Brand#34|MEDIUM BRUSHED COPPER|9|4
|
||||
Brand#34|MEDIUM BRUSHED TIN|14|4
|
||||
Brand#34|MEDIUM BURNISHED NICKEL|3|4
|
||||
Brand#34|SMALL ANODIZED STEEL|23|4
|
||||
Brand#34|SMALL BRUSHED TIN|9|4
|
||||
Brand#34|SMALL PLATED BRASS|14|4
|
||||
Brand#34|STANDARD ANODIZED NICKEL|36|4
|
||||
Brand#34|STANDARD BRUSHED TIN|19|4
|
||||
Brand#34|STANDARD BURNISHED TIN|23|4
|
||||
Brand#34|STANDARD PLATED NICKEL|36|4
|
||||
Brand#35|PROMO BURNISHED BRASS|3|4
|
||||
Brand#35|PROMO BURNISHED STEEL|14|4
|
||||
Brand#35|PROMO PLATED BRASS|19|4
|
||||
Brand#35|STANDARD ANODIZED NICKEL|14|4
|
||||
Brand#35|STANDARD ANODIZED STEEL|23|4
|
||||
Brand#35|STANDARD BRUSHED BRASS|3|4
|
||||
Brand#35|STANDARD BRUSHED NICKEL|49|4
|
||||
Brand#35|STANDARD PLATED STEEL|14|4
|
||||
Brand#41|MEDIUM ANODIZED NICKEL|9|4
|
||||
Brand#41|MEDIUM BRUSHED TIN|9|4
|
||||
Brand#41|MEDIUM PLATED STEEL|19|4
|
||||
Brand#41|PROMO ANODIZED NICKEL|9|4
|
||||
Brand#41|SMALL ANODIZED STEEL|45|4
|
||||
Brand#41|SMALL POLISHED COPPER|14|4
|
||||
Brand#41|STANDARD ANODIZED NICKEL|9|4
|
||||
Brand#41|STANDARD ANODIZED TIN|36|4
|
||||
Brand#41|STANDARD ANODIZED TIN|49|4
|
||||
Brand#41|STANDARD BRUSHED TIN|45|4
|
||||
Brand#41|STANDARD PLATED TIN|49|4
|
||||
Brand#42|ECONOMY BRUSHED COPPER|14|4
|
||||
Brand#42|LARGE ANODIZED NICKEL|49|4
|
||||
Brand#42|MEDIUM PLATED TIN|45|4
|
||||
Brand#42|PROMO BRUSHED STEEL|19|4
|
||||
Brand#42|PROMO BURNISHED TIN|49|4
|
||||
Brand#42|PROMO PLATED STEEL|19|4
|
||||
Brand#42|PROMO PLATED STEEL|45|4
|
||||
Brand#42|STANDARD BURNISHED NICKEL|49|4
|
||||
Brand#42|STANDARD PLATED COPPER|19|4
|
||||
Brand#43|ECONOMY ANODIZED COPPER|19|4
|
||||
Brand#43|ECONOMY ANODIZED NICKEL|49|4
|
||||
Brand#43|ECONOMY PLATED TIN|19|4
|
||||
Brand#43|ECONOMY POLISHED TIN|45|4
|
||||
Brand#43|LARGE BURNISHED COPPER|3|4
|
||||
Brand#43|LARGE POLISHED TIN|45|4
|
||||
Brand#43|MEDIUM ANODIZED BRASS|14|4
|
||||
Brand#43|MEDIUM ANODIZED COPPER|36|4
|
||||
Brand#43|MEDIUM ANODIZED COPPER|49|4
|
||||
Brand#43|MEDIUM BURNISHED TIN|23|4
|
||||
Brand#43|PROMO BRUSHED BRASS|36|4
|
||||
Brand#43|PROMO BURNISHED STEEL|3|4
|
||||
Brand#43|PROMO POLISHED BRASS|19|4
|
||||
Brand#43|SMALL BRUSHED NICKEL|9|4
|
||||
Brand#43|SMALL POLISHED STEEL|19|4
|
||||
Brand#43|STANDARD ANODIZED BRASS|3|4
|
||||
Brand#43|STANDARD PLATED TIN|14|4
|
||||
Brand#44|ECONOMY ANODIZED NICKEL|36|4
|
||||
Brand#44|ECONOMY POLISHED NICKEL|23|4
|
||||
Brand#44|LARGE ANODIZED BRASS|19|4
|
||||
Brand#44|LARGE BRUSHED TIN|3|4
|
||||
Brand#44|MEDIUM BRUSHED STEEL|19|4
|
||||
Brand#44|MEDIUM BURNISHED COPPER|45|4
|
||||
Brand#44|MEDIUM BURNISHED NICKEL|23|4
|
||||
Brand#44|MEDIUM PLATED COPPER|14|4
|
||||
Brand#44|SMALL ANODIZED COPPER|23|4
|
||||
Brand#44|SMALL ANODIZED TIN|45|4
|
||||
Brand#44|SMALL PLATED COPPER|19|4
|
||||
Brand#44|STANDARD ANODIZED COPPER|3|4
|
||||
Brand#44|STANDARD ANODIZED NICKEL|36|4
|
||||
Brand#51|ECONOMY ANODIZED STEEL|9|4
|
||||
Brand#51|ECONOMY PLATED NICKEL|49|4
|
||||
Brand#51|ECONOMY POLISHED COPPER|9|4
|
||||
Brand#51|ECONOMY POLISHED STEEL|49|4
|
||||
Brand#51|LARGE BURNISHED BRASS|19|4
|
||||
Brand#51|LARGE POLISHED STEEL|19|4
|
||||
Brand#51|MEDIUM ANODIZED TIN|14|4
|
||||
Brand#51|PROMO BRUSHED BRASS|23|4
|
||||
Brand#51|PROMO POLISHED STEEL|49|4
|
||||
Brand#51|SMALL BRUSHED TIN|36|4
|
||||
Brand#51|SMALL POLISHED STEEL|49|4
|
||||
Brand#51|STANDARD BRUSHED COPPER|3|4
|
||||
Brand#51|STANDARD BRUSHED NICKEL|19|4
|
||||
Brand#51|STANDARD BURNISHED COPPER|19|4
|
||||
Brand#52|ECONOMY ANODIZED BRASS|14|4
|
||||
Brand#52|ECONOMY ANODIZED COPPER|36|4
|
||||
Brand#52|ECONOMY BURNISHED NICKEL|19|4
|
||||
Brand#52|ECONOMY BURNISHED STEEL|36|4
|
||||
Brand#52|ECONOMY PLATED TIN|23|4
|
||||
Brand#52|LARGE BRUSHED NICKEL|19|4
|
||||
Brand#52|LARGE BURNISHED TIN|45|4
|
||||
Brand#52|LARGE PLATED STEEL|9|4
|
||||
Brand#52|LARGE PLATED TIN|9|4
|
||||
Brand#52|LARGE POLISHED NICKEL|36|4
|
||||
Brand#52|MEDIUM BURNISHED TIN|45|4
|
||||
Brand#52|SMALL ANODIZED NICKEL|36|4
|
||||
Brand#52|SMALL ANODIZED STEEL|9|4
|
||||
Brand#52|SMALL BRUSHED STEEL|23|4
|
||||
Brand#52|SMALL BURNISHED NICKEL|14|4
|
||||
Brand#52|STANDARD POLISHED STEEL|19|4
|
||||
Brand#53|LARGE BURNISHED NICKEL|23|4
|
||||
Brand#53|LARGE PLATED BRASS|9|4
|
||||
Brand#53|LARGE PLATED STEEL|49|4
|
||||
Brand#53|MEDIUM BRUSHED COPPER|3|4
|
||||
Brand#53|MEDIUM BRUSHED STEEL|45|4
|
||||
Brand#53|SMALL BRUSHED BRASS|36|4
|
||||
Brand#53|STANDARD PLATED STEEL|45|4
|
||||
Brand#54|ECONOMY ANODIZED BRASS|9|4
|
||||
Brand#54|ECONOMY BRUSHED TIN|19|4
|
||||
Brand#54|ECONOMY POLISHED BRASS|49|4
|
||||
Brand#54|LARGE ANODIZED BRASS|49|4
|
||||
Brand#54|LARGE BURNISHED BRASS|49|4
|
||||
Brand#54|LARGE BURNISHED TIN|14|4
|
||||
Brand#54|LARGE POLISHED BRASS|19|4
|
||||
Brand#54|MEDIUM BURNISHED STEEL|3|4
|
||||
Brand#54|SMALL BURNISHED STEEL|19|4
|
||||
Brand#54|SMALL PLATED BRASS|23|4
|
||||
Brand#54|SMALL PLATED TIN|14|4
|
||||
Brand#55|LARGE BRUSHED NICKEL|9|4
|
||||
Brand#55|LARGE PLATED TIN|9|4
|
||||
Brand#55|LARGE POLISHED STEEL|36|4
|
||||
Brand#55|MEDIUM BRUSHED TIN|45|4
|
||||
Brand#55|PROMO BRUSHED STEEL|36|4
|
||||
Brand#55|PROMO BURNISHED STEEL|14|4
|
||||
Brand#55|SMALL PLATED COPPER|45|4
|
||||
Brand#55|STANDARD ANODIZED BRASS|36|4
|
||||
Brand#55|STANDARD BRUSHED COPPER|3|4
|
||||
Brand#55|STANDARD BRUSHED STEEL|19|4
|
||||
|
2
external/duckdb/extension/tpch/dbgen/answers/sf0.01/q17.csv
vendored
Normal file
2
external/duckdb/extension/tpch/dbgen/answers/sf0.01/q17.csv
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
avg_yearly
|
||||
|
||||
|
3
external/duckdb/extension/tpch/dbgen/answers/sf0.01/q18.csv
vendored
Normal file
3
external/duckdb/extension/tpch/dbgen/answers/sf0.01/q18.csv
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
c_name|c_custkey|o_orderkey|o_orderdate|o_totalprice|sum
|
||||
Customer#000000667|667|29158|1995-10-21|439687.23|305
|
||||
Customer#000000178|178|6882|1997-04-09|422359.65|303
|
||||
|
2
external/duckdb/extension/tpch/dbgen/answers/sf0.01/q19.csv
vendored
Normal file
2
external/duckdb/extension/tpch/dbgen/answers/sf0.01/q19.csv
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
revenue
|
||||
22923.0280
|
||||
|
2
external/duckdb/extension/tpch/dbgen/answers/sf0.01/q20.csv
vendored
Normal file
2
external/duckdb/extension/tpch/dbgen/answers/sf0.01/q20.csv
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
s_name|s_address
|
||||
Supplier#000000013|kgTZjbt4CAa4c3SlirlBLqIL41YbCj
|
||||
|
2
external/duckdb/extension/tpch/dbgen/answers/sf0.01/q21.csv
vendored
Normal file
2
external/duckdb/extension/tpch/dbgen/answers/sf0.01/q21.csv
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
s_name|numwait
|
||||
Supplier#000000074|9
|
||||
|
8
external/duckdb/extension/tpch/dbgen/answers/sf0.01/q22.csv
vendored
Normal file
8
external/duckdb/extension/tpch/dbgen/answers/sf0.01/q22.csv
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
cntrycode|numcust|totacctbal
|
||||
13|10|75359.29
|
||||
17|8|62288.98
|
||||
18|14|111072.45
|
||||
23|5|40458.86
|
||||
29|11|88722.85
|
||||
30|17|122189.33
|
||||
31|8|66313.16
|
||||
|
5
external/duckdb/extension/tpch/dbgen/answers/sf0.1/q01.csv
vendored
Normal file
5
external/duckdb/extension/tpch/dbgen/answers/sf0.1/q01.csv
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
l_returnflag|l_linestatus|sum_qty|sum_base_price|sum_disc_price|sum_charge|avg_qty|avg_price|avg_disc|count_order
|
||||
A|F|3774200|5320753880.69|5054096266.6828|5256751331.449234|25.537587116854997|36002.12382901414|0.05014459706340077|147790
|
||||
N|F|95257|133737795.84|127132372.6512|132286291.229445|25.30066401062417|35521.32691633466|0.04939442231075697|3765
|
||||
N|O|7459297|10512270008.90|9986238338.3847|10385578376.585467|25.545537671232875|36000.9246880137|0.05009595890410959|292000
|
||||
R|F|3785523|5337950526.47|5071818532.9420|5274405503.049367|25.5259438574251|35994.029214030925|0.04998927856184382|148301
|
||||
|
45
external/duckdb/extension/tpch/dbgen/answers/sf0.1/q02.csv
vendored
Normal file
45
external/duckdb/extension/tpch/dbgen/answers/sf0.1/q02.csv
vendored
Normal file
@@ -0,0 +1,45 @@
|
||||
s_acctbal|s_name|n_name|p_partkey|p_mfgr|s_address|s_phone|s_comment
|
||||
9828.21|Supplier#000000647|UNITED KINGDOM|13120|Manufacturer#5|vV6Teq1EvLlR|33-258-202-4782|mong the carefully quiet accounts slee
|
||||
9508.37|Supplier#000000070|FRANCE|3563|Manufacturer#1|jd4djZv0cc5KdnA0q9oOqvceaPUbNloOW|16-821-608-1166|n instructions are about the ironic, ironic excuses. instructions cajol
|
||||
9508.37|Supplier#000000070|FRANCE|17268|Manufacturer#4|jd4djZv0cc5KdnA0q9oOqvceaPUbNloOW|16-821-608-1166|n instructions are about the ironic, ironic excuses. instructions cajol
|
||||
9453.01|Supplier#000000802|ROMANIA|10021|Manufacturer#5|1Uj23QWxQjj7EyeqHWqGWTbN|29-342-882-6463|s according to the even deposits integrate express packages. express
|
||||
9453.01|Supplier#000000802|ROMANIA|13275|Manufacturer#4|1Uj23QWxQjj7EyeqHWqGWTbN|29-342-882-6463|s according to the even deposits integrate express packages. express
|
||||
9192.10|Supplier#000000115|UNITED KINGDOM|13325|Manufacturer#1|EhrYy0MT5M1vfZ0V4skpifdp6pgFz5|33-597-248-1220|onic instructions. ironic, regular deposits haggle f
|
||||
9032.15|Supplier#000000959|GERMANY|4958|Manufacturer#4|TK qrnjpDvd1Jc|17-108-642-3106|nag across the slyly even pin
|
||||
8702.02|Supplier#000000333|RUSSIA|11810|Manufacturer#3|fQ5Lr4KvbNHI3WDMhkcI S6xYtgIi1k|32-508-202-6136|ounts around the requests cajole furiously blithely even instructions. slyly
|
||||
8615.50|Supplier#000000812|FRANCE|10551|Manufacturer#2|TAJWyNst8OGVPINgqtzwyyp002iYNDVub|16-585-724-6633|ress ideas eat quickly. blithely express deposits was slyly. final,
|
||||
8615.50|Supplier#000000812|FRANCE|13811|Manufacturer#4|TAJWyNst8OGVPINgqtzwyyp002iYNDVub|16-585-724-6633|ress ideas eat quickly. blithely express deposits was slyly. final,
|
||||
8488.53|Supplier#000000367|RUSSIA|6854|Manufacturer#4|nr8wRQ a5LXXess|32-458-198-9557|ect. quickly pending deposits sleep carefully even, express dependencies.
|
||||
8430.52|Supplier#000000646|FRANCE|11384|Manufacturer#3|j6szE80YCpLHJ4bZ7F37gUiGhk0WJ0,8h9y|16-601-220-5489|quickly slyly even deposits. quickly ironic theodolites sleep fluffily after the c
|
||||
8271.39|Supplier#000000146|RUSSIA|4637|Manufacturer#5|ApndKp ,Wu0 LNsoV0KldxyoIlY|32-792-619-3155|slyly regular foxes. unusual accounts about the regular packages
|
||||
8096.98|Supplier#000000574|RUSSIA|323|Manufacturer#4|ZcSrzuRKYEGpcxmIsH,BrYBMwH0|32-866-246-8752|boost according to the slyly final instructions. furiously ironic packages cajole furiously
|
||||
7392.78|Supplier#000000170|UNITED KINGDOM|7655|Manufacturer#2|ayz3a18xDGrr3jtS|33-803-340-5398|egular, even packages. pending,
|
||||
7205.20|Supplier#000000477|GERMANY|10956|Manufacturer#5|6yQdgeVeAxJVtJTIYFNNWvQL|17-180-144-7991|ual accounts use quickly above the carefully quiet dolphins. packages nag closely. iro
|
||||
6820.35|Supplier#000000007|UNITED KINGDOM|13217|Manufacturer#5| 0W7IPdkpWycUbQ9Adp6B|33-990-965-2201|ke across the slyly ironic packages. carefully special pinto beans wake blithely. even deposits los
|
||||
6721.70|Supplier#000000954|FRANCE|4191|Manufacturer#3|cXcVBs6lsZbzfE14|16-537-341-8517|mong the quickly express pinto b
|
||||
6329.90|Supplier#000000996|GERMANY|10735|Manufacturer#2|5uWNawcqv4IL8okyBL e|17-447-811-3282|deas. bold dinos are. carefully reg
|
||||
6173.87|Supplier#000000408|RUSSIA|18139|Manufacturer#1|BOC Zy0wh3rCGHDgV0NIGt2dEK|32-858-724-2950| are carefully above the carefully final pinto beans. blithely express foxes ab
|
||||
5364.99|Supplier#000000785|RUSSIA|13784|Manufacturer#4|5r5GjqBatnYAHaH5kB4IPcBEiglMJEnN4tUUG6k2|32-297-653-2203|se carefully after the bravely stealthy instru
|
||||
5069.27|Supplier#000000328|GERMANY|16327|Manufacturer#1|9eEYWOr4kUZ|17-231-513-5721|es according to the slyly ironic package
|
||||
4941.88|Supplier#000000321|ROMANIA|7320|Manufacturer#5|CfDKlGVtMePjtCw|29-573-279-1406| instructions boost carefu
|
||||
4672.25|Supplier#000000239|RUSSIA|12238|Manufacturer#1|4cZ,ZHKj hRKgYlgZ6UapQ7mrEOozeQMx7KhUCS|32-396-654-6826|s wake fluffily slyly special foxes. ironic, bold
|
||||
4586.49|Supplier#000000680|RUSSIA|5679|Manufacturer#3|7JwnLOmLhJ1aPMT61PSx9kcY77r,HmRUD314m|32-522-382-1620|e even pinto beans. blithely fluffy ideas cajole slyly around the bl
|
||||
4518.31|Supplier#000000149|FRANCE|18344|Manufacturer#5|C5t4zIcINBkgBWdMg6WtgMtE|16-660-553-2456|silent platelets. ideas hinder carefully among the slyly regular deposits. slyly pending inst
|
||||
4315.15|Supplier#000000509|FRANCE|18972|Manufacturer#2|9lTN9T5VBg|16-298-154-3365|ep boldly ironic theodolites. special dependencies lose blithely. final, regular packages wake
|
||||
3526.53|Supplier#000000553|FRANCE|8036|Manufacturer#4|R0FI5DL3Poi|16-599-552-3755|l foxes wake slyly even f
|
||||
3526.53|Supplier#000000553|FRANCE|17018|Manufacturer#3|R0FI5DL3Poi|16-599-552-3755|l foxes wake slyly even f
|
||||
3294.68|Supplier#000000350|GERMANY|4841|Manufacturer#4|hilu5UXMCwFvJJ|17-113-181-4017|ronic ideas. blithely blithe accounts sleep blithely. regular requests boost carefully about the r
|
||||
2972.26|Supplier#000000016|RUSSIA|1015|Manufacturer#4|3HbVoWVsjn4fTfQGgYTsMaDvMINBIDXqeBwK|32-822-502-4215|platelets thrash against the slyly special req
|
||||
2963.09|Supplier#000000840|ROMANIA|3080|Manufacturer#2|J2s6iuBgJo03|29-781-337-5584|s sleep blithely unusual packages! even, bold accounts sleep slyly about the even
|
||||
2221.25|Supplier#000000771|ROMANIA|13981|Manufacturer#2|Gv1ri,V ARHE136eJF|29-986-304-9006|lphins affix blithely along the carefully final ide
|
||||
1381.97|Supplier#000000104|FRANCE|18103|Manufacturer#3|oOFWtl sAwYcbM9dWRPgKTS3Ebmn9Tcp3iz0F|16-434-972-6922|s. blithely pending requests against the regular instructions cajole sometimes according to the qu
|
||||
906.07|Supplier#000000138|ROMANIA|8363|Manufacturer#4|yyPBFrErKTaEu5L3CdNJP ak4ys9AbN,Aj8wPgv|29-533-434-6776|deas haggle. final, regular packages wake. quiet packages cajole pinto beans
|
||||
765.69|Supplier#000000799|RUSSIA|11276|Manufacturer#2|IvldT2pX7R el|32-579-339-1495| deposits: pending, unusual forges nag fluffily regular ideas
|
||||
727.89|Supplier#000000470|ROMANIA|6213|Manufacturer#3|4OGPs qKpfQ6GNLIKhmbIE6e7fSMP8fmwi|29-165-289-1523|ly silent accounts. foxes maintain blithely along the idly
|
||||
683.07|Supplier#000000651|RUSSIA|4888|Manufacturer#4|D4MGIq5Uz0,K|32-181-426-4490|ve to are slyly ironic asymptot
|
||||
167.56|Supplier#000000290|FRANCE|2037|Manufacturer#1|VpG,Ul5yv1RgAK,,|16-675-286-5102| carefully furiously stealthy accounts. bold acc
|
||||
91.39|Supplier#000000949|UNITED KINGDOM|9430|Manufacturer#2|R06m0VD95FZLoBJHcCMyaZQHitqmhZrQZkZk5|33-332-697-2768|sual requests. carefully regular requests bo
|
||||
-314.06|Supplier#000000510|ROMANIA|17242|Manufacturer#4|6E3aFs0w2SiImzMDSewWtzOwdpLz2|29-207-852-3454|lyly regular accounts. deposits
|
||||
-820.89|Supplier#000000409|GERMANY|2156|Manufacturer#5|gt362msTQ3AwtUVHgqP7Ryksk90dnpPNyn|17-719-517-9836|nal deposits doubt blithely regular packages. fr
|
||||
-845.44|Supplier#000000704|ROMANIA|9926|Manufacturer#5|KawFpBPAADrVnKC,pLL9q3TSyHG9x|29-300-896-5991|ous pearls boost carefully
|
||||
-942.73|Supplier#000000563|GERMANY|5797|Manufacturer#1|aOT6ZP96J2 ,Xhn|17-108-537-2691|are blithely silent requests. quickly even packages use blit
|
||||
|
11
external/duckdb/extension/tpch/dbgen/answers/sf0.1/q03.csv
vendored
Normal file
11
external/duckdb/extension/tpch/dbgen/answers/sf0.1/q03.csv
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
l_orderkey|revenue|o_orderdate|o_shippriority
|
||||
223140|355369.0698|1995-03-14|0
|
||||
584291|354494.7318|1995-02-21|0
|
||||
405063|353125.4577|1995-03-03|0
|
||||
573861|351238.2770|1995-03-09|0
|
||||
554757|349181.7426|1995-03-14|0
|
||||
506021|321075.5810|1995-03-10|0
|
||||
121604|318576.4154|1995-03-07|0
|
||||
108514|314967.0754|1995-02-20|0
|
||||
462502|312604.5420|1995-03-08|0
|
||||
178727|309728.9306|1995-02-25|0
|
||||
|
6
external/duckdb/extension/tpch/dbgen/answers/sf0.1/q04.csv
vendored
Normal file
6
external/duckdb/extension/tpch/dbgen/answers/sf0.1/q04.csv
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
o_orderpriority|order_count
|
||||
1-URGENT|999
|
||||
2-HIGH|997
|
||||
3-MEDIUM|1031
|
||||
4-NOT SPECIFIED|989
|
||||
5-LOW|1077
|
||||
|
6
external/duckdb/extension/tpch/dbgen/answers/sf0.1/q05.csv
vendored
Normal file
6
external/duckdb/extension/tpch/dbgen/answers/sf0.1/q05.csv
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
n_name|revenue
|
||||
CHINA|7822103.0000
|
||||
INDIA|6376121.5085
|
||||
JAPAN|6000077.2184
|
||||
INDONESIA|5580475.4027
|
||||
VIETNAM|4497840.5466
|
||||
|
2
external/duckdb/extension/tpch/dbgen/answers/sf0.1/q06.csv
vendored
Normal file
2
external/duckdb/extension/tpch/dbgen/answers/sf0.1/q06.csv
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
revenue
|
||||
11803420.2534
|
||||
|
5
external/duckdb/extension/tpch/dbgen/answers/sf0.1/q07.csv
vendored
Normal file
5
external/duckdb/extension/tpch/dbgen/answers/sf0.1/q07.csv
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
supp_nation|cust_nation|l_year|revenue
|
||||
FRANCE|GERMANY|1995|4637235.1501
|
||||
FRANCE|GERMANY|1996|5224779.5736
|
||||
GERMANY|FRANCE|1995|6232818.7037
|
||||
GERMANY|FRANCE|1996|5557312.1121
|
||||
|
3
external/duckdb/extension/tpch/dbgen/answers/sf0.1/q08.csv
vendored
Normal file
3
external/duckdb/extension/tpch/dbgen/answers/sf0.1/q08.csv
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
o_year|mkt_share
|
||||
1995|0.028648741305617557
|
||||
1996|0.018250279107962147
|
||||
|
176
external/duckdb/extension/tpch/dbgen/answers/sf0.1/q09.csv
vendored
Normal file
176
external/duckdb/extension/tpch/dbgen/answers/sf0.1/q09.csv
vendored
Normal file
@@ -0,0 +1,176 @@
|
||||
nation|o_year|sum_profit
|
||||
ALGERIA|1998|2321785.3682
|
||||
ALGERIA|1997|3685016.8589
|
||||
ALGERIA|1996|4276597.4253
|
||||
ALGERIA|1995|4418370.4154
|
||||
ALGERIA|1994|3864849.9521
|
||||
ALGERIA|1993|3541051.3865
|
||||
ALGERIA|1992|4310013.3482
|
||||
ARGENTINA|1998|2685983.8005
|
||||
ARGENTINA|1997|4242147.8124
|
||||
ARGENTINA|1996|3907867.0103
|
||||
ARGENTINA|1995|4605921.5011
|
||||
ARGENTINA|1994|3542096.1564
|
||||
ARGENTINA|1993|3949965.9388
|
||||
ARGENTINA|1992|4521180.4695
|
||||
BRAZIL|1998|2778730.3931
|
||||
BRAZIL|1997|4642037.4687
|
||||
BRAZIL|1996|4530304.6034
|
||||
BRAZIL|1995|4502344.8657
|
||||
BRAZIL|1994|4875806.5015
|
||||
BRAZIL|1993|4687478.6531
|
||||
BRAZIL|1992|5035200.0464
|
||||
CANADA|1998|2194509.0465
|
||||
CANADA|1997|3482197.9521
|
||||
CANADA|1996|3712231.2814
|
||||
CANADA|1995|4014814.8476
|
||||
CANADA|1994|4145304.4855
|
||||
CANADA|1993|3787069.6045
|
||||
CANADA|1992|4168009.4201
|
||||
CHINA|1998|3398578.0001
|
||||
CHINA|1997|6358959.3338
|
||||
CHINA|1996|6435158.3229
|
||||
CHINA|1995|6174776.2113
|
||||
CHINA|1994|6385751.0812
|
||||
CHINA|1993|5765034.1194
|
||||
CHINA|1992|6324034.2379
|
||||
EGYPT|1998|2333148.3334
|
||||
EGYPT|1997|3661244.2731
|
||||
EGYPT|1996|3765371.2368
|
||||
EGYPT|1995|4094744.2925
|
||||
EGYPT|1994|3566508.0818
|
||||
EGYPT|1993|3725283.7747
|
||||
EGYPT|1992|3373762.3335
|
||||
ETHIOPIA|1998|1953927.2682
|
||||
ETHIOPIA|1997|3285786.3266
|
||||
ETHIOPIA|1996|3525028.7952
|
||||
ETHIOPIA|1995|3781674.8911
|
||||
ETHIOPIA|1994|3037409.4360
|
||||
ETHIOPIA|1993|3008978.2677
|
||||
ETHIOPIA|1992|2721203.2355
|
||||
FRANCE|1998|2604373.8805
|
||||
FRANCE|1997|3982872.0488
|
||||
FRANCE|1996|3622479.2413
|
||||
FRANCE|1995|4479939.7020
|
||||
FRANCE|1994|3531013.1981
|
||||
FRANCE|1993|4086437.3102
|
||||
FRANCE|1992|3637792.1333
|
||||
GERMANY|1998|3291023.2965
|
||||
GERMANY|1997|5139337.3443
|
||||
GERMANY|1996|4799810.4577
|
||||
GERMANY|1995|5405785.7978
|
||||
GERMANY|1994|4555556.4592
|
||||
GERMANY|1993|4428195.1019
|
||||
GERMANY|1992|4656148.4204
|
||||
INDIA|1998|2591288.1874
|
||||
INDIA|1997|5159562.7033
|
||||
INDIA|1996|5307258.3049
|
||||
INDIA|1995|5148208.7902
|
||||
INDIA|1994|5164001.9582
|
||||
INDIA|1993|4321398.4388
|
||||
INDIA|1992|5297703.6935
|
||||
INDONESIA|1998|3094900.1597
|
||||
INDONESIA|1997|5719773.0358
|
||||
INDONESIA|1996|6037238.5993
|
||||
INDONESIA|1995|5266783.4899
|
||||
INDONESIA|1994|5470762.8729
|
||||
INDONESIA|1993|6189826.6613
|
||||
INDONESIA|1992|4414623.1549
|
||||
IRAN|1998|3214864.1209
|
||||
IRAN|1997|3688049.0691
|
||||
IRAN|1996|3621649.2247
|
||||
IRAN|1995|4420783.4205
|
||||
IRAN|1994|4373984.6523
|
||||
IRAN|1993|3731301.7814
|
||||
IRAN|1992|4417133.3662
|
||||
IRAQ|1998|2338859.4099
|
||||
IRAQ|1997|3622681.5643
|
||||
IRAQ|1996|4762291.8722
|
||||
IRAQ|1995|4558092.7359
|
||||
IRAQ|1994|4951604.1699
|
||||
IRAQ|1993|3830077.9911
|
||||
IRAQ|1992|3938636.4874
|
||||
JAPAN|1998|1849535.0802
|
||||
JAPAN|1997|4068688.8537
|
||||
JAPAN|1996|4044774.7597
|
||||
JAPAN|1995|4793005.8027
|
||||
JAPAN|1994|4114717.0568
|
||||
JAPAN|1993|3614468.7485
|
||||
JAPAN|1992|4266694.4700
|
||||
JORDAN|1998|1811488.0719
|
||||
JORDAN|1997|2951297.8678
|
||||
JORDAN|1996|3302528.3067
|
||||
JORDAN|1995|3221813.9990
|
||||
JORDAN|1994|2417892.0921
|
||||
JORDAN|1993|3107641.7661
|
||||
JORDAN|1992|3316379.0585
|
||||
KENYA|1998|2579075.4190
|
||||
KENYA|1997|2929194.2317
|
||||
KENYA|1996|3569129.5619
|
||||
KENYA|1995|3542889.1087
|
||||
KENYA|1994|3983095.3994
|
||||
KENYA|1993|3713988.9708
|
||||
KENYA|1992|3304641.8340
|
||||
MOROCCO|1998|1815334.8180
|
||||
MOROCCO|1997|3693214.8447
|
||||
MOROCCO|1996|4116175.9230
|
||||
MOROCCO|1995|3515127.1402
|
||||
MOROCCO|1994|4003072.1120
|
||||
MOROCCO|1993|3599199.6679
|
||||
MOROCCO|1992|3958335.4224
|
||||
MOZAMBIQUE|1998|1620428.7346
|
||||
MOZAMBIQUE|1997|2802166.6473
|
||||
MOZAMBIQUE|1996|2409955.1755
|
||||
MOZAMBIQUE|1995|2771602.6274
|
||||
MOZAMBIQUE|1994|2548226.2158
|
||||
MOZAMBIQUE|1993|2843748.9053
|
||||
MOZAMBIQUE|1992|2556501.0943
|
||||
PERU|1998|2036430.3602
|
||||
PERU|1997|4064142.4091
|
||||
PERU|1996|4068678.5671
|
||||
PERU|1995|4657694.8412
|
||||
PERU|1994|4731959.4655
|
||||
PERU|1993|4144006.6610
|
||||
PERU|1992|3754635.0078
|
||||
ROMANIA|1998|1992773.6811
|
||||
ROMANIA|1997|2854639.8680
|
||||
ROMANIA|1996|3139337.3029
|
||||
ROMANIA|1995|3222153.3776
|
||||
ROMANIA|1994|3222844.3190
|
||||
ROMANIA|1993|3488994.0288
|
||||
ROMANIA|1992|3029274.4420
|
||||
RUSSIA|1998|2339865.6635
|
||||
RUSSIA|1997|4153619.5424
|
||||
RUSSIA|1996|3772067.4041
|
||||
RUSSIA|1995|4704988.8607
|
||||
RUSSIA|1994|4479082.8694
|
||||
RUSSIA|1993|4767719.9791
|
||||
RUSSIA|1992|4533465.5590
|
||||
SAUDI ARABIA|1998|3386948.9564
|
||||
SAUDI ARABIA|1997|5425980.3373
|
||||
SAUDI ARABIA|1996|5227607.1677
|
||||
SAUDI ARABIA|1995|4506731.6411
|
||||
SAUDI ARABIA|1994|4698658.7425
|
||||
SAUDI ARABIA|1993|5493626.5285
|
||||
SAUDI ARABIA|1992|4573560.0150
|
||||
UNITED KINGDOM|1998|2252021.5137
|
||||
UNITED KINGDOM|1997|4343926.8026
|
||||
UNITED KINGDOM|1996|4189476.3065
|
||||
UNITED KINGDOM|1995|4469569.8829
|
||||
UNITED KINGDOM|1994|4410094.6264
|
||||
UNITED KINGDOM|1993|4054677.1050
|
||||
UNITED KINGDOM|1992|3978688.8831
|
||||
UNITED STATES|1998|2238771.5581
|
||||
UNITED STATES|1997|4135581.5734
|
||||
UNITED STATES|1996|3624013.2660
|
||||
UNITED STATES|1995|3892244.5172
|
||||
UNITED STATES|1994|3289224.1138
|
||||
UNITED STATES|1993|3626170.2028
|
||||
UNITED STATES|1992|3993973.4997
|
||||
VIETNAM|1998|1924313.4862
|
||||
VIETNAM|1997|3436195.3709
|
||||
VIETNAM|1996|4017288.8927
|
||||
VIETNAM|1995|3644054.1372
|
||||
VIETNAM|1994|4141277.6665
|
||||
VIETNAM|1993|2556114.1693
|
||||
VIETNAM|1992|4090524.4905
|
||||
|
21
external/duckdb/extension/tpch/dbgen/answers/sf0.1/q10.csv
vendored
Normal file
21
external/duckdb/extension/tpch/dbgen/answers/sf0.1/q10.csv
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
c_custkey|c_name|revenue|c_acctbal|n_name|c_address|c_phone|c_comment
|
||||
8242|Customer#000008242|622786.7297|6322.09|ETHIOPIA|cYDWDiJt06B8CYzXX2L8x2hn1VFG|15-792-676-1184| regular theodolites affix. carefully ironic packages cajole deposits; slyly ironic packages wake quickly. regular,
|
||||
7714|Customer#000007714|557400.3053|9799.98|IRAN|9DDikq08GEE4B3X|20-922-418-6024|even accounts should cajole. regular, regular
|
||||
11032|Customer#000011032|512500.9641|8496.93|UNITED KINGDOM|5igjoUgXoDUZVUIectL5lXO1T3AGKza0ft|33-102-772-3533|uests. ironic accounts after the fluffily fi
|
||||
2455|Customer#000002455|481592.4053|2070.99|GERMANY|a5DZ199yfAcFhfi2uwBE PKo,Z|17-946-225-9977|pinto beans alongside of the furiously ironic asymptotes are quickly even platelets: express
|
||||
12106|Customer#000012106|479414.2133|5342.11|UNITED STATES|wyJXywcExUxt|34-905-346-4472|blithely blithely final attainments? carefully special pinto beans around the quickly even asymptote
|
||||
8530|Customer#000008530|457855.9467|9734.95|MOROCCO|leatyNRWCnfTMnTNuDGHsWJjRuAX|25-736-932-5850| the carefully pending packages. carefully
|
||||
13984|Customer#000013984|446316.5104|3482.28|IRAN|B13vxRBojwvP3|20-981-264-2952|egular, ironic accounts integrate sly
|
||||
1966|Customer#000001966|444059.0382|1937.72|ALGERIA|IbwZr7j QVifqf9WizOIWx,UXV9CqxUyrwj|10-973-269-8886|odolites across the unusual accounts hang carefully furiously bold excuses. regular pi
|
||||
11026|Customer#000011026|417913.4142|7738.76|ALGERIA|4C iGzChcqnhGBdeeu|10-184-163-4632|eposits cajole according to the furiously bold instructions. regular, regular dependencies wake carefully eve
|
||||
8501|Customer#000008501|412797.5100|6906.70|ARGENTINA|UTUQLX cQrF1UUJPsz|11-317-552-5840| packages. pending Tiresias after the regularly express forges haggle fina
|
||||
1565|Customer#000001565|412506.0062|1820.03|BRAZIL|n4acVpG0Deyj5aIFAfSNg Iu9cUagwN3OsRbKC 4|12-402-178-2007|deposits; unusual, bold deposits around the f
|
||||
14398|Customer#000014398|408575.3600|-602.24|UNITED STATES|l49oKjbjQHz6YZwjo5wPihM lyYO6G|34-814-111-5424|es haggle fluffily blithely fluffy requests; slyly express req
|
||||
1465|Customer#000001465|405055.3457|9365.93|INDIA|zn9Q7pT6KlQp3T5mUO533aq,|18-807-487-1074|ress ideas cajole. slyly unusual theodolites cajole thin foxes. account
|
||||
12595|Customer#000012595|401402.2391|-6.92|INDIA|gEMQ3WO90vSdAgxLFrt9FRS|18-186-132-3352| slyly dogged excuses. blithely blithe packages cajole
|
||||
961|Customer#000000961|401198.1737|6963.68|JAPAN|W0SZ2oflx9aWTggtwSk3OEIXsubXTbGbD|22-989-463-6089|use furiously across the final deposits. quickly
|
||||
14299|Customer#000014299|400968.3751|6595.97|RUSSIA|UFlOs8tQ,IfZPJm57|32-156-618-1224|slyly. ironic, bold deposits sleep blithely ironic, pending attainm
|
||||
623|Customer#000000623|399883.4257|7887.60|INDONESIA|k3IlPSC4FKB13 hc6omhVs1ibvqeWEV|19-113-202-7085|se around the ideas. accounts cajole blithely slyly ironic requests. b
|
||||
9151|Customer#000009151|396562.0295|5691.95|IRAQ|UKiN9OQupR,m5NtvSntbI8JBeo|21-834-147-4906|the deposits. pending, ironic foxes haggle along the regular, bold req
|
||||
14819|Customer#000014819|396271.1036|7308.39|FRANCE|wS8yiQtE63FfoO6RKUzuVf6iBTmXBq16u|16-769-398-7926|ending asymptotes use fluffily quickly bold instructions. slyly bold dependencies sleep carefully pending a
|
||||
13478|Customer#000013478|395513.1358|-778.11|KENYA|S5izwjM1 hCoUccO2JMepYwNyBSqI,ay|24-983-202-8240| requests boost quickly according to the express sheaves. blithely unusual packages sleep
|
||||
|
2542
external/duckdb/extension/tpch/dbgen/answers/sf0.1/q11.csv
vendored
Normal file
2542
external/duckdb/extension/tpch/dbgen/answers/sf0.1/q11.csv
vendored
Normal file
File diff suppressed because it is too large
Load Diff
3
external/duckdb/extension/tpch/dbgen/answers/sf0.1/q12.csv
vendored
Normal file
3
external/duckdb/extension/tpch/dbgen/answers/sf0.1/q12.csv
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
l_shipmode|high_line_count|low_line_count
|
||||
MAIL|647|945
|
||||
SHIP|620|943
|
||||
|
38
external/duckdb/extension/tpch/dbgen/answers/sf0.1/q13.csv
vendored
Normal file
38
external/duckdb/extension/tpch/dbgen/answers/sf0.1/q13.csv
vendored
Normal file
@@ -0,0 +1,38 @@
|
||||
c_count|custdist
|
||||
0|5000
|
||||
9|659
|
||||
10|658
|
||||
11|643
|
||||
8|555
|
||||
12|542
|
||||
13|508
|
||||
7|494
|
||||
19|471
|
||||
20|464
|
||||
14|451
|
||||
17|449
|
||||
18|448
|
||||
15|446
|
||||
16|425
|
||||
21|406
|
||||
22|351
|
||||
6|334
|
||||
23|331
|
||||
24|278
|
||||
5|197
|
||||
25|184
|
||||
26|175
|
||||
27|136
|
||||
4|90
|
||||
28|86
|
||||
29|63
|
||||
3|45
|
||||
30|36
|
||||
31|26
|
||||
32|13
|
||||
2|12
|
||||
33|11
|
||||
34|5
|
||||
35|4
|
||||
36|2
|
||||
1|2
|
||||
|
2
external/duckdb/extension/tpch/dbgen/answers/sf0.1/q14.csv
vendored
Normal file
2
external/duckdb/extension/tpch/dbgen/answers/sf0.1/q14.csv
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
promo_revenue
|
||||
16.283855689005982
|
||||
|
2
external/duckdb/extension/tpch/dbgen/answers/sf0.1/q15.csv
vendored
Normal file
2
external/duckdb/extension/tpch/dbgen/answers/sf0.1/q15.csv
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
s_suppkey|s_name|s_address|s_phone|total_revenue
|
||||
677|Supplier#000000677|TEJ LMkTnY5hp8aQckzyb|23-290-639-3315|1614410.2928
|
||||
|
2763
external/duckdb/extension/tpch/dbgen/answers/sf0.1/q16.csv
vendored
Normal file
2763
external/duckdb/extension/tpch/dbgen/answers/sf0.1/q16.csv
vendored
Normal file
File diff suppressed because it is too large
Load Diff
2
external/duckdb/extension/tpch/dbgen/answers/sf0.1/q17.csv
vendored
Normal file
2
external/duckdb/extension/tpch/dbgen/answers/sf0.1/q17.csv
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
avg_yearly
|
||||
23512.752857142856
|
||||
|
6
external/duckdb/extension/tpch/dbgen/answers/sf0.1/q18.csv
vendored
Normal file
6
external/duckdb/extension/tpch/dbgen/answers/sf0.1/q18.csv
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
c_name|c_custkey|o_orderkey|o_orderdate|o_totalprice|sum
|
||||
Customer#000001639|1639|502886|1994-04-12|456423.88|312
|
||||
Customer#000006655|6655|29158|1995-10-21|452805.02|305
|
||||
Customer#000014110|14110|565574|1995-09-24|425099.85|301
|
||||
Customer#000001775|1775|6882|1997-04-09|408368.10|303
|
||||
Customer#000011459|11459|551136|1993-05-19|386812.74|308
|
||||
|
2
external/duckdb/extension/tpch/dbgen/answers/sf0.1/q19.csv
vendored
Normal file
2
external/duckdb/extension/tpch/dbgen/answers/sf0.1/q19.csv
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
revenue
|
||||
168597.2860
|
||||
|
10
external/duckdb/extension/tpch/dbgen/answers/sf0.1/q20.csv
vendored
Normal file
10
external/duckdb/extension/tpch/dbgen/answers/sf0.1/q20.csv
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
s_name|s_address
|
||||
Supplier#000000157|1EmkCApL5iF
|
||||
Supplier#000000197|3oYqODDUGH3XsHXmPuzYHW5NLU3,ONZl
|
||||
Supplier#000000287|UQR8bUA4V2HxVbw9K
|
||||
Supplier#000000378|mLPJtpu4wOc cSFzBR
|
||||
Supplier#000000530|0BvoewCPg2scOEfuL93FRKqSxHmdhw1
|
||||
Supplier#000000555|8Lp0QWPLFXrJrX1sTWkAEdzUsh5ke
|
||||
Supplier#000000557|IH,v63JRgXMkVhJOJ Gxur0W
|
||||
Supplier#000000729|CAOGYCBtTVT7aB1p6qHbxF6VVhXaHLgTpI
|
||||
Supplier#000000935|JHRSOterYgt4MTNo7cupTzA,6MoNw 4
|
||||
|
48
external/duckdb/extension/tpch/dbgen/answers/sf0.1/q21.csv
vendored
Normal file
48
external/duckdb/extension/tpch/dbgen/answers/sf0.1/q21.csv
vendored
Normal file
@@ -0,0 +1,48 @@
|
||||
s_name|numwait
|
||||
Supplier#000000445|16
|
||||
Supplier#000000825|16
|
||||
Supplier#000000709|15
|
||||
Supplier#000000762|15
|
||||
Supplier#000000357|14
|
||||
Supplier#000000399|14
|
||||
Supplier#000000496|14
|
||||
Supplier#000000977|13
|
||||
Supplier#000000144|12
|
||||
Supplier#000000188|12
|
||||
Supplier#000000415|12
|
||||
Supplier#000000472|12
|
||||
Supplier#000000633|12
|
||||
Supplier#000000708|12
|
||||
Supplier#000000889|12
|
||||
Supplier#000000380|11
|
||||
Supplier#000000602|11
|
||||
Supplier#000000659|11
|
||||
Supplier#000000821|11
|
||||
Supplier#000000929|11
|
||||
Supplier#000000262|10
|
||||
Supplier#000000460|10
|
||||
Supplier#000000486|10
|
||||
Supplier#000000669|10
|
||||
Supplier#000000718|10
|
||||
Supplier#000000778|10
|
||||
Supplier#000000167|9
|
||||
Supplier#000000578|9
|
||||
Supplier#000000673|9
|
||||
Supplier#000000687|9
|
||||
Supplier#000000074|8
|
||||
Supplier#000000565|8
|
||||
Supplier#000000648|8
|
||||
Supplier#000000918|8
|
||||
Supplier#000000427|7
|
||||
Supplier#000000503|7
|
||||
Supplier#000000610|7
|
||||
Supplier#000000670|7
|
||||
Supplier#000000811|7
|
||||
Supplier#000000114|6
|
||||
Supplier#000000379|6
|
||||
Supplier#000000436|6
|
||||
Supplier#000000500|6
|
||||
Supplier#000000660|6
|
||||
Supplier#000000788|6
|
||||
Supplier#000000846|6
|
||||
Supplier#000000920|4
|
||||
|
8
external/duckdb/extension/tpch/dbgen/answers/sf0.1/q22.csv
vendored
Normal file
8
external/duckdb/extension/tpch/dbgen/answers/sf0.1/q22.csv
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
cntrycode|numcust|totacctbal
|
||||
13|94|714035.05
|
||||
17|96|722560.15
|
||||
18|99|738012.52
|
||||
23|93|708285.25
|
||||
29|85|632693.46
|
||||
30|87|646748.02
|
||||
31|87|647372.50
|
||||
|
5
external/duckdb/extension/tpch/dbgen/answers/sf1/q01.csv
vendored
Normal file
5
external/duckdb/extension/tpch/dbgen/answers/sf1/q01.csv
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
l_returnflag|l_linestatus|sum_qty|sum_base_price|sum_disc_price|sum_charge|avg_qty|avg_price|avg_disc|count_order
|
||||
A|F|37734107|56586554400.73|53758257134.8700|55909065222.827692|25.522005853257337|38273.129734621674|0.049985295838397614|1478493
|
||||
N|F|991417|1487504710.38|1413082168.0541|1469649223.194375|25.516471920522985|38284.4677608483|0.0500934266742163|38854
|
||||
N|O|74476040|111701729697.74|106118230307.6056|110367043872.497010|25.50222676958499|38249.11798890827|0.04999658605370408|2920374
|
||||
R|F|37719753|56568041380.90|53741292684.6040|55889619119.831932|25.50579361269077|38250.85462609966|0.05000940583012706|1478870
|
||||
|
101
external/duckdb/extension/tpch/dbgen/answers/sf1/q02.csv
vendored
Normal file
101
external/duckdb/extension/tpch/dbgen/answers/sf1/q02.csv
vendored
Normal file
@@ -0,0 +1,101 @@
|
||||
s_acctbal|s_name|n_name|p_partkey|p_mfgr|s_address|s_phone|s_comment
|
||||
9938.53|Supplier#000005359|UNITED KINGDOM|185358|Manufacturer#4|bgxj2K0w1kJvxYl5mhCfou,W|33-429-790-6131|l, ironic instructions cajole
|
||||
9937.84|Supplier#000005969|ROMANIA|108438|Manufacturer#1|rdnmd9c8EG1EIAYY3LPVa4yUNx6OwyVaQ|29-520-692-3537|es. furiously silent deposits among the deposits haggle furiously a
|
||||
9936.22|Supplier#000005250|UNITED KINGDOM|249|Manufacturer#4|qX AB0vP8mJEWeBuY9jri|33-320-228-2957|ar, regular requests nag blithely special accounts. final deposits impress carefully. ironic,
|
||||
9923.77|Supplier#000002324|GERMANY|29821|Manufacturer#4|uXcnR7tv87dG|17-779-299-1839|s sleep according to the quick requests. carefully
|
||||
9871.22|Supplier#000006373|GERMANY|43868|Manufacturer#5|iSLO35z7Ae|17-813-485-8637|against the slyly daring requests. unusual accounts wake atop the blithely spe
|
||||
9870.78|Supplier#000001286|GERMANY|81285|Manufacturer#2|3gq0mZLHI5OTM6 tBYmLTHZaulCYnlECzQ7nj|17-516-924-4574|into beans haggle at the quickly final asymptotes. unusu
|
||||
9870.78|Supplier#000001286|GERMANY|181285|Manufacturer#4|3gq0mZLHI5OTM6 tBYmLTHZaulCYnlECzQ7nj|17-516-924-4574|into beans haggle at the quickly final asymptotes. unusu
|
||||
9852.52|Supplier#000008973|RUSSIA|18972|Manufacturer#2|zVfUT3Np22kUC05tYWHBotaR|32-188-594-7038|ly daring excuses unwind carefully above the fu
|
||||
9847.83|Supplier#000008097|RUSSIA|130557|Manufacturer#2|veMRTQBmUResNvfD3|32-375-640-3593| slyly ironic, special requests. final instructions above the qu
|
||||
9847.57|Supplier#000006345|FRANCE|86344|Manufacturer#1|68yX tGXAkVRSxUGNSjJdptw 8O878xaFnaoQK|16-886-766-7945|odolites. blithely special requests above the regular foxes sleep unusual sauternes. care
|
||||
9847.57|Supplier#000006345|FRANCE|173827|Manufacturer#2|68yX tGXAkVRSxUGNSjJdptw 8O878xaFnaoQK|16-886-766-7945|odolites. blithely special requests above the regular foxes sleep unusual sauternes. care
|
||||
9836.93|Supplier#000007342|RUSSIA|4841|Manufacturer#4|icFgTpZ0TuAm188dv|32-399-414-5385| packages are blithely about the quickly
|
||||
9817.10|Supplier#000002352|RUSSIA|124815|Manufacturer#2|XfLCj71HKHnPqgvs7KNgPKcOWoWxo2w|32-551-831-1437|al packages doze always according to the quickly f
|
||||
9817.10|Supplier#000002352|RUSSIA|152351|Manufacturer#3|XfLCj71HKHnPqgvs7KNgPKcOWoWxo2w|32-551-831-1437|al packages doze always according to the quickly f
|
||||
9739.86|Supplier#000003384|FRANCE|138357|Manufacturer#2|D01XwXbcILNwmrGS6ZPrVhZxO40i|16-494-913-5925|es. carefully regular ideas cajole. quickly ironic requests haggle. pending sentiment
|
||||
9721.95|Supplier#000008757|UNITED KINGDOM|156241|Manufacturer#3|ryKUkEeWN7Z|33-821-407-2995| the instructions breach slyly
|
||||
9681.33|Supplier#000008406|RUSSIA|78405|Manufacturer#1|1A6x3PLy6F|32-139-873-8571|ons sleep express deposits. epitap
|
||||
9643.55|Supplier#000005148|ROMANIA|107617|Manufacturer#1|H7WOI6lzFuSsWzTSBrhzTYV|29-252-617-4850|carefully platelets. packages sleep special ideas. quick
|
||||
9624.82|Supplier#000001816|FRANCE|34306|Manufacturer#3|NTwQPSZwfhc4uu1EMvEDopBnEv2j P|16-392-237-6726| the express, regular accounts. regular decoys boost alongside of
|
||||
9624.78|Supplier#000009658|ROMANIA|189657|Manufacturer#1|DmRxpLmL88XCBiONB3tq3e0u|29-748-876-2014|inst the blithely brave frays. brav
|
||||
9612.94|Supplier#000003228|ROMANIA|120715|Manufacturer#2|hnNBdhdXO4yT18 QNABTrL8fuv0A4p|29-325-784-8187|furiously foxes. express packages nag blithely express, pending ideas. fluffily ironi
|
||||
9612.94|Supplier#000003228|ROMANIA|198189|Manufacturer#4|hnNBdhdXO4yT18 QNABTrL8fuv0A4p|29-325-784-8187|furiously foxes. express packages nag blithely express, pending ideas. fluffily ironi
|
||||
9571.83|Supplier#000004305|ROMANIA|179270|Manufacturer#2|Bdj1T5EostLveb9ocRbz|29-973-481-1831|fully: fluffily special deposits use fur
|
||||
9558.10|Supplier#000003532|UNITED KINGDOM|88515|Manufacturer#4|ncMxIJcDYZd5B7FlKxxLmnlzPeZB,FKBujB|33-152-301-2164|against the final pinto beans. carefully bold asymptotes use
|
||||
9492.79|Supplier#000005975|GERMANY|25974|Manufacturer#5|9UEiIp7uSYtTF5|17-992-579-4839|fluffily ironic instructions haggle against the even, special accounts. quickly final
|
||||
9461.05|Supplier#000002536|UNITED KINGDOM|20033|Manufacturer#1|TEEkPusQ6rU18YvixE7IQtBDOyRBdGoOWl2r|33-556-973-5522|inal ideas cajole furiously. blithely special Tiresias against the b
|
||||
9453.01|Supplier#000000802|ROMANIA|175767|Manufacturer#1|1Uj23QWxQjj7EyeqHWqGWTbN|29-342-882-6463|s according to the even deposits integrate express packages. express
|
||||
9408.65|Supplier#000007772|UNITED KINGDOM|117771|Manufacturer#4|rIoV2rj0KNy,IT|33-152-491-1126|s nag quickly regular packages. carefully express pinto beans about th
|
||||
9359.61|Supplier#000004856|ROMANIA|62349|Manufacturer#5|k2CKOmXhPruJZ|29-334-870-9731|es. final asymptotes wake carefully
|
||||
9357.45|Supplier#000006188|UNITED KINGDOM|138648|Manufacturer#1|LS,Z0 zbSvC7GWjF|33-583-607-1633| somas cajole around the even, ironic deposits. pending theodolites according to the b
|
||||
9352.04|Supplier#000003439|GERMANY|170921|Manufacturer#4|B2bnKDIpkJp2uHKp|17-128-996-4650|nusual frets cajole carefully beneath
|
||||
9312.97|Supplier#000007807|RUSSIA|90279|Manufacturer#5|Dk2ebpGR3jlpYbpMg9Djr|32-673-872-5854|. silent asymptotes boost. quickly ironic accounts for the
|
||||
9312.97|Supplier#000007807|RUSSIA|100276|Manufacturer#5|Dk2ebpGR3jlpYbpMg9Djr|32-673-872-5854|. silent asymptotes boost. quickly ironic accounts for the
|
||||
9280.27|Supplier#000007194|ROMANIA|47193|Manufacturer#3|tJ96aHp8 l3uiq38LiDHswtk9bHMg|29-318-454-2133|tes. carefully regular accounts are carefully since the waters. accounts cajole? carefully bold
|
||||
9274.80|Supplier#000008854|RUSSIA|76346|Manufacturer#3|,uJfCd6eTiYE1ZEhDM vsc8ANQPWaPlQ|32-524-148-5221|onic, final ideas. blithely regular platelets boost final, ironic pinto beans. fluffil
|
||||
9249.35|Supplier#000003973|FRANCE|26466|Manufacturer#1|OZSkIozfU4FYizk4e091MZHozL1qcHe257J89bW|16-722-866-1658|beans. slyly ironic dependencies cajole furiously furiously regular ideas. boldly even requests hagg
|
||||
9249.35|Supplier#000003973|FRANCE|33972|Manufacturer#1|OZSkIozfU4FYizk4e091MZHozL1qcHe257J89bW|16-722-866-1658|beans. slyly ironic dependencies cajole furiously furiously regular ideas. boldly even requests hagg
|
||||
9208.70|Supplier#000007769|ROMANIA|40256|Manufacturer#5|AzIENtMrVCSbrjyUu8|29-964-424-9649| ironic requests among the deposits affix busily ironic accounts. slow pinto beans are blithely fi
|
||||
9201.47|Supplier#000009690|UNITED KINGDOM|67183|Manufacturer#5|pprpD77FEIWsNMmGT9T|33-121-267-9529|uriously bold packages integrate blithely ironic theodolites. carefully unusual escap
|
||||
9192.10|Supplier#000000115|UNITED KINGDOM|85098|Manufacturer#3|EhrYy0MT5M1vfZ0V4skpifdp6pgFz5|33-597-248-1220|onic instructions. ironic, regular deposits haggle f
|
||||
9189.98|Supplier#000001226|GERMANY|21225|Manufacturer#4|BzfoA9wft1Mx3iBIs|17-725-903-1381|luffily across the slyly special instructions. bold, ironic deposi
|
||||
9128.97|Supplier#000004311|RUSSIA|146768|Manufacturer#5|jSiHD4NTd8i9zVRX9uz9a,|32-155-440-7120|theodolites. furiously even pinto beans abou
|
||||
9104.83|Supplier#000008520|GERMANY|150974|Manufacturer#4|aA95nLn,m9shRrPXZw9Y1X|17-728-804-1793|nstructions. carefully regular requests use fluffily against the quickly final deposits. blithel
|
||||
9101.00|Supplier#000005791|ROMANIA|128254|Manufacturer#5|txPYsp50HJkbbaAJ0bYieqHmZtirDUVOcmC4lk|29-549-251-5384| regular foxes use carefully final packages. fluffily stealthy deposits toward the sp
|
||||
9094.57|Supplier#000004582|RUSSIA|39575|Manufacturer#1|5p,3Gp8kX 1EDarE0JR5juHH Sq9jlxgKenM|32-587-577-1351|ages affix quickly after the carefully regular accounts. regular, regular foxes kindle.
|
||||
8996.87|Supplier#000004702|FRANCE|102191|Manufacturer#5|T35OahYXQGC|16-811-269-8946|ily regular grouches wake quickly ironic de
|
||||
8996.14|Supplier#000009814|ROMANIA|139813|Manufacturer#2|RL,cVCKSXFc6Win6EmtF415A22as8nG2fqEa|29-995-571-8781| regular requests haggle carefully above the carefully regular deposits. ironic pearls in p
|
||||
8968.42|Supplier#000010000|ROMANIA|119999|Manufacturer#5|R7kfmyzoIfXlrbnqNwUUW3phJctocp0J|29-578-432-2146|ular, quick foxes sleep quickly according to the blithely fluffy theodolit
|
||||
8936.82|Supplier#000007043|UNITED KINGDOM|109512|Manufacturer#1|m5QHON1iD1OPhmU2R3z97u 6mCIvjnAc3I0,9s|33-784-177-8208| final dependencies. deposits a
|
||||
8929.42|Supplier#000008770|FRANCE|173735|Manufacturer#4|aTOkYV7y3 kqbRrkOGJLaI|16-242-746-9248|ns haggle quickly silent theodolites. bold, final requests along t
|
||||
8920.59|Supplier#000003967|ROMANIA|26460|Manufacturer#1|NjCq3NUY82S|29-194-731-3944|ts. daringly regular theodolites affix silently. reg
|
||||
8920.59|Supplier#000003967|ROMANIA|173966|Manufacturer#2|NjCq3NUY82S|29-194-731-3944|ts. daringly regular theodolites affix silently. reg
|
||||
8913.96|Supplier#000004603|UNITED KINGDOM|137063|Manufacturer#2|d6sFwf6 TD1xyfuFbdM2h8LX7ZWc3zHupV|33-789-255-7342|lithely whithout the furiously ironic sheaves. ironic reques
|
||||
8877.82|Supplier#000007967|FRANCE|167966|Manufacturer#5|rXBIZqq9eWEuU90B vlCab6|16-442-147-9345|ckages-- evenly even requests boost blit
|
||||
8862.24|Supplier#000003323|ROMANIA|73322|Manufacturer#3|5RrF2PzoRlwpAGXjyf|29-736-951-3710|regular ideas haggle blithely packages. regula
|
||||
8841.59|Supplier#000005750|ROMANIA|100729|Manufacturer#5|n uXFrKx,KVYIQjmRuV,yejWmLMdRJnk|29-344-502-5481|leep finally furiously express packages. slyly unusual packages cajole unusual,
|
||||
8781.71|Supplier#000003121|ROMANIA|13120|Manufacturer#5|wdA7CLuYXS22oQEmP0V,x0PHrXiPdl5Rpwv,ub|29-707-291-5144|ies. final foxes are furiou
|
||||
8754.24|Supplier#000009407|UNITED KINGDOM|179406|Manufacturer#4|pj9oPHQ4OLWp|33-903-970-9604|ng asymptotes hang across the blithely special deposits.
|
||||
8691.06|Supplier#000004429|UNITED KINGDOM|126892|Manufacturer#2|H0paE V6JCrlZpYrzI0LgIP|33-964-337-5038| sly requests might sleep. final dolphins sleep. furiousl
|
||||
8655.99|Supplier#000006330|RUSSIA|193810|Manufacturer#2|7CsFQnd ,tzgMYvVoMim5l4DrJcX8SaQMTcy|32-561-198-3705|ideas wake across the regular, unusual instructions; furiously final deposits wake near the s
|
||||
8638.36|Supplier#000002920|RUSSIA|75398|Manufacturer#1|iMYQSQzsLXg|32-122-621-7549|ickly dolphins. furiously careful asymptotes sublate
|
||||
8638.36|Supplier#000002920|RUSSIA|170402|Manufacturer#3|iMYQSQzsLXg|32-122-621-7549|ickly dolphins. furiously careful asymptotes sublate
|
||||
8607.69|Supplier#000006003|UNITED KINGDOM|76002|Manufacturer#2|njRvqoOmIxNDe,da,SsnweINv1VY2YatifmJq|33-416-807-5206|braids sleep carefully along the iron
|
||||
8569.52|Supplier#000005936|RUSSIA|5935|Manufacturer#5|I3Qd1VwvDm5hYGzg1hBHzKy,P3YQXq7|32-644-251-7916|s about the carefully final accounts use always even requests. furiously express dependenc
|
||||
8564.12|Supplier#000000033|GERMANY|110032|Manufacturer#1|LLMgB3vXW,0g,8nuv3qU3QZaEBZvU2qRLX9|17-138-897-9374|l packages cajole unusual, final packages. slyly express requests
|
||||
8553.82|Supplier#000003979|ROMANIA|143978|Manufacturer#4|qLE5JpqDoe3XHsBI6etWpd4zRsjsBNb9Tidi6|29-124-646-4897|counts are quickly carefully ironic instructions. platelets wake f
|
||||
8517.23|Supplier#000009529|RUSSIA|37025|Manufacturer#5|NWW9SDThqi9RIeOA|32-565-297-8775|ial requests use stealthily along the carefully u
|
||||
8517.23|Supplier#000009529|RUSSIA|59528|Manufacturer#2|NWW9SDThqi9RIeOA|32-565-297-8775|ial requests use stealthily along the carefully u
|
||||
8503.70|Supplier#000006830|RUSSIA|44325|Manufacturer#4|qoW4lp2961uQiKOK6rW8|32-147-878-5069|atelets sleep furiously pending asymptotes. even requests for the blithely unusual packages
|
||||
8457.09|Supplier#000009456|UNITED KINGDOM|19455|Manufacturer#1|U8pJ1 SKbZPhH7,bLWXX3pG|33-858-440-4349|ounts sleep about the bold, even ideas. slyly unusual accounts after the asymptotes
|
||||
8441.40|Supplier#000003817|FRANCE|141302|Manufacturer#2|K6XLsYufTS|16-339-356-5115|sly fluffily regular pinto beans. slyly even deposits snooze fluffily along the fluff
|
||||
8432.89|Supplier#000003990|RUSSIA|191470|Manufacturer#1|wMJppCZ9aPMuq2nr88TVfztvE gj95OG wdNUE|32-839-509-9301|. express pinto beans use slyly. regular platelets sleep quickly busy deposits. final
|
||||
8431.40|Supplier#000002675|ROMANIA|5174|Manufacturer#1|khl8ydxR9VekbcMLgJKPtpNtwAkYtJTv|29-474-643-1443|regular, express platelets are. carefully ironic forges since the requests affix
|
||||
8407.04|Supplier#000005406|RUSSIA|162889|Manufacturer#4|ITrK2mV94SooV6 Igo|32-626-152-4621| even theodolites. quickly bold deposits after the pen
|
||||
8386.08|Supplier#000008518|FRANCE|36014|Manufacturer#3|ZHAsABq5MRP e5kc0DRD8za3xGdf763ChHmoOA45|16-618-780-7481|g alongside of the slyly unusual platelets! blithely regular asymptotes cajole. quickly regular
|
||||
8376.52|Supplier#000005306|UNITED KINGDOM|190267|Manufacturer#5|SyS2SsaA8i CqnbzUdfNH07bVtt9uW,Cp6FLCkOR|33-632-514-7931|pendencies affix furiously against the special, blithe packages. qui
|
||||
8348.74|Supplier#000008851|FRANCE|66344|Manufacturer#4|E4uITlvmPHKvZ|16-796-240-2472|s packages haggle above the express pinto beans. stealthy, ironic theodolites sleep quickly
|
||||
8338.58|Supplier#000007269|FRANCE|17268|Manufacturer#4|2vJh8wqp6CJp,W0Y|16-267-277-4365|lithely through the accounts. express, ironic asymptotes wou
|
||||
8328.46|Supplier#000001744|ROMANIA|69237|Manufacturer#5|DfCXL6UWAY1lgjQYB0AjE8T2sx0BzS|29-330-728-5873| regular, special dolphins haggle carefully special asy
|
||||
8307.93|Supplier#000003142|GERMANY|18139|Manufacturer#1|OAPFw6SNodrC kFi|17-595-447-6026|usly express packages sleep finally regular ideas. carefu
|
||||
8231.61|Supplier#000009558|RUSSIA|192000|Manufacturer#2|FONKME0t7ZJhnjn9VL5|32-762-137-5858|g to the carefully even brai
|
||||
8152.61|Supplier#000002731|ROMANIA|15227|Manufacturer#4|sDFx3iox2Zzx|29-805-463-2030|ly above the packages. final accounts sleep furiously. fluffily iro
|
||||
8109.09|Supplier#000009186|FRANCE|99185|Manufacturer#1|wKLCzA5bMuGRBm35tvQAGpen23L|16-668-570-1402|ts cajole daringly. pinto beans
|
||||
8102.62|Supplier#000003347|UNITED KINGDOM|18344|Manufacturer#5|Froy39Y8ZUJ|33-454-274-8532|y daring requests. unusual accounts wake atop the blithely special packages. sly
|
||||
8046.07|Supplier#000008780|FRANCE|191222|Manufacturer#3|rOssxn,6gRDzHr0gu,hEK|16-473-215-6395|he regular foxes cajole ruthlessly among the sometimes final grouches. blithel
|
||||
8042.09|Supplier#000003245|RUSSIA|135705|Manufacturer#4|oJSiGLXRCDAPcfWot7LkwSQRCh63XNS2|32-836-132-8872| use slyly. furiously regular deposits sleep according to the requests.
|
||||
8042.09|Supplier#000003245|RUSSIA|150729|Manufacturer#1|oJSiGLXRCDAPcfWot7LkwSQRCh63XNS2|32-836-132-8872| use slyly. furiously regular deposits sleep according to the requests.
|
||||
7992.40|Supplier#000006108|FRANCE|118574|Manufacturer#1|TyptNE7nv6BLpLl6WFX|16-974-998-8937|theodolites among the furiously unusual accounts must x
|
||||
7980.65|Supplier#000001288|FRANCE|13784|Manufacturer#4|tm0TjL5b oE|16-646-464-8247|gular pains? fluffily bold warhorses affix? blithe instruction
|
||||
7950.37|Supplier#000008101|GERMANY|33094|Manufacturer#5|HG2wfVixwCIhK7dlrigGR3an2LuSifDJH|17-627-663-8014|ly alongside of the furiously unusual requests! bold, express foxe
|
||||
7937.93|Supplier#000009012|ROMANIA|83995|Manufacturer#2|J6I7sJj0mGYIWFv9KxD3fK O7tvNP|29-250-925-9690| use slyly against the slyly bold theod
|
||||
7914.45|Supplier#000001013|RUSSIA|125988|Manufacturer#2|AI9ODzBzWgnny28PHBei5M2lUFdD9|32-194-698-3365| the blithely silent accounts. q
|
||||
7912.91|Supplier#000004211|GERMANY|159180|Manufacturer#5|Zva95Dwj EY0w,XjgsL7O0Zb2 l3almck|17-266-947-7315| slyly silent requests; fluffily fi
|
||||
7912.91|Supplier#000004211|GERMANY|184210|Manufacturer#4|Zva95Dwj EY0w,XjgsL7O0Zb2 l3almck|17-266-947-7315| slyly silent requests; fluffily fi
|
||||
7894.56|Supplier#000007981|GERMANY|85472|Manufacturer#4|e8hRUxe9cqQM3b|17-963-404-3760|ly final courts. unusual, quiet dolphi
|
||||
7887.08|Supplier#000009792|GERMANY|164759|Manufacturer#3|3YSi76M2 I8XGikO5YgSM81r5Z6A7VkZcys|17-988-938-4296| the regular ideas. furiously bold deposits boost above the bli
|
||||
7871.50|Supplier#000007206|RUSSIA|104695|Manufacturer#1|YvrLdpD 5ExhHmRWzK41tw4|32-432-452-7731|ording to the furious theodolites cajole carefully according to the busily express asymptotes.
|
||||
7852.45|Supplier#000005864|RUSSIA|8363|Manufacturer#4|5odLpc1M83KXJ0O|32-454-883-3821|egular, regular ideas. requests are carefully. furiously final dolp
|
||||
7850.66|Supplier#000001518|UNITED KINGDOM|86501|Manufacturer#1|ddNQX3hIjgico|33-730-383-3892|ccounts. special, final deposits
|
||||
7843.52|Supplier#000006683|FRANCE|11680|Manufacturer#4|Z1,hkHIw,Z3,,Comv6kLxIiPJtoNt|16-464-517-8943|sits. blithely regular requests above the pending, regular ideas boo
|
||||
|
11
external/duckdb/extension/tpch/dbgen/answers/sf1/q03.csv
vendored
Normal file
11
external/duckdb/extension/tpch/dbgen/answers/sf1/q03.csv
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
l_orderkey|revenue|o_orderdate|o_shippriority
|
||||
2456423|406181.0111|1995-03-05|0
|
||||
3459808|405838.6989|1995-03-04|0
|
||||
492164|390324.0610|1995-02-19|0
|
||||
1188320|384537.9359|1995-03-09|0
|
||||
2435712|378673.0558|1995-02-26|0
|
||||
4878020|378376.7952|1995-03-12|0
|
||||
5521732|375153.9215|1995-03-13|0
|
||||
2628192|373133.3094|1995-02-22|0
|
||||
993600|371407.4595|1995-03-05|0
|
||||
2300070|367371.1452|1995-03-13|0
|
||||
|
6
external/duckdb/extension/tpch/dbgen/answers/sf1/q04.csv
vendored
Normal file
6
external/duckdb/extension/tpch/dbgen/answers/sf1/q04.csv
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
o_orderpriority|order_count
|
||||
1-URGENT|10594
|
||||
2-HIGH|10476
|
||||
3-MEDIUM|10410
|
||||
4-NOT SPECIFIED|10556
|
||||
5-LOW|10487
|
||||
|
6
external/duckdb/extension/tpch/dbgen/answers/sf1/q05.csv
vendored
Normal file
6
external/duckdb/extension/tpch/dbgen/answers/sf1/q05.csv
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
n_name|revenue
|
||||
INDONESIA|55502041.1697
|
||||
VIETNAM|55295086.9967
|
||||
CHINA|53724494.2566
|
||||
INDIA|52035512.0002
|
||||
JAPAN|45410175.6954
|
||||
|
2
external/duckdb/extension/tpch/dbgen/answers/sf1/q06.csv
vendored
Normal file
2
external/duckdb/extension/tpch/dbgen/answers/sf1/q06.csv
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
revenue
|
||||
123141078.2283
|
||||
|
5
external/duckdb/extension/tpch/dbgen/answers/sf1/q07.csv
vendored
Normal file
5
external/duckdb/extension/tpch/dbgen/answers/sf1/q07.csv
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
supp_nation|cust_nation|l_year|revenue
|
||||
FRANCE|GERMANY|1995|54639732.7336
|
||||
FRANCE|GERMANY|1996|54633083.3076
|
||||
GERMANY|FRANCE|1995|52531746.6697
|
||||
GERMANY|FRANCE|1996|52520549.0224
|
||||
|
3
external/duckdb/extension/tpch/dbgen/answers/sf1/q08.csv
vendored
Normal file
3
external/duckdb/extension/tpch/dbgen/answers/sf1/q08.csv
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
o_year|mkt_share
|
||||
1995|0.0344358904066548
|
||||
1996|0.04148552129353032
|
||||
|
176
external/duckdb/extension/tpch/dbgen/answers/sf1/q09.csv
vendored
Normal file
176
external/duckdb/extension/tpch/dbgen/answers/sf1/q09.csv
vendored
Normal file
@@ -0,0 +1,176 @@
|
||||
nation|o_year|sum_profit
|
||||
ALGERIA|1998|27136900.1803
|
||||
ALGERIA|1997|48611833.4962
|
||||
ALGERIA|1996|48285482.6782
|
||||
ALGERIA|1995|44402273.5999
|
||||
ALGERIA|1994|48694008.0668
|
||||
ALGERIA|1993|46044207.7838
|
||||
ALGERIA|1992|45636849.4881
|
||||
ARGENTINA|1998|28341663.7848
|
||||
ARGENTINA|1997|47143964.1176
|
||||
ARGENTINA|1996|45255278.6021
|
||||
ARGENTINA|1995|45631769.2054
|
||||
ARGENTINA|1994|48268856.3547
|
||||
ARGENTINA|1993|48605593.6162
|
||||
ARGENTINA|1992|46654240.7487
|
||||
BRAZIL|1998|26527736.3960
|
||||
BRAZIL|1997|45640660.7677
|
||||
BRAZIL|1996|45090647.1630
|
||||
BRAZIL|1995|44015888.5132
|
||||
BRAZIL|1994|44854218.8932
|
||||
BRAZIL|1993|45766603.7379
|
||||
BRAZIL|1992|45280216.8027
|
||||
CANADA|1998|26828985.3944
|
||||
CANADA|1997|44849954.3186
|
||||
CANADA|1996|46307936.1108
|
||||
CANADA|1995|47311993.0441
|
||||
CANADA|1994|46691491.9596
|
||||
CANADA|1993|46634791.1121
|
||||
CANADA|1992|45873849.6882
|
||||
CHINA|1998|27510180.1657
|
||||
CHINA|1997|46123865.4097
|
||||
CHINA|1996|49532807.0601
|
||||
CHINA|1995|46734651.4838
|
||||
CHINA|1994|46397896.6097
|
||||
CHINA|1993|49634673.9463
|
||||
CHINA|1992|46949457.6426
|
||||
EGYPT|1998|28401491.7968
|
||||
EGYPT|1997|47674857.6783
|
||||
EGYPT|1996|47745727.5450
|
||||
EGYPT|1995|45897160.6783
|
||||
EGYPT|1994|47194895.2280
|
||||
EGYPT|1993|49133627.6471
|
||||
EGYPT|1992|47000574.5027
|
||||
ETHIOPIA|1998|25135046.1377
|
||||
ETHIOPIA|1997|43010596.0838
|
||||
ETHIOPIA|1996|43636287.1922
|
||||
ETHIOPIA|1995|43575757.3343
|
||||
ETHIOPIA|1994|41597208.5283
|
||||
ETHIOPIA|1993|42622804.1616
|
||||
ETHIOPIA|1992|44385735.6813
|
||||
FRANCE|1998|26210392.2804
|
||||
FRANCE|1997|42392969.4731
|
||||
FRANCE|1996|43306317.9749
|
||||
FRANCE|1995|46377408.4328
|
||||
FRANCE|1994|43447352.9922
|
||||
FRANCE|1993|43729961.0639
|
||||
FRANCE|1992|44052308.4290
|
||||
GERMANY|1998|25991257.1071
|
||||
GERMANY|1997|43968355.8079
|
||||
GERMANY|1996|45882074.8049
|
||||
GERMANY|1995|43314338.3077
|
||||
GERMANY|1994|44616995.4369
|
||||
GERMANY|1993|45126645.9113
|
||||
GERMANY|1992|44361141.2107
|
||||
INDIA|1998|29626417.2379
|
||||
INDIA|1997|51386111.3448
|
||||
INDIA|1996|47571018.5122
|
||||
INDIA|1995|49344062.2829
|
||||
INDIA|1994|50106952.4261
|
||||
INDIA|1993|48112766.6987
|
||||
INDIA|1992|47914303.1234
|
||||
INDONESIA|1998|27734909.6763
|
||||
INDONESIA|1997|44593812.9863
|
||||
INDONESIA|1996|44746729.8078
|
||||
INDONESIA|1995|45593622.6993
|
||||
INDONESIA|1994|45988483.8772
|
||||
INDONESIA|1993|46147963.7895
|
||||
INDONESIA|1992|45185777.0688
|
||||
IRAN|1998|26661608.9301
|
||||
IRAN|1997|45019114.1696
|
||||
IRAN|1996|45891397.0992
|
||||
IRAN|1995|44414285.2348
|
||||
IRAN|1994|43696360.4795
|
||||
IRAN|1993|45362775.8094
|
||||
IRAN|1992|43052338.4143
|
||||
IRAQ|1998|31188498.1914
|
||||
IRAQ|1997|48585307.5222
|
||||
IRAQ|1996|50036593.8404
|
||||
IRAQ|1995|48774801.7275
|
||||
IRAQ|1994|48795847.2310
|
||||
IRAQ|1993|47435691.5082
|
||||
IRAQ|1992|47562355.6571
|
||||
JAPAN|1998|24694102.1720
|
||||
JAPAN|1997|42377052.3454
|
||||
JAPAN|1996|40267778.9094
|
||||
JAPAN|1995|40925317.4650
|
||||
JAPAN|1994|41159518.3058
|
||||
JAPAN|1993|39589074.2771
|
||||
JAPAN|1992|39113493.9052
|
||||
JORDAN|1998|23489867.7893
|
||||
JORDAN|1997|41615962.6619
|
||||
JORDAN|1996|41860855.4684
|
||||
JORDAN|1995|39931672.0908
|
||||
JORDAN|1994|40707555.4638
|
||||
JORDAN|1993|39060405.4658
|
||||
JORDAN|1992|41657604.2684
|
||||
KENYA|1998|25566337.4303
|
||||
KENYA|1997|43108847.9024
|
||||
KENYA|1996|43482953.5430
|
||||
KENYA|1995|42517988.9814
|
||||
KENYA|1994|43612479.4523
|
||||
KENYA|1993|42724038.7571
|
||||
KENYA|1992|43217106.2068
|
||||
MOROCCO|1998|24915496.8756
|
||||
MOROCCO|1997|42698382.8550
|
||||
MOROCCO|1996|42986113.5049
|
||||
MOROCCO|1995|42316089.1593
|
||||
MOROCCO|1994|43458604.6029
|
||||
MOROCCO|1993|42672288.0699
|
||||
MOROCCO|1992|42800781.6415
|
||||
MOZAMBIQUE|1998|28279876.0301
|
||||
MOZAMBIQUE|1997|51159216.2298
|
||||
MOZAMBIQUE|1996|48072525.0645
|
||||
MOZAMBIQUE|1995|48905200.6007
|
||||
MOZAMBIQUE|1994|46092076.2805
|
||||
MOZAMBIQUE|1993|48555926.2669
|
||||
MOZAMBIQUE|1992|47809075.1192
|
||||
PERU|1998|26713966.2678
|
||||
PERU|1997|48324008.6011
|
||||
PERU|1996|50310008.8629
|
||||
PERU|1995|49647080.9629
|
||||
PERU|1994|46420910.2773
|
||||
PERU|1993|51536906.2487
|
||||
PERU|1992|47711665.3137
|
||||
ROMANIA|1998|27271993.1010
|
||||
ROMANIA|1997|45063059.1953
|
||||
ROMANIA|1996|47492335.0323
|
||||
ROMANIA|1995|45710636.2909
|
||||
ROMANIA|1994|46088041.1066
|
||||
ROMANIA|1993|47515092.5613
|
||||
ROMANIA|1992|44111439.8044
|
||||
RUSSIA|1998|27935323.7271
|
||||
RUSSIA|1997|48222347.2924
|
||||
RUSSIA|1996|47553559.4932
|
||||
RUSSIA|1995|46755990.0976
|
||||
RUSSIA|1994|48000515.6191
|
||||
RUSSIA|1993|48569624.5082
|
||||
RUSSIA|1992|47672831.5329
|
||||
SAUDI ARABIA|1998|27113516.8424
|
||||
SAUDI ARABIA|1997|46690468.9649
|
||||
SAUDI ARABIA|1996|47775782.6670
|
||||
SAUDI ARABIA|1995|46657107.8287
|
||||
SAUDI ARABIA|1994|48181672.8100
|
||||
SAUDI ARABIA|1993|45692556.4438
|
||||
SAUDI ARABIA|1992|48924913.2717
|
||||
UNITED KINGDOM|1998|26366682.8786
|
||||
UNITED KINGDOM|1997|44518130.1851
|
||||
UNITED KINGDOM|1996|45539729.6166
|
||||
UNITED KINGDOM|1995|46845879.3390
|
||||
UNITED KINGDOM|1994|43081609.5737
|
||||
UNITED KINGDOM|1993|44770146.7555
|
||||
UNITED KINGDOM|1992|44123402.5484
|
||||
UNITED STATES|1998|27826593.6825
|
||||
UNITED STATES|1997|46638572.3648
|
||||
UNITED STATES|1996|46688280.5474
|
||||
UNITED STATES|1995|48951591.6156
|
||||
UNITED STATES|1994|45099092.0598
|
||||
UNITED STATES|1993|46181600.5278
|
||||
UNITED STATES|1992|46168214.0901
|
||||
VIETNAM|1998|27281931.0011
|
||||
VIETNAM|1997|48735914.1796
|
||||
VIETNAM|1996|47824595.9040
|
||||
VIETNAM|1995|48235135.8016
|
||||
VIETNAM|1994|47729256.3324
|
||||
VIETNAM|1993|45352676.8672
|
||||
VIETNAM|1992|47846355.6485
|
||||
|
21
external/duckdb/extension/tpch/dbgen/answers/sf1/q10.csv
vendored
Normal file
21
external/duckdb/extension/tpch/dbgen/answers/sf1/q10.csv
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
c_custkey|c_name|revenue|c_acctbal|n_name|c_address|c_phone|c_comment
|
||||
57040|Customer#000057040|734235.2455|632.87|JAPAN|nICtsILWBB|22-895-641-3466|ep. blithely regular foxes promise slyly furiously ironic depend
|
||||
143347|Customer#000143347|721002.6948|2557.47|EGYPT|,Q9Ml3w0gvX|14-742-935-3718|endencies sleep. slyly express deposits nag carefully around the even tithes. slyly regular
|
||||
60838|Customer#000060838|679127.3077|2454.77|BRAZIL|VWmQhWweqj5hFpcvhGFBeOY9hJ4m|12-913-494-9813|tes. final instructions nag quickly according to
|
||||
101998|Customer#000101998|637029.5667|3790.89|UNITED KINGDOM|0,ORojfDdyMca2E2H|33-593-865-6378|ost carefully. slyly regular packages cajole about the blithely final ideas. permanently daring deposit
|
||||
125341|Customer#000125341|633508.0860|4983.51|GERMANY|9YRcnoUPOM7Sa8xymhsDHdQg|17-582-695-5962|ly furiously brave packages. quickly regular dugouts kindle furiously carefully bold theodolites.
|
||||
25501|Customer#000025501|620269.7849|7725.04|ETHIOPIA|sr4VVVe3xCJQ2oo2QEhi19D,pXqo6kOGaSn2|15-874-808-6793|y ironic foxes hinder according to the furiously permanent dolphins. pending ideas integrate blithely from
|
||||
115831|Customer#000115831|596423.8672|5098.10|FRANCE|AlMpPnmtGrOFrDMUs5VLo EIA,Cg,Rw5TBuBoKiO|16-715-386-3788|unts nag carefully final packages. express theodolites are regular ac
|
||||
84223|Customer#000084223|594998.0239|528.65|UNITED KINGDOM|Eq51o UpQ4RBr fYTdrZApDsPV4pQyuPq|33-442-824-8191|longside of the slyly final deposits. blithely final platelets about the blithely i
|
||||
54289|Customer#000054289|585603.3918|5583.02|IRAN|x3ouCpz6,pRNVhajr0CCQG1|20-834-292-4707| cajole furiously after the quickly unusual fo
|
||||
39922|Customer#000039922|584878.1134|7321.11|GERMANY|2KtWzW,FYkhdWBfobp6SFXWYKjvU9|17-147-757-8036|ironic deposits sublate furiously. carefully regular theodolites along the b
|
||||
6226|Customer#000006226|576783.7606|2230.09|UNITED KINGDOM|TKbxS1dbkGMtaa,KOi26lbip4P0tPbWK0|33-657-701-3391|nal packages are alongside of the quickly bold deposits. carefully
|
||||
922|Customer#000000922|576767.5333|3869.25|GERMANY|rsR9lRxyTdHbDOVt8nYbwjK5vAWH9sB|17-945-916-9648|cuses cajole carefully regular idea
|
||||
147946|Customer#000147946|576455.1320|2030.13|ALGERIA|Jqdt1kHAJtuTqHQK,B7 3tJh|10-886-956-3143|ly pending platelets. ironic requests haggle alongside of the furiou
|
||||
115640|Customer#000115640|569341.1933|6436.10|ARGENTINA|6yKLIRRAirUmBjKNO6Z3|11-411-543-4901|ffily ironic deposits. blithely specia
|
||||
73606|Customer#000073606|568656.8578|1785.67|JAPAN|vx9,7ACVtoKnLcoAHGNYDF|22-437-653-6966|uests cajole according to the foxe
|
||||
110246|Customer#000110246|566842.9815|7763.35|VIETNAM|UgsLFL3rendATzcHi|31-943-426-9837|ow carefully. blithely careful packages hag
|
||||
142549|Customer#000142549|563537.2368|5085.99|INDONESIA|pJAmChWXct HNjPzgoBUOgAHduwwIR|19-955-562-2398|. slyly bold packages nag quickly against the unusual deposits. express asymptotes detect furiously pending, eve
|
||||
146149|Customer#000146149|557254.9865|1791.55|ROMANIA| STLwtlaB6|29-744-164-6487|nic, special instructions. multipliers run carefully blithely iro
|
||||
52528|Customer#000052528|556397.3509|551.79|ARGENTINA|elsyt8c9Z,7ch|11-208-192-3205|olphins. blithely silent platelets affix carefully even platelets. ca
|
||||
23431|Customer#000023431|554269.5360|3381.86|ROMANIA|kKI5,CJAJQjQRQtOdCiFQ|29-915-458-2654|the final sentiments. carefully ironic packages
|
||||
|
1049
external/duckdb/extension/tpch/dbgen/answers/sf1/q11.csv
vendored
Normal file
1049
external/duckdb/extension/tpch/dbgen/answers/sf1/q11.csv
vendored
Normal file
File diff suppressed because it is too large
Load Diff
3
external/duckdb/extension/tpch/dbgen/answers/sf1/q12.csv
vendored
Normal file
3
external/duckdb/extension/tpch/dbgen/answers/sf1/q12.csv
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
l_shipmode|high_line_count|low_line_count
|
||||
MAIL|6202|9324
|
||||
SHIP|6200|9262
|
||||
|
43
external/duckdb/extension/tpch/dbgen/answers/sf1/q13.csv
vendored
Normal file
43
external/duckdb/extension/tpch/dbgen/answers/sf1/q13.csv
vendored
Normal file
@@ -0,0 +1,43 @@
|
||||
c_count|custdist
|
||||
0|50004
|
||||
10|6668
|
||||
9|6563
|
||||
11|6004
|
||||
8|5890
|
||||
12|5600
|
||||
13|5029
|
||||
19|4805
|
||||
7|4680
|
||||
18|4531
|
||||
20|4507
|
||||
14|4473
|
||||
15|4463
|
||||
17|4445
|
||||
16|4410
|
||||
21|4168
|
||||
22|3742
|
||||
6|3273
|
||||
23|3189
|
||||
24|2700
|
||||
25|2090
|
||||
5|1957
|
||||
26|1653
|
||||
27|1177
|
||||
4|1010
|
||||
28|901
|
||||
29|564
|
||||
3|408
|
||||
30|378
|
||||
31|242
|
||||
32|133
|
||||
2|128
|
||||
33|72
|
||||
34|52
|
||||
35|32
|
||||
36|20
|
||||
1|20
|
||||
37|8
|
||||
38|4
|
||||
41|3
|
||||
40|3
|
||||
39|1
|
||||
|
2
external/duckdb/extension/tpch/dbgen/answers/sf1/q14.csv
vendored
Normal file
2
external/duckdb/extension/tpch/dbgen/answers/sf1/q14.csv
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
promo_revenue
|
||||
16.380778626395543
|
||||
|
2
external/duckdb/extension/tpch/dbgen/answers/sf1/q15.csv
vendored
Normal file
2
external/duckdb/extension/tpch/dbgen/answers/sf1/q15.csv
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
s_suppkey|s_name|s_address|s_phone|total_revenue
|
||||
8449|Supplier#000008449|5BXWsJERA2mP5OyO4|20-469-856-8873|1772627.2087
|
||||
|
18315
external/duckdb/extension/tpch/dbgen/answers/sf1/q16.csv
vendored
Normal file
18315
external/duckdb/extension/tpch/dbgen/answers/sf1/q16.csv
vendored
Normal file
File diff suppressed because it is too large
Load Diff
2
external/duckdb/extension/tpch/dbgen/answers/sf1/q17.csv
vendored
Normal file
2
external/duckdb/extension/tpch/dbgen/answers/sf1/q17.csv
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
avg_yearly
|
||||
348406.0542857143
|
||||
|
58
external/duckdb/extension/tpch/dbgen/answers/sf1/q18.csv
vendored
Normal file
58
external/duckdb/extension/tpch/dbgen/answers/sf1/q18.csv
vendored
Normal file
@@ -0,0 +1,58 @@
|
||||
c_name|c_custkey|o_orderkey|o_orderdate|o_totalprice|sum
|
||||
Customer#000128120|128120|4722021|1994-04-07|544089.09|323
|
||||
Customer#000144617|144617|3043270|1997-02-12|530604.44|317
|
||||
Customer#000013940|13940|2232932|1997-04-13|522720.61|304
|
||||
Customer#000066790|66790|2199712|1996-09-30|515531.82|327
|
||||
Customer#000046435|46435|4745607|1997-07-03|508047.99|309
|
||||
Customer#000015272|15272|3883783|1993-07-28|500241.33|302
|
||||
Customer#000146608|146608|3342468|1994-06-12|499794.58|303
|
||||
Customer#000096103|96103|5984582|1992-03-16|494398.79|312
|
||||
Customer#000024341|24341|1474818|1992-11-15|491348.26|302
|
||||
Customer#000137446|137446|5489475|1997-05-23|487763.25|311
|
||||
Customer#000107590|107590|4267751|1994-11-04|485141.38|301
|
||||
Customer#000050008|50008|2366755|1996-12-09|483891.26|302
|
||||
Customer#000015619|15619|3767271|1996-08-07|480083.96|318
|
||||
Customer#000077260|77260|1436544|1992-09-12|479499.43|307
|
||||
Customer#000109379|109379|5746311|1996-10-10|478064.11|302
|
||||
Customer#000054602|54602|5832321|1997-02-09|471220.08|307
|
||||
Customer#000105995|105995|2096705|1994-07-03|469692.58|307
|
||||
Customer#000148885|148885|2942469|1992-05-31|469630.44|313
|
||||
Customer#000114586|114586|551136|1993-05-19|469605.59|308
|
||||
Customer#000105260|105260|5296167|1996-09-06|469360.57|303
|
||||
Customer#000147197|147197|1263015|1997-02-02|467149.67|320
|
||||
Customer#000064483|64483|2745894|1996-07-04|466991.35|304
|
||||
Customer#000136573|136573|2761378|1996-05-31|461282.73|301
|
||||
Customer#000016384|16384|502886|1994-04-12|458378.92|312
|
||||
Customer#000117919|117919|2869152|1996-06-20|456815.92|317
|
||||
Customer#000012251|12251|735366|1993-11-24|455107.26|309
|
||||
Customer#000120098|120098|1971680|1995-06-14|453451.23|308
|
||||
Customer#000066098|66098|5007490|1992-08-07|453436.16|304
|
||||
Customer#000117076|117076|4290656|1997-02-05|449545.85|301
|
||||
Customer#000129379|129379|4720454|1997-06-07|448665.79|303
|
||||
Customer#000126865|126865|4702759|1994-11-07|447606.65|320
|
||||
Customer#000088876|88876|983201|1993-12-30|446717.46|304
|
||||
Customer#000036619|36619|4806726|1995-01-17|446704.09|328
|
||||
Customer#000141823|141823|2806245|1996-12-29|446269.12|310
|
||||
Customer#000053029|53029|2662214|1993-08-13|446144.49|302
|
||||
Customer#000018188|18188|3037414|1995-01-25|443807.22|308
|
||||
Customer#000066533|66533|29158|1995-10-21|443576.50|305
|
||||
Customer#000037729|37729|4134341|1995-06-29|441082.97|309
|
||||
Customer#000003566|3566|2329187|1998-01-04|439803.36|304
|
||||
Customer#000045538|45538|4527553|1994-05-22|436275.31|305
|
||||
Customer#000081581|81581|4739650|1995-11-04|435405.90|305
|
||||
Customer#000119989|119989|1544643|1997-09-20|434568.25|320
|
||||
Customer#000003680|3680|3861123|1998-07-03|433525.97|301
|
||||
Customer#000113131|113131|967334|1995-12-15|432957.75|301
|
||||
Customer#000141098|141098|565574|1995-09-24|430986.69|301
|
||||
Customer#000093392|93392|5200102|1997-01-22|425487.51|304
|
||||
Customer#000015631|15631|1845057|1994-05-12|419879.59|302
|
||||
Customer#000112987|112987|4439686|1996-09-17|418161.49|305
|
||||
Customer#000012599|12599|4259524|1998-02-12|415200.61|304
|
||||
Customer#000105410|105410|4478371|1996-03-05|412754.51|302
|
||||
Customer#000149842|149842|5156581|1994-05-30|411329.35|302
|
||||
Customer#000010129|10129|5849444|1994-03-21|409129.85|309
|
||||
Customer#000069904|69904|1742403|1996-10-19|408513.00|305
|
||||
Customer#000017746|17746|6882|1997-04-09|408446.93|303
|
||||
Customer#000013072|13072|1481925|1998-03-15|399195.47|301
|
||||
Customer#000082441|82441|857959|1994-02-07|382579.74|305
|
||||
Customer#000088703|88703|2995076|1994-01-30|363812.12|302
|
||||
|
2
external/duckdb/extension/tpch/dbgen/answers/sf1/q19.csv
vendored
Normal file
2
external/duckdb/extension/tpch/dbgen/answers/sf1/q19.csv
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
revenue
|
||||
3083843.0578
|
||||
|
187
external/duckdb/extension/tpch/dbgen/answers/sf1/q20.csv
vendored
Normal file
187
external/duckdb/extension/tpch/dbgen/answers/sf1/q20.csv
vendored
Normal file
@@ -0,0 +1,187 @@
|
||||
s_name|s_address
|
||||
Supplier#000000020|JtPqm19E7tF 152Rl1wQZ8j0H
|
||||
Supplier#000000091|35WVnU7GLNbQDcc2TARavGtk6RB6ZCd46UAY
|
||||
Supplier#000000205|Alrx5TN,hdnG
|
||||
Supplier#000000285|q TMZEDyZtv vUiFKBhT3NJlnIxpL
|
||||
Supplier#000000287|UQR8bUA4V2HxVbw9K
|
||||
Supplier#000000354|wSLcCW40Q8
|
||||
Supplier#000000378|mLPJtpu4wOc cSFzBR
|
||||
Supplier#000000402|JR8vWoCteJtJg3okRpt0r28KEo
|
||||
Supplier#000000530|0BvoewCPg2scOEfuL93FRKqSxHmdhw1
|
||||
Supplier#000000555|8Lp0QWPLFXrJrX1sTWkAEdzUsh5ke
|
||||
Supplier#000000640|FwwyFbgz7c hHViKGT0OB
|
||||
Supplier#000000729|CAOGYCBtTVT7aB1p6qHbxF6VVhXaHLgTpI
|
||||
Supplier#000000736|GUIYDfv5xCxLgDx6KQ8khY ntVVnFqmfMKIgT
|
||||
Supplier#000000761|tF8fMGa6HY4 w77mDwT4rO21kxwe7uTSYNW
|
||||
Supplier#000000887|y mQ7NHjVbdqnbYr9 L
|
||||
Supplier#000000935|JHRSOterYgt4MTNo7cupTzA,6MoNw 4
|
||||
Supplier#000000975|1qorM1ypBdwgPVuf6sMCKuF9D1rJN1iCTXKmalSt
|
||||
Supplier#000001263|Aa4 UELS1JqY7qIjniwCWiC
|
||||
Supplier#000001367|XY28GmOq3efOxOzBMmMLdmWjMpo
|
||||
Supplier#000001426|QbcoO0TUClFSzfy90Lk k
|
||||
Supplier#000001446|GOJRjfd6Z9UQ,fiuPz6CO5GDGV
|
||||
Supplier#000001500|wnElVvfuyaPJROy6x0
|
||||
Supplier#000001602|ygd4iNQLQeVWW
|
||||
Supplier#000001626|7Jud9t6xZNzlEB,
|
||||
Supplier#000001682|C37Gkv 7a5ujZ9
|
||||
Supplier#000001700|UJeFoDLZ2VtflK
|
||||
Supplier#000001726|8M92T8y7jYXzmvCANTtqR8GHuT
|
||||
Supplier#000001730|aOSM0,btPDs UsC06himJn,6nswJG
|
||||
Supplier#000001746|B4zMDOFcMGbkZQ4XxA,UyaQoEWZzMSGI wTsJp9N
|
||||
Supplier#000001806|fRXWLy18Df5
|
||||
Supplier#000001855|f4GUmrMCs3Q
|
||||
Supplier#000001931|mBhPe7YJU1aYMpwTiRdivl
|
||||
Supplier#000002022|sNvMPl3TiNZBOYV3w2XX
|
||||
Supplier#000002036|Z,ty7z5cPHh66iY5op,q
|
||||
Supplier#000002096|HxuzMufyArbbf3uFR16 EpUgGKRYhyhVOast3d6r
|
||||
Supplier#000002117|f9yGKhCFjhS4Jr3Sh0x rdjgntwH
|
||||
Supplier#000002204|y2EF XUo,UyNoAQEH,gIazC7aRG1zmuzzf
|
||||
Supplier#000002218|Ecn1vWAWNusGB,gW
|
||||
Supplier#000002243|E8cm5YhMc6UR
|
||||
Supplier#000002245|KsYA4445HcugJAb3eCmvtUslGA7Qne
|
||||
Supplier#000002282|n8YZgSNuC4,iZ7s5oHTMHNFdv94DwZ2rrUEb0pgD
|
||||
Supplier#000002303|EoC4LCpU2cuEPKcKyTFyMGFBGkF
|
||||
Supplier#000002331|59JYvW4lw9LT1,8,qw8wkof
|
||||
Supplier#000002373|asj8ud7aEmGoHuiqI5qVZ1rhpWS hJc9tF9
|
||||
Supplier#000002419|BtNpaOZWiVGVE53RWL22
|
||||
Supplier#000002571|i16xKt,WOrJhlf GkzsRdrd04sZ 5jei9MtB
|
||||
Supplier#000002585|pzbCgCvYax82Wq5,dG4xzyDMiRW8d
|
||||
Supplier#000002629|0qv0AW1BSzyR3 sDoDK1YOqm32v1
|
||||
Supplier#000002721|k5NlqeYhjeb8BgE
|
||||
Supplier#000002730|Gilu9XLsEX,oU0EyshvFTWs
|
||||
Supplier#000002775|unOFQoQpnWJJj
|
||||
Supplier#000002799|Gv 0rVfXKNMOTRbbxy0W4cUDa 7h2UYOqt2d
|
||||
Supplier#000002934|F0y pndtv8r vKXoJp
|
||||
Supplier#000002941|eQNNPRrS27ngMG1ub,
|
||||
Supplier#000003028|ICxsK4,41HKde4fRjWLt
|
||||
Supplier#000003095|kucdXIhJ6IYsHy0ArE7n
|
||||
Supplier#000003143|KNCFKKU,Sx8GjJTzUAL8BGILgRIlHDpj
|
||||
Supplier#000003185|KeQVXWoPLYFHZdvXc4cg55 zg06NnGi69 NI8ihM
|
||||
Supplier#000003189|o4NbuzTr9DH1wU5dpt9,NE
|
||||
Supplier#000003201|nSTtv Ui0y0BdzWb4T6snugIhEhn14yM
|
||||
Supplier#000003213|Cu 9bXI aZ6CtLa1N7LX
|
||||
Supplier#000003275|SucWDuhYahP3UwkM
|
||||
Supplier#000003288|nnNLdzTmV6P0uf7yBCiK3fWt2UxHJ0
|
||||
Supplier#000003314|IDIz6TesAcXI6pXtzbO uzevXon6CH9WATfo
|
||||
Supplier#000003373|JtS5eXStDBPXdYc pvqwK2QGcZxzR9,PI
|
||||
Supplier#000003421|9JXNyS4VCMDLl4CxDlJ L0
|
||||
Supplier#000003422|ohComRB6Mp4C5ZI3IoObmawsz8wY1iSU,
|
||||
Supplier#000003441|twlhit80C6y8JjHCO3
|
||||
Supplier#000003590| tTRoffuAP1oPC
|
||||
Supplier#000003607|GdAljb2Hv8rGL
|
||||
Supplier#000003625|B2VSS5,2GVJQ6tZa37KdAmg erHp2jPgz
|
||||
Supplier#000003723|I1mB,dmtyJpfO8rdEh8 myuhUVPeFs9B
|
||||
Supplier#000003849|hKP1mR9G0UbXE4wwJUxBz zZga6jKr0
|
||||
Supplier#000003894|xwkorAQEMfdG
|
||||
Supplier#000003941|cEP,VFaLpe9UZScU4gA1irRwtx
|
||||
Supplier#000004059|yEm219AR9hZ4msN wREM7S EAws5f9LI1vo
|
||||
Supplier#000004207|zlUWBwIceWjG4HdYE80M0V4xqIfu
|
||||
Supplier#000004236|OF0jbzhEkICu2z8BDRvEBGx4H y0EoNhScU8
|
||||
Supplier#000004278|QpNNPCpui5CrnIR
|
||||
Supplier#000004281|,cvbjKrbKIuMxz0J18VMrYXhndIBvG
|
||||
Supplier#000004304|KaoqsWRG0jgFBYoh6 Opjf
|
||||
Supplier#000004346|9X,TUgmcvC
|
||||
Supplier#000004406|rJ,1QgxU5vyLb46t0TGP4K21JRxmQjBkiK
|
||||
Supplier#000004430|uw8zge87fVkf3pm8WFxc bdfuhsqeG
|
||||
Supplier#000004527|CrB53pDuKOHF4lUrZCXck2XA4V
|
||||
Supplier#000004655|VTdApPWryXckXlSRcrizB4dAWHkQbCw2f
|
||||
Supplier#000004851|aH0uUjKf7THpfRREAB
|
||||
Supplier#000004871|1BJByVq4mD78SyWrwPV,AlLNKUcROUE6SuuxSMoV
|
||||
Supplier#000004884|XY1ZxgtMRD DUQ7lpdNrOiSru
|
||||
Supplier#000004975|lbAVbfg2U4u
|
||||
Supplier#000005076|4FTJRJLKwikEAulgK4LjhWkHQxrpGb
|
||||
Supplier#000005195|5CIXPZ1QIOcJr18MxZmL4Jm
|
||||
Supplier#000005256|dDOXyWT5qePJE0BFC5fQ7SPcdEIRdzyQerbteels
|
||||
Supplier#000005257|MRKS8njpTCQeHXa4qH38ZwL22ZY
|
||||
Supplier#000005300|L3kYS3ABu6
|
||||
Supplier#000005323|zeoGNBPnCteCSwejGsHpB2MuCaqxw08UrAsPx
|
||||
Supplier#000005386|7PUqqMjB4f5b
|
||||
Supplier#000005426|SnsYc67ZAr PWpgUZFHa,3Hbp39bwc
|
||||
Supplier#000005465|VXO21ND1p92UZXa,lQCk01zEDpVsFR
|
||||
Supplier#000005484| QlNcarA4Trl20XRzbAIJqQZZfCYYBpCd,pzb gC
|
||||
Supplier#000005505|OYzPHlWXgvfb3
|
||||
Supplier#000005506|dDrLVuBsC4Lp
|
||||
Supplier#000005631|,W75 IFsCY9hmp2pnKBew7Fwv9Ao
|
||||
Supplier#000005642|2vguqxX5W,z4rmScTavx1sFx0Hbzf
|
||||
Supplier#000005686|MY9pgNOY7ZeiITt9re
|
||||
Supplier#000005730|W GP,c8MvzsjwuGgShQnXZ6BD9lYOKTjZ
|
||||
Supplier#000005736|ZNAr382Jy258LB
|
||||
Supplier#000005737|OEm4O9XYoXHu0N0qRVrcF2DWS
|
||||
Supplier#000005797|1C0cMQv9P8oE5FRLdRLB5boIAqr6CKxF89
|
||||
Supplier#000005875|Gg0z2JkspRXJ8tjuRuw82lP5aeo1MYg31xkQ8
|
||||
Supplier#000005974|amJ9VIm0Ffyza3wMVW8v3t8Kz985lJy
|
||||
Supplier#000006059|XE,OwTevhRu3YwFwir1
|
||||
Supplier#000006065|7IiYouX4W7yVzfGsfxw3g9tUgJJFkw
|
||||
Supplier#000006093|hhd6K,CN67Zvyo8ZzUb kXnULO
|
||||
Supplier#000006099|R1IFvbg2n76bCg
|
||||
Supplier#000006109|A2VKPMJXNgkDtFOb67bkpvDPM
|
||||
Supplier#000006217|a5dYX927RHND6MQ5k36N
|
||||
Supplier#000006297|UX59ndcVUk7otwOX,C2h
|
||||
Supplier#000006435|viKmUS3zs2QDcWmDDTOjkcSt
|
||||
Supplier#000006463|UrvGNIYmcWSICyFNtYGEjerqnCf8zsl5X9d5H
|
||||
Supplier#000006478|Qa2bDIRFBE5X6
|
||||
Supplier#000006521|QRrYsIjsu9
|
||||
Supplier#000006642|e0o6OG8A9fiO8Ssb
|
||||
Supplier#000006659|J7fzDxnSnYls4d6xrG9iEv9HGW nMmFLxBZ
|
||||
Supplier#000006669|eaW2 uHUYWCTgVX
|
||||
Supplier#000006748|Ao0Y nDSKgoi8Va0OhmCJl
|
||||
Supplier#000006761|EWHJuleApVC nZjKBfwvA48ycgFFQ
|
||||
Supplier#000006808|kkNY3DrRDmPjhJ1x3H3u5giBqC7
|
||||
Supplier#000006858|MDFid8SSVwqpJz4w7kI10DYYyKvk2ZVJrkjiHYZ
|
||||
Supplier#000006946|8CU8FD,kh7BOiwn
|
||||
Supplier#000006949|Ffu26iJzkOgygMr1klI exZSXrw7
|
||||
Supplier#000007072|Zy9t3SeZQrX9OEVUzTTRmZqdkSHFBg
|
||||
Supplier#000007098|lXHSK0hoWcPPqxYd5CbjA3a4ep6NHATvKojdmux
|
||||
Supplier#000007132|vCDwD0hqaigXBSG3Grjo,l88n9687o
|
||||
Supplier#000007135|GzrnCh5T5VyFLatS5
|
||||
Supplier#000007147|4sPZUHoUXvFf52Mv6mKp0K3lwkGH7VJbBA
|
||||
Supplier#000007160|8Ankp7fpXO8Ai7UmgnwESp8WMXw0sv3IabP
|
||||
Supplier#000007169|zmORVoYECdS8SWDOVVc0OFD4
|
||||
Supplier#000007278|jYQMXA8Tg5mSk5jzp
|
||||
Supplier#000007365|WZuJ9dfwaei,VnDOy14y
|
||||
Supplier#000007398|6SMmUD1,,cmd60
|
||||
Supplier#000007402|X65wVTM tZAHEA8aV
|
||||
Supplier#000007448|uJJB4JhITmiUaV5pQa
|
||||
Supplier#000007458|q2xxORB2GBz1FULENYaQot1EiSK9ZiKZUM
|
||||
Supplier#000007477|SERH,wLJ4spw5juH60bBruv8j0K
|
||||
Supplier#000007509|BS05Ugh9CjiHjOcy8kTQg7eK
|
||||
Supplier#000007561|AeOlKZVX,5p
|
||||
Supplier#000007616|ariCwjAsnIY0ajDRA1GZv8WJkrKMFJcWtH
|
||||
Supplier#000007760|izbmZTbwONm7g
|
||||
Supplier#000007801|VRLI07Z UME6Pr
|
||||
Supplier#000007865|WOnko907Ud
|
||||
Supplier#000007885|yXzIOPJJV1Ct76BeZOhgeOqCQQi4K2
|
||||
Supplier#000007926|n solT,gR6u
|
||||
Supplier#000007998|gDq8lqL29ldCRNUO0Qzpx5ARfDYb
|
||||
Supplier#000008090|NCDPh2wCnl3pd6IE2LBUum9iK
|
||||
Supplier#000008224|84uyRM0f5ma
|
||||
Supplier#000008231|jgTMkwr2HR0 7NB b0wOB4ufp
|
||||
Supplier#000008243|ZqtMbfGnAEt5sHk8Is3yKlfCSKrmIxOoeucFiik
|
||||
Supplier#000008323|UViZS 1Eq8wErbcNJM9eOHRyECtMa0qLo3dWpiqP
|
||||
Supplier#000008366|KTTSOnHZWpy4RcmhFwb75AWIvr89Umqp3dTtM8S
|
||||
Supplier#000008532|7OYRAX0Vu5OnclSU61 uK Wu49,IJm73xJ
|
||||
Supplier#000008595|fj,IpUXkaXtr64XdrnPoQAEO
|
||||
Supplier#000008610|9K5KbS,wbWWYz6d8KsfRtgv3j4qs5Uz5
|
||||
Supplier#000008683|LfxkOyKLBh9MkaqaDQjdpQ4DkRAzdDItFY,
|
||||
Supplier#000008705|Rm0y adNbu1WtID8nRcXoMPniC
|
||||
Supplier#000008742|kEbFansgobnO76f,W0GgB
|
||||
Supplier#000008841|jrSVfyZzMGQKYu 9isE,
|
||||
Supplier#000008872|TnrWVlKuhcZcvv2cR8WqR3hgwovbLff
|
||||
Supplier#000008879|An8q0oRCbe1UVde5ml Elgqx
|
||||
Supplier#000008967|ZGvmjuekrTmvCsdjEq6mVEj,J3yA2OyFhe
|
||||
Supplier#000008972|wYwlUsnV21dXwIzc3zA5Mfqn7h
|
||||
Supplier#000009032|Bg0y qU8NtXnsZpa6ldt
|
||||
Supplier#000009043|WTcbwhjWAt4i1Tit2MoQwZZQVeZgIRMZ44E6a0
|
||||
Supplier#000009278|aA27sLuHRXpf3r,FO2LondcMLo
|
||||
Supplier#000009326|4EIo0ytXUpS0LP,tJOHQRKI3ayyK
|
||||
Supplier#000009430|JK9AEEMlyr
|
||||
Supplier#000009549|KX95OK6LSet2WUitP1,DL,R
|
||||
Supplier#000009601|WZEUXUPc09wVnDj5l6wfRO9uR
|
||||
Supplier#000009709|A9DoPk2KnKGRb12Et4g53864,xgK
|
||||
Supplier#000009753|wfJ5mP9ENTcGhlWmpDkgU1
|
||||
Supplier#000009799|sWvdH4kQWch4F
|
||||
Supplier#000009811|nXIxtBT6D1v6TCb2iMYkyU
|
||||
Supplier#000009812|rbl9euXFoPLlKQVYDVyRouslbbbKDHAkyXY
|
||||
Supplier#000009846|WTzdvihXbyqnx0JfbbVaxBOcO9d93DYbtBhi J
|
||||
Supplier#000009899|U3NBqk s Zz06al2m
|
||||
Supplier#000009974|Uvh0hWngOu96WgB,OafBQOqwpWqzwg8
|
||||
|
101
external/duckdb/extension/tpch/dbgen/answers/sf1/q21.csv
vendored
Normal file
101
external/duckdb/extension/tpch/dbgen/answers/sf1/q21.csv
vendored
Normal file
@@ -0,0 +1,101 @@
|
||||
s_name|numwait
|
||||
Supplier#000002829|20
|
||||
Supplier#000005808|18
|
||||
Supplier#000000262|17
|
||||
Supplier#000000496|17
|
||||
Supplier#000002160|17
|
||||
Supplier#000002301|17
|
||||
Supplier#000002540|17
|
||||
Supplier#000003063|17
|
||||
Supplier#000005178|17
|
||||
Supplier#000008331|17
|
||||
Supplier#000002005|16
|
||||
Supplier#000002095|16
|
||||
Supplier#000005799|16
|
||||
Supplier#000005842|16
|
||||
Supplier#000006450|16
|
||||
Supplier#000006939|16
|
||||
Supplier#000009200|16
|
||||
Supplier#000009727|16
|
||||
Supplier#000000486|15
|
||||
Supplier#000000565|15
|
||||
Supplier#000001046|15
|
||||
Supplier#000001047|15
|
||||
Supplier#000001161|15
|
||||
Supplier#000001336|15
|
||||
Supplier#000001435|15
|
||||
Supplier#000003075|15
|
||||
Supplier#000003335|15
|
||||
Supplier#000005649|15
|
||||
Supplier#000006027|15
|
||||
Supplier#000006795|15
|
||||
Supplier#000006800|15
|
||||
Supplier#000006824|15
|
||||
Supplier#000007131|15
|
||||
Supplier#000007382|15
|
||||
Supplier#000008913|15
|
||||
Supplier#000009787|15
|
||||
Supplier#000000633|14
|
||||
Supplier#000001960|14
|
||||
Supplier#000002323|14
|
||||
Supplier#000002490|14
|
||||
Supplier#000002993|14
|
||||
Supplier#000003101|14
|
||||
Supplier#000004489|14
|
||||
Supplier#000005435|14
|
||||
Supplier#000005583|14
|
||||
Supplier#000005774|14
|
||||
Supplier#000007579|14
|
||||
Supplier#000008180|14
|
||||
Supplier#000008695|14
|
||||
Supplier#000009224|14
|
||||
Supplier#000000357|13
|
||||
Supplier#000000436|13
|
||||
Supplier#000000610|13
|
||||
Supplier#000000788|13
|
||||
Supplier#000000889|13
|
||||
Supplier#000001062|13
|
||||
Supplier#000001498|13
|
||||
Supplier#000002056|13
|
||||
Supplier#000002312|13
|
||||
Supplier#000002344|13
|
||||
Supplier#000002596|13
|
||||
Supplier#000002615|13
|
||||
Supplier#000002978|13
|
||||
Supplier#000003048|13
|
||||
Supplier#000003234|13
|
||||
Supplier#000003727|13
|
||||
Supplier#000003806|13
|
||||
Supplier#000004472|13
|
||||
Supplier#000005236|13
|
||||
Supplier#000005906|13
|
||||
Supplier#000006241|13
|
||||
Supplier#000006326|13
|
||||
Supplier#000006384|13
|
||||
Supplier#000006394|13
|
||||
Supplier#000006624|13
|
||||
Supplier#000006629|13
|
||||
Supplier#000006682|13
|
||||
Supplier#000006737|13
|
||||
Supplier#000006825|13
|
||||
Supplier#000007021|13
|
||||
Supplier#000007417|13
|
||||
Supplier#000007497|13
|
||||
Supplier#000007602|13
|
||||
Supplier#000008134|13
|
||||
Supplier#000008234|13
|
||||
Supplier#000009435|13
|
||||
Supplier#000009436|13
|
||||
Supplier#000009564|13
|
||||
Supplier#000009896|13
|
||||
Supplier#000000379|12
|
||||
Supplier#000000673|12
|
||||
Supplier#000000762|12
|
||||
Supplier#000000811|12
|
||||
Supplier#000000821|12
|
||||
Supplier#000001337|12
|
||||
Supplier#000001916|12
|
||||
Supplier#000001925|12
|
||||
Supplier#000002039|12
|
||||
Supplier#000002357|12
|
||||
Supplier#000002483|12
|
||||
|
8
external/duckdb/extension/tpch/dbgen/answers/sf1/q22.csv
vendored
Normal file
8
external/duckdb/extension/tpch/dbgen/answers/sf1/q22.csv
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
cntrycode|numcust|totacctbal
|
||||
13|888|6737713.99
|
||||
17|861|6460573.72
|
||||
18|964|7236687.40
|
||||
23|892|6701457.95
|
||||
29|948|7158866.63
|
||||
30|909|6808436.13
|
||||
31|922|6806670.18
|
||||
|
5
external/duckdb/extension/tpch/dbgen/answers/sf100/q01.csv
vendored
Normal file
5
external/duckdb/extension/tpch/dbgen/answers/sf100/q01.csv
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
l_returnflag|l_linestatus|sum_qty|sum_base_price|sum_disc_price|sum_charge|avg_qty|avg_price|avg_disc|count_order
|
||||
A|F|3775127758.00|5660776097194.45|5377736398183.9374|5592847429515.927026|25.499370423275426|38236.11698430489|0.050002243530929025|148047881
|
||||
N|F|98553062.00|147771098385.98|140384965965.0348|145999793032.775829|25.501556956882876|38237.1993888045|0.04998528433805397|3864590
|
||||
N|O|7436302976.00|11150725681373.59|10593195308234.8523|11016932248183.655467|25.500009404374193|38237.227646360945|0.04999791831562552|291619617
|
||||
R|F|3775724970.00|5661603032745.34|5378513563915.4097|5593662252666.916161|25.50006628406532|38236.697258452965|0.05000130433965413|148067261
|
||||
|
101
external/duckdb/extension/tpch/dbgen/answers/sf100/q02.csv
vendored
Normal file
101
external/duckdb/extension/tpch/dbgen/answers/sf100/q02.csv
vendored
Normal file
@@ -0,0 +1,101 @@
|
||||
s_acctbal|s_name|n_name|p_partkey|p_mfgr|s_address|s_phone|s_comment
|
||||
9999.70|Supplier#000239544|UNITED KINGDOM|6739531|Manufacturer#4|1UCMu3TLyUThghoeZ8arg6cV3Mr|33-509-584-9496|y against the pending, final packages. fluffily
|
||||
9999.65|Supplier#000143654|FRANCE|2393647|Manufacturer#3|kJjo119CzmTjMWx3wtinBzb1M1TO1IiJZtR1|16-166-504-5864|are quickly along the quickly bold escap
|
||||
9999.49|Supplier#000615014|GERMANY|12365001|Manufacturer#3|Xo0xcyhnIKUs0WM|17-780-902-4027|pinto beans nag furiously i
|
||||
9999.28|Supplier#000494480|ROMANIA|17244462|Manufacturer#3|KdpYAP2EDtNA NrNE0CYS7usfwv F|29-756-312-1779|dolites. requests wake. slyly final packa
|
||||
9998.87|Supplier#000826281|ROMANIA|14326252|Manufacturer#3|gGkEf9qHPHLg8V1aMBf|29-775-451-4774|ly alongside of the instructions. slyly even requests are according to the
|
||||
9998.56|Supplier#000039514|UNITED KINGDOM|7539499|Manufacturer#2|M6dRVABIGLJAMkC1CGF0ZTiy8BRLeBA|33-317-828-7758|ans cajole except the regular frets. blithely special accounts haggle final fox
|
||||
9997.89|Supplier#000319666|RUSSIA|19319665|Manufacturer#1|91yNuY s3DmxI5xisgQyK5R|32-972-151-6038|refully regular orbits are furiously along the unusual, bold foxes.
|
||||
9997.85|Supplier#000718770|ROMANIA|718769|Manufacturer#1|ZZTXvDgzoKUsBjoBJIm3m7E22BB7W3ddD9q 6 tm|29-663-409-2865|ven, final requests wake dogged, special deposits.
|
||||
9997.83|Supplier#000348318|FRANCE|9348317|Manufacturer#4|rwLDwIolqK,QdBH|16-718-707-5676|olites use doggedly according to the carefully even excuses. slyly pending pinto
|
||||
9997.73|Supplier#000329974|RUSSIA|4079969|Manufacturer#3|NgyiQOCBzm|32-268-488-7178|ions are furiously regular deposits. blithely special accoun
|
||||
9997.46|Supplier#000906546|FRANCE|1406543|Manufacturer#2|Re1ZXj7AQ2pkvA4XYA3hSYJC|16-249-122-4511| carefully. furiously special theo
|
||||
9997.20|Supplier#000487664|FRANCE|2737657|Manufacturer#2|s8Jl8b2F50TmwxdbGpTp|16-714-518-5435|ilent packages against the expre
|
||||
9997.17|Supplier#000123140|ROMANIA|5373124|Manufacturer#2|dS,AbIeVACEsHukj0oF8EiT5LYNF1otyGduYJC|29-567-411-4572|ffily express pinto beans boost carefully ironic packages. quickly special accounts haggle
|
||||
9997.06|Supplier#000725417|GERMANY|10225396|Manufacturer#1|,,I9vBX0fMu7H1uTk|17-577-582-2010|furiously sly pinto beans. even deposits haggle. f
|
||||
9996.45|Supplier#000795554|ROMANIA|14795553|Manufacturer#2|B9nruTrrsz9rTDZ,oxUxfhGK8ofYbw|29-305-384-2702|t the carefully unusual accou
|
||||
9995.96|Supplier#000566208|FRANCE|9816180|Manufacturer#5|aeDi86Qt0k0C p6r10tABETLyu1PHj0pLht4bRV|16-665-147-8314|c instructions. ironic hocke
|
||||
9995.96|Supplier#000629520|FRANCE|13129493|Manufacturer#3|HHEMDuFnY6zVhhuKZDSb,0OF04A9|16-785-547-3814|s. furiously final deposits across the expre
|
||||
9995.93|Supplier#000388258|UNITED KINGDOM|6138251|Manufacturer#2|A6pSStkixOGTXhFX|33-829-188-2160|ve accounts are blithely express, express dependencies.
|
||||
9995.79|Supplier#000998425|FRANCE|248424|Manufacturer#4|zHCgm,8 DBYFRFBw8bW,EeCDcdeTlYMQr|16-228-926-9937|its sleep slyly express dependencies. pending, regu
|
||||
9995.42|Supplier#000220794|ROMANIA|12470757|Manufacturer#1|HvuyoaekR55LhTV9IHYg|29-557-942-9023|en dolphins nag against the quickly final ideas. requests against t
|
||||
9995.35|Supplier#000660115|RUSSIA|14660114|Manufacturer#4|mM1mA1l6GW2PVaOcySqTnPRInZS|32-485-807-8645|s. daringly regular accounts nag furiously carefully regular deposits! furiously regular accounts
|
||||
9995.34|Supplier#000190688|UNITED KINGDOM|13440648|Manufacturer#2|C8FJs0TYVwRe0ftT2W5fpyNksmdBznKXV6|33-424-942-1566|. quickly regular packages boost ca
|
||||
9995.10|Supplier#000885436|UNITED KINGDOM|17885435|Manufacturer#1|16Hsfjgw,RpupKuBUZaMliacWy5nxR jKQN|33-504-226-2765|are according to the regularly
|
||||
9995.07|Supplier#000490282|ROMANIA|12740245|Manufacturer#4|iKbpRSiMpfq|29-394-304-4131|y bold asymptotes. carefully silent excuses into the even asymptotes s
|
||||
9994.85|Supplier#000581928|GERMANY|2831921|Manufacturer#1|7Pp58RF3Z2jkFQR5VUW5x65 RmSQSXBNs|17-230-642-6940|inally special accounts. silent requests sleep busily special foxes! regular pa
|
||||
9994.66|Supplier#000071807|FRANCE|14821792|Manufacturer#5|RM,EOT5XGp8|16-407-922-3032|otes sleep according to the slyly furious package
|
||||
9994.46|Supplier#000654651|RUSSIA|5404645|Manufacturer#4|7dh,5zQ9,EugeL7c67L8hbFni33Q4|32-280-208-7451|ly outside the blithely even excuses. slyly bold accounts was. bold ideas about the carefully
|
||||
9994.15|Supplier#000750884|UNITED KINGDOM|4000871|Manufacturer#3|94Oz NA7SPetmFRGSkKGXmEhpqq74EpUFRSP67W|33-640-820-7791|ely regular packages about the even, regular accounts print fluffily fina
|
||||
9994.15|Supplier#000750884|UNITED KINGDOM|4250875|Manufacturer#3|94Oz NA7SPetmFRGSkKGXmEhpqq74EpUFRSP67W|33-640-820-7791|ely regular packages about the even, regular accounts print fluffily fina
|
||||
9994.11|Supplier#000213298|FRANCE|11963286|Manufacturer#5|K11Mh52K4v6NdrkSNw0S|16-813-605-2602|ular instructions must have to sleep pinto beans. special, silent instructions
|
||||
9993.91|Supplier#000674336|RUSSIA|14924293|Manufacturer#3| 44JCrrbKMvQfysKtEHAZJ0YKt1|32-949-587-4877| special escapades over the special dependencies are special deposits. furiously reg
|
||||
9993.58|Supplier#000597447|UNITED KINGDOM|9097428|Manufacturer#4|Y3sp,ydmoMl4,LLRab|33-986-148-2564|ily even packages about the quickly bold instructions
|
||||
9993.21|Supplier#000935931|UNITED KINGDOM|7935930|Manufacturer#1|0gC91nNqy3hYuD376|33-117-102-3544|nding pinto beans serve carefully unusual platelets. slyly
|
||||
9993.21|Supplier#000935931|UNITED KINGDOM|11435908|Manufacturer#2|0gC91nNqy3hYuD376|33-117-102-3544|nding pinto beans serve carefully unusual platelets. slyly
|
||||
9992.71|Supplier#000401090|GERMANY|11401089|Manufacturer#1|xMvpcRI6CWdVNkqWxj5b,BObuCG|17-358-630-1671|haggle furiously. regular instructions solve above the caref
|
||||
9992.70|Supplier#000245718|UNITED KINGDOM|12745693|Manufacturer#1|UeblzxBRTdV3,|33-570-729-4176|s might sleep bravely at the deposits. slyly ironi
|
||||
9992.65|Supplier#000611657|UNITED KINGDOM|7611656|Manufacturer#3|DJkPsv5xKLcSFpeah|33-456-959-4171|old pinto beans. final theodolites haggle furiously outside
|
||||
9991.82|Supplier#000754421|GERMANY|3504417|Manufacturer#2|iKUm74KKkfTyL3|17-908-303-8190|uriously regular requests-- furiously express requests across the final
|
||||
9991.77|Supplier#000514042|ROMANIA|1014039|Manufacturer#1|enSKTYhPOxyKnBJkE4Aue50Cpont6hI2B9S Dh|29-100-282-1954|ly final patterns outside the express foxes lose furiously along the dogged
|
||||
9991.03|Supplier#000403268|FRANCE|4403267|Manufacturer#4|IASY0peehSWWDJbkui05LzoOeWOmRnTWt|16-970-984-3812|e the slyly pending packages? regular packages detect around the carefull
|
||||
9990.81|Supplier#000106044|ROMANIA|7106043|Manufacturer#3|ny2,rr,dO7LucvrXay6t hESu 76T|29-217-664-9441|ght affix? quickly ironic accounts haggle blith
|
||||
9990.65|Supplier#000661325|RUSSIA|5411319|Manufacturer#4|iAwLTqewXa|32-312-563-2260| the furiously bold deposits: slyly pending packages wake slyly
|
||||
9990.32|Supplier#000985253|FRANCE|13735239|Manufacturer#1|plp1ox91 mpCFEcvOgRhPU2S0s8srS5BKT6u|16-848-482-4079|nt packages cajole quickly around the carefully regular excuses.
|
||||
9990.13|Supplier#000138240|FRANCE|1888238|Manufacturer#4|Ecc8YHzfWMyxDNXKC1LkxlHUfJI6FSx0k9iE2mAb|16-206-608-6166|fluffily slyly silent asymptotes. furiously ironic pinto beans are carefully.
|
||||
9990.03|Supplier#000081720|UNITED KINGDOM|17581685|Manufacturer#4|SB0zn8EvPFJbFx,nvIcw4j7ZERoy|33-166-373-3036|blithely even warhorses engage. sometimes ironic deposits promise. fl
|
||||
9989.93|Supplier#000500883|FRANCE|6000870|Manufacturer#1|Bv24cUcSFTj4u605tX1ze|16-736-685-5763| unwind blithely along the even foxes. blithely even instr
|
||||
9989.46|Supplier#000625093|RUSSIA|15875047|Manufacturer#3|2TsHrlh1jRvkMNXVoZQThv2j|32-291-695-4022| detect against the fluffily thin pinto beans. furious
|
||||
9988.59|Supplier#000496415|UNITED KINGDOM|10746384|Manufacturer#3|gmzOlvLD7le8|33-577-453-5087| nag fluffily slyly unusual ideas. slyly special foxes above the
|
||||
9988.49|Supplier#000436244|RUSSIA|18436243|Manufacturer#5|U1MiqZoF9RbP6rzG0Nq|32-837-886-1052|above the ironic, unusual platelets. ironic packages wake carefu
|
||||
9988.40|Supplier#000465785|GERMANY|11715751|Manufacturer#1|m7Dur5uzT7x6N|17-981-295-1619|e express courts. regular platelets cajole furiously. slyly brave dependenc
|
||||
9988.29|Supplier#000273304|ROMANIA|3273303|Manufacturer#4|A5vT71bPG2rXVh0|29-238-280-6619|fluffily regular dependencies detect blithely slyly ironic
|
||||
9988.23|Supplier#000834777|ROMANIA|6334764|Manufacturer#2|mTZfJBW1aCv8a1WZYWbIv1gM|29-851-710-7841|hely pending courts boost along the ironic foxes. s
|
||||
9987.75|Supplier#000424377|FRANCE|13174363|Manufacturer#5|3 LkmDYatAewZEfEs,sot8YpAq4T43thfwQ|16-246-384-2743|arhorses engage carefully during the regular, even requests. foxes through the carefully even foxes
|
||||
9987.51|Supplier#000020657|ROMANIA|5520646|Manufacturer#5|XBf0Sq7X2xE0ZTakAq Rsq01lutxjWg|29-167-460-7830| unusual requests cajole across the fluffily final requests.
|
||||
9987.47|Supplier#000193113|UNITED KINGDOM|12443076|Manufacturer#4|nn,xoEei76Q054zfBt04nQz|33-692-317-4143|ions boost carefully carefully special requests. blithely final foxes sleep b
|
||||
9987.30|Supplier#000355390|UNITED KINGDOM|15605344|Manufacturer#4|eisgtzmQO8ImR,zhd5rk oxPjBZUF56XBv6ZoKFm|33-376-347-5270|final deposits; bold, regular accounts are c
|
||||
9987.03|Supplier#000170919|UNITED KINGDOM|5170918|Manufacturer#1|UBmLFtq010IQyj8td5|33-830-782-9233| requests. even asymptotes haggle? regular courts promise after the blithely silent multipliers.
|
||||
9986.90|Supplier#000980301|RUSSIA|14480272|Manufacturer#1|mivUjyWc7uvr|32-748-246-3728|egular deposits haggle blithely. carefully final multipliers boost carefully
|
||||
9986.56|Supplier#000290709|FRANCE|12790684|Manufacturer#5|oeF0guxAgtj9UIJJ,|16-173-236-8921|fily. slyly regular platelets sleep. bold instructions use quickly a
|
||||
9985.79|Supplier#000508791|UNITED KINGDOM|13258777|Manufacturer#1|QyE9YL9WXLG|33-814-455-4907|ronic requests. quickly sly packages nag. furiously regular pinto beans
|
||||
9985.78|Supplier#000248887|UNITED KINGDOM|12998874|Manufacturer#5|Dz0P3cAbZelkljGDKe3yyV,kZARAsXSIzoTcVxb|33-358-738-5370|ans. bravely unusual packages haggle. blit
|
||||
9985.77|Supplier#000221145|FRANCE|19971125|Manufacturer#4|S6ZMs gXH6HGx44aTnE0J|16-648-985-3872|bold accounts wake fluffily carefully re
|
||||
9985.54|Supplier#000147207|GERMANY|9647188|Manufacturer#1|AnAmuPOjKXjpdWG|17-345-679-3036|es sleep enticingly. slyly final instructions h
|
||||
9985.54|Supplier#000147207|GERMANY|16397158|Manufacturer#2|AnAmuPOjKXjpdWG|17-345-679-3036|es sleep enticingly. slyly final instructions h
|
||||
9984.95|Supplier#000888199|ROMANIA|5138183|Manufacturer#2|S6MMySs1nWjE3ZqVOiKuq3ZPlDdMj9|29-392-570-4019|s use blithely. instructions cajole blithely blit
|
||||
9984.88|Supplier#000171850|FRANCE|6421831|Manufacturer#4|IVu7qjTc8zXgnJZz0Av1HIPKbdpcXWcz|16-530-650-3779|n ideas sleep carefully. carefully bold pinto beans use according to the quickly e
|
||||
9984.88|Supplier#000171850|FRANCE|17671815|Manufacturer#2|IVu7qjTc8zXgnJZz0Av1HIPKbdpcXWcz|16-530-650-3779|n ideas sleep carefully. carefully bold pinto beans use according to the quickly e
|
||||
9984.35|Supplier#000990772|UNITED KINGDOM|17990771|Manufacturer#3|OnOSKBSMjCOH,cWyZ|33-312-861-1228|pending instructions cajole carefully. ironic, special accounts are against the special foxes-- d
|
||||
9984.34|Supplier#000818625|GERMANY|12818624|Manufacturer#5|fcOq9MdkUs|17-392-999-1881|ions sleep carefully. bold foxes are among the carefully ironi
|
||||
9983.77|Supplier#000807239|ROMANIA|6307226|Manufacturer#2| y,oU,khmi|29-870-782-8107|posits. permanent platelets wake furiously above the f
|
||||
9983.77|Supplier#000807239|ROMANIA|8057214|Manufacturer#4| y,oU,khmi|29-870-782-8107|posits. permanent platelets wake furiously above the f
|
||||
9983.74|Supplier#000682561|GERMANY|6682560|Manufacturer#3|P0iInDbmlPKw8PhvZeChlBYdmo2tGHi8sm7m15|17-678-399-9268|counts against the bold, special deposits serve daringly final, regular attainments. enticing
|
||||
9983.32|Supplier#000856704|UNITED KINGDOM|10356683|Manufacturer#4|hAk1r6e94TGXlh8u|33-265-376-9029|eas detect across the pending dolphins. blithely unusual d
|
||||
9982.02|Supplier#000212153|RUSSIA|4712144|Manufacturer#3|,SFs95om,7spddd|32-353-256-5897|gular deposits. slyly bold foxes nag. packages wake blithely under the silently final platelets. un
|
||||
9981.72|Supplier#000823344|FRANCE|3823343|Manufacturer#1|SxyDeygF3TJ3te9gWYLNdimmpW77RWJhO8,SbR|16-555-293-2838|s sleep slyly alongside of
|
||||
9981.10|Supplier#000343979|ROMANIA|19843940|Manufacturer#5|ZeWDj4 orwhsEfSHA,bJTC5Dfb|29-231-383-6316|eep. frets cajole slyly about the silent instructions! ruthlessly busy request
|
||||
9980.93|Supplier#000118263|UNITED KINGDOM|3118262|Manufacturer#2|7S46lyV BJ|33-156-772-3541|nent ideas. regular requests across the fluffily e
|
||||
9980.68|Supplier#000479583|RUSSIA|1479582|Manufacturer#2|bPmubzfxUg,iV8Mw6j5rnTircPXgWj iwLsd1|32-217-607-1271|dolites. carefully special
|
||||
9980.52|Supplier#000683362|ROMANIA|2933355|Manufacturer#5|bM6YgNAtXugLKZngJFJuNFolM,oe1Cs|29-387-482-2397|gside of the slyly special deposits af
|
||||
9980.52|Supplier#000683362|ROMANIA|15933316|Manufacturer#3|bM6YgNAtXugLKZngJFJuNFolM,oe1Cs|29-387-482-2397|gside of the slyly special deposits af
|
||||
9980.49|Supplier#000971427|ROMANIA|1221423|Manufacturer#2|tz16B8B82TQMlvTc9igJddHcR701|29-714-548-4045|efully ironic accounts-- carefully regular hockey players sleep quickly about the furiousl
|
||||
9979.50|Supplier#000458742|ROMANIA|9208732|Manufacturer#2|fWjBe5ZDVJBR9tEwdz6C|29-460-746-6456|its. furiously final deposits according to the requests sle
|
||||
9979.34|Supplier#000335566|ROMANIA|11335565|Manufacturer#4|9agj7tgnTgCl z|29-120-111-4388|theodolites sleep blithely pinto beans. accounts aroun
|
||||
9979.04|Supplier#000966284|GERMANY|9216256|Manufacturer#4|ZVU231RHTKaBw8jmO4Dvin85lxBsnREj8|17-946-544-5166|iously unusual accounts a
|
||||
9978.88|Supplier#000113445|FRANCE|12363408|Manufacturer#5|R4n2vA0VU g0KLynPI7H|16-261-874-6958|mong the carefully quiet accounts slee
|
||||
9978.82|Supplier#000221713|ROMANIA|19721674|Manufacturer#4|ZJ2t14yZTMNJ IEmAX8,XQPt68L2w2jdJ|29-143-199-8338|ide of the ironic, unusual packages. quickly even tithes nag unu
|
||||
9978.78|Supplier#000118448|FRANCE|368447|Manufacturer#1|IsUx9h4zQ frTbFHmUemrFQSx|16-978-504-3922|ly express instructions sleep quietly besides the deposits. final instruc
|
||||
9978.78|Supplier#000118448|FRANCE|1118447|Manufacturer#3|IsUx9h4zQ frTbFHmUemrFQSx|16-978-504-3922|ly express instructions sleep quietly besides the deposits. final instruc
|
||||
9978.78|Supplier#000118448|FRANCE|12368411|Manufacturer#1|IsUx9h4zQ frTbFHmUemrFQSx|16-978-504-3922|ly express instructions sleep quietly besides the deposits. final instruc
|
||||
9978.10|Supplier#000485455|ROMANIA|17485454|Manufacturer#2|zTlXQ,tRmUn40Vv|29-315-378-1870|nts cajole furiously with the slowly special att
|
||||
9977.85|Supplier#000385307|UNITED KINGDOM|18635252|Manufacturer#2|qo5ndgKc6E4C|33-105-512-8982| accounts boost daringly about the special asymptotes. furiously quick requests boo
|
||||
9977.78|Supplier#000558710|RUSSIA|3308706|Manufacturer#2|QSVlFamsnyUA1lVIm9lC7kFbyp08l MKvECdZU|32-190-876-7346|structions-- express, careful notornis use accounts. carefully sp
|
||||
9977.78|Supplier#000558710|RUSSIA|13058683|Manufacturer#2|QSVlFamsnyUA1lVIm9lC7kFbyp08l MKvECdZU|32-190-876-7346|structions-- express, careful notornis use accounts. carefully sp
|
||||
9977.12|Supplier#000218385|UNITED KINGDOM|2468378|Manufacturer#1|0nOUmiOvuAacnMGUKV0Lf4T31C4yTwy G|33-681-192-6225|kly foxes. blithely ironic accounts haggle furiously. slyly final decoys according to the express
|
||||
9977.06|Supplier#000175556|ROMANIA|16175555|Manufacturer#4|bDl Hs,GGVtayIB5lDB,QpWDURB,7GHa|29-765-974-1131|riously carefully careful grouches. pai
|
||||
9976.15|Supplier#000249831|ROMANIA|3249830|Manufacturer#3|lEs5ux7FADoZsnUk62VYcI9YiwkX,TskI|29-187-368-9234|into beans dazzle carefully. final ins
|
||||
9975.74|Supplier#000846320|RUSSIA|8096295|Manufacturer#4|,ZwPdKJX1qmMnOQN|32-487-239-6035|furiously express ideas sleep slyly requests. acc
|
||||
9975.69|Supplier#000378812|FRANCE|15628766|Manufacturer#1|tQ4eGlGNnY0pkYNRVPQ498bsjnr7|16-867-261-3212|for the blithely unusual accounts are slyly even foxes. bold, express accoun
|
||||
9975.67|Supplier#000634390|ROMANIA|13134363|Manufacturer#1|zHDCa7MaLJ|29-665-426-1647|ic, express frets haggle q
|
||||
9975.53|Supplier#000310136|ROMANIA|10810115|Manufacturer#5|VNWONA5Sr B|29-977-903-6199|after the ironic pinto beans sleep about the furiously fi
|
||||
|
11
external/duckdb/extension/tpch/dbgen/answers/sf100/q03.csv
vendored
Normal file
11
external/duckdb/extension/tpch/dbgen/answers/sf100/q03.csv
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
l_orderkey|revenue|o_orderdate|o_shippriority
|
||||
249739810|492136.8537|1995-02-28|0
|
||||
165214338|485645.5293|1995-03-09|0
|
||||
507274210|485256.2467|1995-03-10|0
|
||||
202071367|474746.4068|1995-03-12|0
|
||||
37307463|474325.1938|1995-02-06|0
|
||||
461984355|468002.5274|1995-03-13|0
|
||||
100810368|467932.7645|1995-02-28|0
|
||||
74015523|467786.8027|1995-03-14|0
|
||||
402772582|463367.0665|1995-03-10|0
|
||||
367111712|462559.3977|1995-03-01|0
|
||||
|
6
external/duckdb/extension/tpch/dbgen/answers/sf100/q04.csv
vendored
Normal file
6
external/duckdb/extension/tpch/dbgen/answers/sf100/q04.csv
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
o_orderpriority|order_count
|
||||
1-URGENT|1051801
|
||||
2-HIGH|1051366
|
||||
3-MEDIUM|1051587
|
||||
4-NOT SPECIFIED|1050950
|
||||
5-LOW|1051725
|
||||
|
6
external/duckdb/extension/tpch/dbgen/answers/sf100/q05.csv
vendored
Normal file
6
external/duckdb/extension/tpch/dbgen/answers/sf100/q05.csv
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
n_name|revenue
|
||||
VIETNAM|5310749966.8670
|
||||
INDIA|5296094837.7503
|
||||
JAPAN|5282184528.8254
|
||||
CHINA|5270934901.5602
|
||||
INDONESIA|5270340980.4608
|
||||
|
2
external/duckdb/extension/tpch/dbgen/answers/sf100/q06.csv
vendored
Normal file
2
external/duckdb/extension/tpch/dbgen/answers/sf100/q06.csv
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
revenue
|
||||
12330426888.4637
|
||||
|
5
external/duckdb/extension/tpch/dbgen/answers/sf100/q07.csv
vendored
Normal file
5
external/duckdb/extension/tpch/dbgen/answers/sf100/q07.csv
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
supp_nation|cust_nation|l_year|revenue
|
||||
FRANCE|GERMANY|1995|5296106289.7407
|
||||
FRANCE|GERMANY|1996|5313955237.5650
|
||||
GERMANY|FRANCE|1995|5286060012.2108
|
||||
GERMANY|FRANCE|1996|5324729138.8922
|
||||
|
3
external/duckdb/extension/tpch/dbgen/answers/sf100/q08.csv
vendored
Normal file
3
external/duckdb/extension/tpch/dbgen/answers/sf100/q08.csv
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
o_year|mkt_share
|
||||
1995|0.039535108776109315
|
||||
1996|0.03897424492526502
|
||||
|
176
external/duckdb/extension/tpch/dbgen/answers/sf100/q09.csv
vendored
Normal file
176
external/duckdb/extension/tpch/dbgen/answers/sf100/q09.csv
vendored
Normal file
@@ -0,0 +1,176 @@
|
||||
nation|o_year|sum_profit
|
||||
ALGERIA|1998|2746388473.8032
|
||||
ALGERIA|1997|4705096214.1934
|
||||
ALGERIA|1996|4691101028.3880
|
||||
ALGERIA|1995|4692240612.2209
|
||||
ALGERIA|1994|4677512644.2049
|
||||
ALGERIA|1993|4684367583.8281
|
||||
ALGERIA|1992|4704266160.0314
|
||||
ARGENTINA|1998|2718513010.8517
|
||||
ARGENTINA|1997|4646318596.6846
|
||||
ARGENTINA|1996|4656102598.0412
|
||||
ARGENTINA|1995|4652753173.2283
|
||||
ARGENTINA|1994|4645991799.5327
|
||||
ARGENTINA|1993|4643401137.5627
|
||||
ARGENTINA|1992|4617848896.7718
|
||||
BRAZIL|1998|2731140677.1163
|
||||
BRAZIL|1997|4675931143.5076
|
||||
BRAZIL|1996|4665397071.9817
|
||||
BRAZIL|1995|4661653435.2637
|
||||
BRAZIL|1994|4664829056.3807
|
||||
BRAZIL|1993|4675246060.5211
|
||||
BRAZIL|1992|4699378591.6169
|
||||
CANADA|1998|2737663014.1858
|
||||
CANADA|1997|4680387035.7293
|
||||
CANADA|1996|4682077548.1279
|
||||
CANADA|1995|4683532053.5255
|
||||
CANADA|1994|4661595473.3244
|
||||
CANADA|1993|4663422610.2709
|
||||
CANADA|1992|4693236211.6702
|
||||
CHINA|1998|2734194369.8060
|
||||
CHINA|1997|4683510835.7253
|
||||
CHINA|1996|4694563430.7904
|
||||
CHINA|1995|4659549932.0340
|
||||
CHINA|1994|4668649255.3147
|
||||
CHINA|1993|4653663845.2788
|
||||
CHINA|1992|4671594192.3921
|
||||
EGYPT|1998|2730076443.1884
|
||||
EGYPT|1997|4641217395.7312
|
||||
EGYPT|1996|4682023903.3341
|
||||
EGYPT|1995|4656985688.9953
|
||||
EGYPT|1994|4639974596.4792
|
||||
EGYPT|1993|4654217487.6341
|
||||
EGYPT|1992|4655508405.6203
|
||||
ETHIOPIA|1998|2771891798.5626
|
||||
ETHIOPIA|1997|4691462902.6513
|
||||
ETHIOPIA|1996|4699807893.8519
|
||||
ETHIOPIA|1995|4712019051.0500
|
||||
ETHIOPIA|1994|4714485895.7143
|
||||
ETHIOPIA|1993|4673334464.7560
|
||||
ETHIOPIA|1992|4709982012.2332
|
||||
FRANCE|1998|2749352687.4774
|
||||
FRANCE|1997|4691958256.2337
|
||||
FRANCE|1996|4720197405.4933
|
||||
FRANCE|1995|4702056754.2862
|
||||
FRANCE|1994|4701239088.1534
|
||||
FRANCE|1993|4712310290.5728
|
||||
FRANCE|1992|4706154746.0950
|
||||
GERMANY|1998|2767125834.8583
|
||||
GERMANY|1997|4703923545.6778
|
||||
GERMANY|1996|4690487560.3747
|
||||
GERMANY|1995|4686747664.0253
|
||||
GERMANY|1994|4660352911.1835
|
||||
GERMANY|1993|4692160055.6115
|
||||
GERMANY|1992|4691498075.8817
|
||||
INDIA|1998|2732579085.7320
|
||||
INDIA|1997|4678477185.9828
|
||||
INDIA|1996|4673866490.2673
|
||||
INDIA|1995|4674959076.8220
|
||||
INDIA|1994|4681827178.3883
|
||||
INDIA|1993|4643481746.8153
|
||||
INDIA|1992|4665882504.0580
|
||||
INDONESIA|1998|2745112789.9308
|
||||
INDONESIA|1997|4665596134.6372
|
||||
INDONESIA|1996|4669667677.0694
|
||||
INDONESIA|1995|4667166725.6425
|
||||
INDONESIA|1994|4662762228.6715
|
||||
INDONESIA|1993|4656778134.1717
|
||||
INDONESIA|1992|4670973296.6516
|
||||
IRAN|1998|2723216170.3955
|
||||
IRAN|1997|4609684248.8494
|
||||
IRAN|1996|4628753160.9335
|
||||
IRAN|1995|4627120996.2797
|
||||
IRAN|1994|4608487551.0284
|
||||
IRAN|1993|4620764336.3543
|
||||
IRAN|1992|4627902203.8205
|
||||
IRAQ|1998|2740906684.5899
|
||||
IRAQ|1997|4666298134.8121
|
||||
IRAQ|1996|4684322817.7602
|
||||
IRAQ|1995|4653983196.7067
|
||||
IRAQ|1994|4683335111.0202
|
||||
IRAQ|1993|4667160512.2664
|
||||
IRAQ|1992|4678315491.6055
|
||||
JAPAN|1998|2724504496.6036
|
||||
JAPAN|1997|4609764983.8460
|
||||
JAPAN|1996|4650986737.2104
|
||||
JAPAN|1995|4663812104.3333
|
||||
JAPAN|1994|4633301980.7018
|
||||
JAPAN|1993|4638916610.4736
|
||||
JAPAN|1992|4656081490.0799
|
||||
JORDAN|1998|2742880098.5775
|
||||
JORDAN|1997|4672752862.4339
|
||||
JORDAN|1996|4667670128.2117
|
||||
JORDAN|1995|4651272615.6814
|
||||
JORDAN|1994|4670362946.3448
|
||||
JORDAN|1993|4673339129.9122
|
||||
JORDAN|1992|4675813230.0285
|
||||
KENYA|1998|2717580811.0000
|
||||
KENYA|1997|4606427219.5743
|
||||
KENYA|1996|4628365122.1309
|
||||
KENYA|1995|4611166905.2203
|
||||
KENYA|1994|4616660205.3054
|
||||
KENYA|1993|4629037306.5682
|
||||
KENYA|1992|4635940424.6568
|
||||
MOROCCO|1998|2728973692.6920
|
||||
MOROCCO|1997|4677385007.6678
|
||||
MOROCCO|1996|4691138516.3593
|
||||
MOROCCO|1995|4672866595.7418
|
||||
MOROCCO|1994|4679363707.8996
|
||||
MOROCCO|1993|4657343605.4867
|
||||
MOROCCO|1992|4673293158.1836
|
||||
MOZAMBIQUE|1998|2746870372.9866
|
||||
MOZAMBIQUE|1997|4657797818.0251
|
||||
MOZAMBIQUE|1996|4680907763.2698
|
||||
MOZAMBIQUE|1995|4679365111.6934
|
||||
MOZAMBIQUE|1994|4650089862.9296
|
||||
MOZAMBIQUE|1993|4674781658.7232
|
||||
MOZAMBIQUE|1992|4703066893.3666
|
||||
PERU|1998|2701947354.7482
|
||||
PERU|1997|4623755865.6737
|
||||
PERU|1996|4653145387.6256
|
||||
PERU|1995|4649971644.3930
|
||||
PERU|1994|4640145803.9750
|
||||
PERU|1993|4630471111.0602
|
||||
PERU|1992|4629977353.5552
|
||||
ROMANIA|1998|2730185251.6769
|
||||
ROMANIA|1997|4662919818.6774
|
||||
ROMANIA|1996|4692623447.6039
|
||||
ROMANIA|1995|4683093538.1776
|
||||
ROMANIA|1994|4656908200.8979
|
||||
ROMANIA|1993|4673109064.6419
|
||||
ROMANIA|1992|4659501236.8597
|
||||
RUSSIA|1998|2738455915.5436
|
||||
RUSSIA|1997|4701455238.0605
|
||||
RUSSIA|1996|4694648504.0344
|
||||
RUSSIA|1995|4674020866.8064
|
||||
RUSSIA|1994|4687989534.5975
|
||||
RUSSIA|1993|4680591337.8529
|
||||
RUSSIA|1992|4684865871.5704
|
||||
SAUDI ARABIA|1998|2722192493.2115
|
||||
SAUDI ARABIA|1997|4646872112.0183
|
||||
SAUDI ARABIA|1996|4679097125.4999
|
||||
SAUDI ARABIA|1995|4659365308.2421
|
||||
SAUDI ARABIA|1994|4668096847.3099
|
||||
SAUDI ARABIA|1993|4647885741.9225
|
||||
SAUDI ARABIA|1992|4665645732.0885
|
||||
UNITED KINGDOM|1998|2757252921.4935
|
||||
UNITED KINGDOM|1997|4687915843.3827
|
||||
UNITED KINGDOM|1996|4725596237.9521
|
||||
UNITED KINGDOM|1995|4692146767.0496
|
||||
UNITED KINGDOM|1994|4717398081.8118
|
||||
UNITED KINGDOM|1993|4694183885.2941
|
||||
UNITED KINGDOM|1992|4722609721.7765
|
||||
UNITED STATES|1998|2744344335.0383
|
||||
UNITED STATES|1997|4652698592.5866
|
||||
UNITED STATES|1996|4670553955.7057
|
||||
UNITED STATES|1995|4659218769.7598
|
||||
UNITED STATES|1994|4671044724.0807
|
||||
UNITED STATES|1993|4680519402.4766
|
||||
UNITED STATES|1992|4707714157.3208
|
||||
VIETNAM|1998|2741387136.2468
|
||||
VIETNAM|1997|4661928954.8541
|
||||
VIETNAM|1996|4690535970.8003
|
||||
VIETNAM|1995|4692078285.1287
|
||||
VIETNAM|1994|4705541885.2493
|
||||
VIETNAM|1993|4708733491.5609
|
||||
VIETNAM|1992|4681498238.7580
|
||||
|
21
external/duckdb/extension/tpch/dbgen/answers/sf100/q10.csv
vendored
Normal file
21
external/duckdb/extension/tpch/dbgen/answers/sf100/q10.csv
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
c_custkey|c_name|revenue|c_acctbal|n_name|c_address|c_phone|c_comment
|
||||
7450894|Customer#007450894|936768.8469|927.18|ARGENTINA|Kub3yOhSWLuc MTLe8owZ spwzrOvVlX8WQJwuE|11-833-256-7879|the furiously unusual foxes! platelets nag boldly above the quickly bold accounts. furiously
|
||||
9739771|Customer#009739771|842966.5285|1286.48|JORDAN|zoTOSQ1TrpuUDmCk9f|23-281-450-4794|boost quickly. never dogged instructions boost quickly ironic requests. pinto beans sleep carefully across
|
||||
4571035|Customer#004571035|838705.6168|6704.13|UNITED KINGDOM|Z,inL0muZQK8AiEm3qme9CBjuYIO0JTfH|33-138-285-3770|ecial theodolites wake slyly across the never silent ideas. final foxes around the carefully regular
|
||||
637855|Customer#000637855|812034.3778|2674.86|MOZAMBIQUE|BV7zGwFIOkc|26-852-120-2850|ges. express, special dolphins cajole around the slyly regular accounts. fu
|
||||
10781974|Customer#010781974|801735.5176|5079.77|ROMANIA|pwYB0N97ySprr4vi5UZ382q0U8WCPp|29-651-722-6239|sits haggle evenly. express packages sl
|
||||
11361613|Customer#011361613|800558.4337|4644.71|INDONESIA|I4gKJjA4BV6syYz|19-344-539-9187|l, special dependencies. carefully regular instructions use about the carefully bold accounts. pending accou
|
||||
1259743|Customer#001259743|793274.7846|2592.74|ETHIOPIA|35Mr0In QWvDgyLt8UYPECuBEllYNShLI|15-733-636-6732|y express requests cajole furiously alongside of the carefull
|
||||
5154136|Customer#005154136|787191.1959|1028.97|MOROCCO|30OHoO9k5s,HrKS3a6k9fLVsXa|25-841-379-9394|affix carefully blithely unusual requests. unusual ideas b
|
||||
14986552|Customer#014986552|781645.8638|2678.94|ARGENTINA|zFVtpT4Zo,|11-671-762-3613|s. packages haggle carefully at the ironic braids. blithely regular pinto beans cajole slyly.
|
||||
2905816|Customer#002905816|778729.4414|5085.53|UNITED STATES|QOfcBYPRbq|34-217-584-5820|s under the regular sheaves sleep blithely final platelets. dolphins sleep across the stealthily special ideas. furi
|
||||
6184141|Customer#006184141|772721.0973|5901.88|BRAZIL|3CxIFtsmlpESaUQzurlTV|12-563-743-4211|eodolites according to the carefully final accounts use carefully slyly ironic instructions. b
|
||||
7852024|Customer#007852024|769688.6616|1197.57|INDIA|ZrF1h1tpKbH9j5cVtnD3NMJFtE1my05S86WiWU09|18-141-580-3886| blithely ironic notornis cajole according to the quickly even requests! quickly re
|
||||
7183231|Customer#007183231|768455.8796|-683.01|INDIA|Ds83MjPovIdahJd|18-270-127-8463|ial pinto beans among the furiously special deposits haggle quickly after the ironic, final deposits. regular theodo
|
||||
1627651|Customer#001627651|768300.3006|3059.82|MOROCCO|PBXh8ZQR2xTOpgQo 7FBfI EZGZ BnD|25-732-202-4862|ts are alongside of the requests. carefully regular accounts above the ironic deposits integrate slyly pendi
|
||||
13624771|Customer#013624771|767856.1562|-168.68|IRAN| uekVASYAlR1fqAFoJwcgndQAF|20-919-886-5399|unts wake furiously above the carefully special instruction
|
||||
13896424|Customer#013896424|760957.6214|3798.91|INDONESIA|PzqffgfQ7p|19-494-837-4503| the quickly furious deposits. packages after the furiously unusual instructions hang slyly iron
|
||||
4926817|Customer#004926817|758756.8533|5462.22|RUSSIA|4RbwBrzz6eHCI|32-610-751-1595|against the furiously regular ideas. carefully e
|
||||
319150|Customer#000319150|757235.8949|3257.68|IRAN|GZg5Tg1XIJUOKHxb6C,I4h7PrwFiwitvn|20-837-276-7259|deposits. regular accounts nag. slyly ironic idea
|
||||
5894188|Customer#005894188|756482.0641|3062.00|BRAZIL|,b 3YYdbkOsSZdSEekTT,Dk8dljn 4aUkzEE9M3|12-372-345-6045|slyly regular pinto beans integrate s
|
||||
3387028|Customer#003387028|755937.5757|3726.64|ETHIOPIA|IWj4CTUBet5tE|15-880-219-8399|ests sleep furiously among the furiously regular p
|
||||
|
1
external/duckdb/extension/tpch/dbgen/answers/sf100/q11.csv
vendored
Normal file
1
external/duckdb/extension/tpch/dbgen/answers/sf100/q11.csv
vendored
Normal file
@@ -0,0 +1 @@
|
||||
ps_partkey|value
|
||||
|
3
external/duckdb/extension/tpch/dbgen/answers/sf100/q12.csv
vendored
Normal file
3
external/duckdb/extension/tpch/dbgen/answers/sf100/q12.csv
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
l_shipmode|high_line_count|low_line_count
|
||||
MAIL|623115|934713
|
||||
SHIP|622979|934534
|
||||
|
46
external/duckdb/extension/tpch/dbgen/answers/sf100/q13.csv
vendored
Normal file
46
external/duckdb/extension/tpch/dbgen/answers/sf100/q13.csv
vendored
Normal file
@@ -0,0 +1,46 @@
|
||||
c_count|custdist
|
||||
0|5000179
|
||||
10|677129
|
||||
9|663272
|
||||
11|632721
|
||||
8|590190
|
||||
12|564376
|
||||
13|493876
|
||||
19|476012
|
||||
18|468917
|
||||
20|466214
|
||||
7|463524
|
||||
17|450162
|
||||
14|444360
|
||||
21|435413
|
||||
16|430482
|
||||
15|424816
|
||||
22|388554
|
||||
23|331104
|
||||
6|317746
|
||||
24|270153
|
||||
25|210444
|
||||
5|186005
|
||||
26|157228
|
||||
27|112791
|
||||
4|89724
|
||||
28|77613
|
||||
29|51770
|
||||
3|34604
|
||||
30|32654
|
||||
31|19981
|
||||
32|11764
|
||||
2|9920
|
||||
33|6711
|
||||
34|3606
|
||||
35|2015
|
||||
1|1858
|
||||
36|1063
|
||||
37|563
|
||||
38|244
|
||||
39|133
|
||||
40|62
|
||||
41|23
|
||||
42|18
|
||||
43|5
|
||||
44|1
|
||||
|
2
external/duckdb/extension/tpch/dbgen/answers/sf100/q14.csv
vendored
Normal file
2
external/duckdb/extension/tpch/dbgen/answers/sf100/q14.csv
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
promo_revenue
|
||||
16.640357433254103
|
||||
|
2
external/duckdb/extension/tpch/dbgen/answers/sf100/q15.csv
vendored
Normal file
2
external/duckdb/extension/tpch/dbgen/answers/sf100/q15.csv
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
s_suppkey|s_name|s_address|s_phone|total_revenue
|
||||
8831|Supplier#000008831|Iwi3KgIdN84qDIVccoeA,NG|17-307-245-8592|2385908.0563
|
||||
|
27841
external/duckdb/extension/tpch/dbgen/answers/sf100/q16.csv
vendored
Normal file
27841
external/duckdb/extension/tpch/dbgen/answers/sf100/q16.csv
vendored
Normal file
File diff suppressed because it is too large
Load Diff
2
external/duckdb/extension/tpch/dbgen/answers/sf100/q17.csv
vendored
Normal file
2
external/duckdb/extension/tpch/dbgen/answers/sf100/q17.csv
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
avg_yearly
|
||||
32087018.99857143
|
||||
|
101
external/duckdb/extension/tpch/dbgen/answers/sf100/q18.csv
vendored
Normal file
101
external/duckdb/extension/tpch/dbgen/answers/sf100/q18.csv
vendored
Normal file
@@ -0,0 +1,101 @@
|
||||
c_name|c_custkey|o_orderkey|o_orderdate|o_totalprice|sum(l_quantity)
|
||||
Customer#011472112|11472112|458304292|1998-02-05|591036.15|322.00
|
||||
Customer#012090925|12090925|501322081|1995-02-04|586945.44|319.00
|
||||
Customer#001392379|1392379|332381222|1998-01-24|575600.00|311.00
|
||||
Customer#013458721|13458721|333307747|1997-12-19|572334.88|319.00
|
||||
Customer#008643083|8643083|84927619|1997-06-29|571417.48|316.00
|
||||
Customer#010543705|10543705|163142919|1996-06-10|569798.10|313.00
|
||||
Customer#000026377|26377|586594688|1992-04-14|569044.84|311.00
|
||||
Customer#005914657|5914657|55799200|1996-02-11|568754.48|327.00
|
||||
Customer#011461310|11461310|20662370|1992-07-22|566353.20|315.00
|
||||
Customer#007682894|7682894|532736640|1993-07-22|563532.16|316.00
|
||||
Customer#012070685|12070685|34201984|1997-06-18|563492.49|322.00
|
||||
Customer#012878113|12878113|42290181|1997-11-26|563479.57|318.00
|
||||
Customer#000506836|506836|116567399|1992-03-21|563342.71|319.00
|
||||
Customer#012848143|12848143|501771233|1994-12-06|562642.03|317.00
|
||||
Customer#003493022|3493022|182898470|1996-01-09|561296.06|318.00
|
||||
Customer#013083751|13083751|28077922|1996-10-27|560893.88|319.00
|
||||
Customer#006580315|6580315|343593507|1994-05-20|560058.60|321.00
|
||||
Customer#009427249|9427249|48881602|1993-09-19|559502.82|327.00
|
||||
Customer#009995401|9995401|530897159|1994-05-02|558771.77|305.00
|
||||
Customer#006094567|6094567|156159680|1994-11-15|558037.12|308.00
|
||||
Customer#006594658|6594658|555833473|1997-08-01|557961.99|324.00
|
||||
Customer#005925541|5925541|446215044|1992-05-13|556993.03|318.00
|
||||
Customer#007010650|7010650|587222276|1993-12-17|555946.71|329.00
|
||||
Customer#008211575|8211575|218305350|1992-12-19|555691.15|316.00
|
||||
Customer#005523215|5523215|499594150|1997-12-30|552295.59|322.00
|
||||
Customer#003592226|3592226|94936672|1992-02-28|551850.29|307.00
|
||||
Customer#006048598|6048598|45897379|1994-05-30|550195.48|318.00
|
||||
Customer#013889867|13889867|322196069|1992-12-24|549996.06|313.00
|
||||
Customer#007847146|7847146|75799361|1994-06-22|549769.03|307.00
|
||||
Customer#002538608|2538608|406952547|1992-04-14|549380.73|304.00
|
||||
Customer#011113726|11113726|346088583|1996-02-21|548790.02|303.00
|
||||
Customer#003262783|3262783|327814241|1997-04-16|548355.89|319.00
|
||||
Customer#002099413|2099413|507968289|1993-01-23|547809.74|316.00
|
||||
Customer#009950764|9950764|442334435|1996-10-07|547526.61|308.00
|
||||
Customer#012123581|12123581|496277122|1995-03-13|547335.02|312.00
|
||||
Customer#005800261|5800261|493616454|1997-01-11|547151.89|314.00
|
||||
Customer#002395564|2395564|584277191|1993-10-14|546290.18|311.00
|
||||
Customer#001382375|1382375|43491654|1992-05-20|546035.62|308.00
|
||||
Customer#001359841|1359841|373555077|1995-05-08|545367.48|304.00
|
||||
Customer#000569440|569440|119020930|1995-02-19|545201.16|309.00
|
||||
Customer#012179552|12179552|157723879|1992-01-06|545008.93|320.00
|
||||
Customer#000328568|328568|584293472|1997-02-04|544997.41|317.00
|
||||
Customer#005098117|5098117|82043264|1996-04-15|544838.33|330.00
|
||||
Customer#012375202|12375202|272622276|1995-08-13|543957.13|301.00
|
||||
Customer#006394964|6394964|410876964|1994-11-15|543654.37|324.00
|
||||
Customer#012130760|12130760|152975303|1992-11-23|543496.47|311.00
|
||||
Customer#005021956|5021956|163897538|1992-05-10|543411.84|315.00
|
||||
Customer#014745380|14745380|323533249|1993-03-31|543411.82|322.00
|
||||
Customer#005387083|5387083|394137797|1993-09-14|542890.62|308.00
|
||||
Customer#001070318|1070318|91475014|1996-11-15|542874.97|314.00
|
||||
Customer#011639476|11639476|512860422|1995-11-20|542855.00|311.00
|
||||
Customer#009557132|9557132|80293413|1992-06-12|542680.80|305.00
|
||||
Customer#012639745|12639745|215706726|1992-10-29|541693.09|305.00
|
||||
Customer#010933264|10933264|505312545|1995-07-19|541378.70|309.00
|
||||
Customer#006633514|6633514|561405959|1994-09-10|541176.68|308.00
|
||||
Customer#008668609|8668609|19730208|1994-01-24|540531.95|305.00
|
||||
Customer#000793051|793051|103963585|1996-10-27|540445.27|313.00
|
||||
Customer#000194932|194932|233298977|1997-11-16|540319.71|304.00
|
||||
Customer#007585013|7585013|41325120|1997-05-02|540248.88|309.00
|
||||
Customer#005034994|5034994|571000834|1997-08-02|540244.15|303.00
|
||||
Customer#013646452|13646452|109414535|1997-01-09|539803.25|302.00
|
||||
Customer#010763563|10763563|575451169|1994-01-18|539403.56|329.00
|
||||
Customer#003878665|3878665|465165376|1995-08-03|539331.83|312.00
|
||||
Customer#009475150|9475150|486502979|1995-01-21|539173.83|308.00
|
||||
Customer#007359265|7359265|402919200|1997-03-14|539028.84|312.00
|
||||
Customer#009274702|9274702|545970215|1997-12-17|538976.86|303.00
|
||||
Customer#008402254|8402254|539392967|1993-02-23|538886.31|333.00
|
||||
Customer#008654869|8654869|100176839|1993-04-12|538846.61|317.00
|
||||
Customer#007498450|7498450|140933856|1993-04-16|538585.17|309.00
|
||||
Customer#001291604|1291604|220248583|1995-08-18|538171.18|304.00
|
||||
Customer#005159660|5159660|160674945|1996-05-16|537771.10|310.00
|
||||
Customer#014286853|14286853|423877508|1995-03-02|536949.18|319.00
|
||||
Customer#008779822|8779822|211965092|1996-07-18|536768.43|314.00
|
||||
Customer#004955200|4955200|510010278|1996-01-08|536693.57|302.00
|
||||
Customer#008208034|8208034|446989058|1993-07-12|536601.61|315.00
|
||||
Customer#009666952|9666952|475794275|1994-09-23|536427.97|322.00
|
||||
Customer#011930665|11930665|107950688|1995-08-05|536328.78|309.00
|
||||
Customer#014831182|14831182|92086567|1996-06-12|536294.92|322.00
|
||||
Customer#009515017|9515017|462317029|1997-01-28|535876.92|308.00
|
||||
Customer#008795228|8795228|275406304|1994-12-19|535829.88|304.00
|
||||
Customer#013677323|13677323|387783079|1992-04-22|535504.63|316.00
|
||||
Customer#004965692|4965692|250733185|1994-06-12|535482.20|306.00
|
||||
Customer#004663856|4663856|159914310|1996-09-12|535322.28|315.00
|
||||
Customer#014560954|14560954|420830819|1994-03-05|534940.24|301.00
|
||||
Customer#003555572|3555572|190167361|1994-08-29|534477.19|304.00
|
||||
Customer#000299162|299162|303098309|1996-01-28|534421.58|315.00
|
||||
Customer#005747806|5747806|540886884|1994-04-14|534288.51|314.00
|
||||
Customer#013094119|13094119|111128577|1995-05-09|534239.89|316.00
|
||||
Customer#008259454|8259454|546232737|1997-12-07|534055.44|303.00
|
||||
Customer#000090529|90529|112311041|1998-01-22|534035.86|307.00
|
||||
Customer#004938865|4938865|595346338|1996-08-18|533883.75|310.00
|
||||
Customer#012726752|12726752|92511430|1995-03-06|533441.05|318.00
|
||||
Customer#009638569|9638569|16783360|1998-02-16|533372.62|308.00
|
||||
Customer#000437614|437614|569537412|1992-01-07|533305.85|305.00
|
||||
Customer#011219830|11219830|156065860|1996-07-03|533119.17|325.00
|
||||
Customer#005060768|5060768|255829888|1997-03-18|533054.97|308.00
|
||||
Customer#014112568|14112568|280056096|1997-01-30|532881.87|313.00
|
||||
Customer#012373496|12373496|61135843|1993-01-30|532734.68|303.00
|
||||
Customer#007910675|7910675|158520577|1992-02-29|532689.01|304.00
|
||||
Customer#013106491|13106491|88925410|1995-01-10|532631.76|310.00
|
||||
|
2
external/duckdb/extension/tpch/dbgen/answers/sf100/q19.csv
vendored
Normal file
2
external/duckdb/extension/tpch/dbgen/answers/sf100/q19.csv
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
revenue
|
||||
298937728.8820
|
||||
|
17972
external/duckdb/extension/tpch/dbgen/answers/sf100/q20.csv
vendored
Normal file
17972
external/duckdb/extension/tpch/dbgen/answers/sf100/q20.csv
vendored
Normal file
File diff suppressed because it is too large
Load Diff
101
external/duckdb/extension/tpch/dbgen/answers/sf100/q21.csv
vendored
Normal file
101
external/duckdb/extension/tpch/dbgen/answers/sf100/q21.csv
vendored
Normal file
@@ -0,0 +1,101 @@
|
||||
s_name|numwait
|
||||
Supplier#000747754|26
|
||||
Supplier#000458746|25
|
||||
Supplier#000571158|25
|
||||
Supplier#000107007|24
|
||||
Supplier#000410726|24
|
||||
Supplier#000084585|23
|
||||
Supplier#000112694|23
|
||||
Supplier#000142113|23
|
||||
Supplier#000152064|23
|
||||
Supplier#000209763|23
|
||||
Supplier#000388227|23
|
||||
Supplier#000407925|23
|
||||
Supplier#000560459|23
|
||||
Supplier#000694752|23
|
||||
Supplier#000703020|23
|
||||
Supplier#000729149|23
|
||||
Supplier#000891339|23
|
||||
Supplier#000975089|23
|
||||
Supplier#000000380|22
|
||||
Supplier#000035755|22
|
||||
Supplier#000164253|22
|
||||
Supplier#000297749|22
|
||||
Supplier#000345040|22
|
||||
Supplier#000377932|22
|
||||
Supplier#000408542|22
|
||||
Supplier#000418032|22
|
||||
Supplier#000442372|22
|
||||
Supplier#000511122|22
|
||||
Supplier#000625330|22
|
||||
Supplier#000632192|22
|
||||
Supplier#000818929|22
|
||||
Supplier#000854905|22
|
||||
Supplier#000904387|22
|
||||
Supplier#000026807|21
|
||||
Supplier#000040020|21
|
||||
Supplier#000045516|21
|
||||
Supplier#000107055|21
|
||||
Supplier#000114816|21
|
||||
Supplier#000115320|21
|
||||
Supplier#000138108|21
|
||||
Supplier#000217006|21
|
||||
Supplier#000218071|21
|
||||
Supplier#000218308|21
|
||||
Supplier#000230746|21
|
||||
Supplier#000248169|21
|
||||
Supplier#000296769|21
|
||||
Supplier#000321127|21
|
||||
Supplier#000381528|21
|
||||
Supplier#000429550|21
|
||||
Supplier#000464989|21
|
||||
Supplier#000523861|21
|
||||
Supplier#000735189|21
|
||||
Supplier#000749856|21
|
||||
Supplier#000797502|21
|
||||
Supplier#000846710|21
|
||||
Supplier#000852316|21
|
||||
Supplier#000876643|21
|
||||
Supplier#000940195|21
|
||||
Supplier#000977626|21
|
||||
Supplier#000004009|20
|
||||
Supplier#000075957|20
|
||||
Supplier#000100362|20
|
||||
Supplier#000114819|20
|
||||
Supplier#000149956|20
|
||||
Supplier#000162442|20
|
||||
Supplier#000168720|20
|
||||
Supplier#000187595|20
|
||||
Supplier#000194735|20
|
||||
Supplier#000218315|20
|
||||
Supplier#000218879|20
|
||||
Supplier#000227225|20
|
||||
Supplier#000231968|20
|
||||
Supplier#000250950|20
|
||||
Supplier#000258760|20
|
||||
Supplier#000274376|20
|
||||
Supplier#000286235|20
|
||||
Supplier#000318315|20
|
||||
Supplier#000323593|20
|
||||
Supplier#000326453|20
|
||||
Supplier#000343051|20
|
||||
Supplier#000349163|20
|
||||
Supplier#000372217|20
|
||||
Supplier#000379187|20
|
||||
Supplier#000392259|20
|
||||
Supplier#000398512|20
|
||||
Supplier#000414004|20
|
||||
Supplier#000423101|20
|
||||
Supplier#000435864|20
|
||||
Supplier#000444400|20
|
||||
Supplier#000444741|20
|
||||
Supplier#000478679|20
|
||||
Supplier#000484714|20
|
||||
Supplier#000516332|20
|
||||
Supplier#000520712|20
|
||||
Supplier#000523584|20
|
||||
Supplier#000523677|20
|
||||
Supplier#000547932|20
|
||||
Supplier#000559301|20
|
||||
Supplier#000559552|20
|
||||
Supplier#000599009|20
|
||||
|
8
external/duckdb/extension/tpch/dbgen/answers/sf100/q22.csv
vendored
Normal file
8
external/duckdb/extension/tpch/dbgen/answers/sf100/q22.csv
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
cntrycode|numcust|totacctbal
|
||||
13|90748|679530260.80
|
||||
17|91314|685030261.91
|
||||
18|91293|684593250.42
|
||||
23|90359|677680422.77
|
||||
29|91124|683683023.65
|
||||
30|91358|685118386.83
|
||||
31|90553|678671645.35
|
||||
|
453
external/duckdb/extension/tpch/dbgen/bm_utils.cpp
vendored
Normal file
453
external/duckdb/extension/tpch/dbgen/bm_utils.cpp
vendored
Normal file
@@ -0,0 +1,453 @@
|
||||
/*
|
||||
* Copyright owned by the Transaction Processing Performance Council.
|
||||
*
|
||||
* A copy of the license is included under extension/tpch/dbgen/LICENSE
|
||||
* in this repository.
|
||||
*
|
||||
* You may not use this file except in compliance with the License.
|
||||
*
|
||||
* THE TPC SOFTWARE IS AVAILABLE WITHOUT CHARGE FROM TPC.
|
||||
*/
|
||||
/*
|
||||
*
|
||||
* Various routines that handle distributions, value selections and
|
||||
* seed value management for the DSS benchmark. Current functions:
|
||||
* tpch_env_config -- set config vars with optional environment override
|
||||
* yes_no -- ask simple yes/no question and return boolean result
|
||||
* tpch_a_rnd(min, max) -- random alphanumeric within length range
|
||||
* pick_str(size, set) -- select a string from the set of size
|
||||
* read_dist(file, name, distribution *) -- read named dist from file
|
||||
* tbl_open(path, mode) -- std fopen with lifenoise
|
||||
* julian(date) -- julian date correction
|
||||
* rowcnt(tbl) -- proper scaling of given table
|
||||
* e_str(set, min, max) -- build an embedded str
|
||||
* agg_str() -- build a string from the named set
|
||||
* dsscasecmp() -- version of strcasecmp()
|
||||
* dssncasecmp() -- version of strncasecmp()
|
||||
* getopt()
|
||||
* set_state() -- initialize the RNG
|
||||
*/
|
||||
|
||||
#include "dbgen/config.h"
|
||||
#include "dbgen/dss.h"
|
||||
|
||||
#include <errno.h>
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include <time.h>
|
||||
#ifdef HP
|
||||
#include <strings.h>
|
||||
#endif /* HP */
|
||||
#include <ctype.h>
|
||||
#include <math.h>
|
||||
#ifndef _POSIX_SOURCE
|
||||
//#include <malloc.h>
|
||||
#endif /* POSIX_SOURCE */
|
||||
#include <fcntl.h>
|
||||
#include <sys/stat.h>
|
||||
#include <sys/types.h>
|
||||
/* Lines added by Chuck McDevitt for WIN32 support */
|
||||
#ifdef WIN32
|
||||
#ifndef _POSIX_
|
||||
#include <io.h>
|
||||
#ifndef S_ISREG
|
||||
#define S_ISREG(m) (((m)&_S_IFMT) == _S_IFREG)
|
||||
#define S_ISFIFO(m) (((m)&_S_IFMT) == _S_IFIFO)
|
||||
#endif
|
||||
#endif
|
||||
#ifndef stat
|
||||
#define stat _stat
|
||||
#endif
|
||||
#ifndef fdopen
|
||||
#define fdopen _fdopen
|
||||
#endif
|
||||
#ifndef open
|
||||
#define open _open
|
||||
#endif
|
||||
#ifndef O_RDONLY
|
||||
#define O_RDONLY _O_RDONLY
|
||||
#endif
|
||||
#ifndef O_WRONLY
|
||||
#define O_WRONLY _O_WRONLY
|
||||
#endif
|
||||
#ifndef O_CREAT
|
||||
#define O_CREAT _O_CREAT
|
||||
#endif
|
||||
#endif
|
||||
/* End of lines added by Chuck McDevitt for WIN32 support */
|
||||
#include "dbgen/dsstypes.h"
|
||||
|
||||
static char alpha_num[65] = "0123456789abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ,";
|
||||
|
||||
#if defined(__STDC__) || defined(__cplusplus)
|
||||
#define PROTO(s) s
|
||||
#else
|
||||
#define PROTO(s) ()
|
||||
#endif
|
||||
|
||||
#ifndef WIN32
|
||||
char *getenv PROTO((const char *name));
|
||||
#endif
|
||||
void usage();
|
||||
void permute_dist(distribution *d, seed_t *seed, DBGenContext *ctx);
|
||||
|
||||
/*
|
||||
* tpch_env_config: look for a environmental variable setting and return its
|
||||
* value; otherwise return the default supplied
|
||||
*/
|
||||
const char *tpch_env_config(const char *var, const char *dflt) {
|
||||
static char *evar;
|
||||
|
||||
if ((evar = getenv(var)) != NULL)
|
||||
return (evar);
|
||||
else
|
||||
return (dflt);
|
||||
}
|
||||
|
||||
/*
|
||||
* return the answer to a yes/no question as a boolean
|
||||
*/
|
||||
long yes_no(char *prompt) {
|
||||
char reply[128];
|
||||
(void)prompt;
|
||||
#ifdef WIN32
|
||||
/* Disable warning about conditional expression is constant */
|
||||
#pragma warning(disable : 4127)
|
||||
#endif
|
||||
|
||||
while (1) {
|
||||
#ifdef WIN32
|
||||
#pragma warning(default : 4127)
|
||||
#endif
|
||||
printf("%s [Y/N]: ", prompt);
|
||||
fgets(reply, 128, stdin);
|
||||
switch (*reply) {
|
||||
case 'y':
|
||||
case 'Y':
|
||||
return (1);
|
||||
case 'n':
|
||||
case 'N':
|
||||
return (0);
|
||||
default:
|
||||
printf("Please answer 'yes' or 'no'.\n");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* generate a random string with length randomly selected in [min, max]
|
||||
* and using the characters in alphanum (currently includes a space
|
||||
* and comma)
|
||||
*/
|
||||
void tpch_a_rnd(int min, int max, seed_t *seed, char *dest) {
|
||||
DSS_HUGE i, len, char_int;
|
||||
|
||||
RANDOM(len, min, max, seed);
|
||||
for (i = 0; i < len; i++) {
|
||||
if (i % 5 == 0)
|
||||
RANDOM(char_int, 0, MAX_LONG, seed);
|
||||
*(dest + i) = alpha_num[char_int & 077];
|
||||
char_int >>= 6;
|
||||
}
|
||||
*(dest + len) = '\0';
|
||||
return;
|
||||
}
|
||||
|
||||
/*
|
||||
* embed a randomly selected member of distribution d in alpha-numeric
|
||||
* noise of a length rendomly selected between min and max at a random
|
||||
* position
|
||||
*/
|
||||
void e_str(distribution *d, int min, int max, seed_t *seed, char *dest) {
|
||||
char strtmp[MAXAGG_LEN + 1];
|
||||
DSS_HUGE loc;
|
||||
int len;
|
||||
|
||||
tpch_a_rnd(min, max, seed, dest);
|
||||
pick_str(d, seed, strtmp);
|
||||
len = (int)strlen(strtmp);
|
||||
RANDOM(loc, 0, ((int)strlen(dest) - 1 - len), seed);
|
||||
memcpy(dest + loc, strtmp, sizeof(char) * len);
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
/*
|
||||
* return the string associate with the LSB of a uniformly selected
|
||||
* long in [1, max] where max is determined by the distribution
|
||||
* being queried
|
||||
*/
|
||||
int pick_str(distribution *s, seed_t *seed, char *target) {
|
||||
long i = 0;
|
||||
DSS_HUGE j;
|
||||
|
||||
RANDOM(j, 1, s->list[s->count - 1].weight, seed);
|
||||
while (s->list[i].weight < j)
|
||||
i++;
|
||||
strcpy(target, s->list[i].text);
|
||||
return (i);
|
||||
}
|
||||
|
||||
/*
|
||||
* unjulian (long date) -- return(date - STARTDATE)
|
||||
*/
|
||||
long unjulian(long date) {
|
||||
int i;
|
||||
long res = 0;
|
||||
|
||||
for (i = STARTDATE / 1000; i < date / 1000; i++)
|
||||
res += 365 + LEAP(i);
|
||||
res += date % 1000 - 1;
|
||||
|
||||
return (res);
|
||||
}
|
||||
|
||||
long julian(long date) {
|
||||
long offset;
|
||||
long result;
|
||||
long yr;
|
||||
long yend;
|
||||
|
||||
offset = date - STARTDATE;
|
||||
result = STARTDATE;
|
||||
|
||||
#ifdef WIN32
|
||||
/* Disable warning about conditional expression is constant */
|
||||
#pragma warning(disable : 4127)
|
||||
#endif
|
||||
|
||||
while (1) {
|
||||
#ifdef WIN32
|
||||
#pragma warning(default : 4127)
|
||||
#endif
|
||||
yr = result / 1000;
|
||||
yend = yr * 1000 + 365 + LEAP(yr);
|
||||
if (result + offset > yend) /* overflow into next year */
|
||||
{
|
||||
offset -= yend - result + 1;
|
||||
result += 1000;
|
||||
continue;
|
||||
} else
|
||||
break;
|
||||
}
|
||||
return (result + offset);
|
||||
}
|
||||
|
||||
#include "dbgen/dists_dss.h"
|
||||
|
||||
static char read_line_into_buffer(char *buffer, size_t bufsiz, const char **src) {
|
||||
size_t count = 0;
|
||||
while (**src && count < bufsiz - 1) {
|
||||
buffer[count++] = **src;
|
||||
if (**src == '\n') {
|
||||
(*src)++;
|
||||
break;
|
||||
}
|
||||
(*src)++;
|
||||
}
|
||||
buffer[count] = '\0';
|
||||
return **src;
|
||||
}
|
||||
|
||||
/*
|
||||
* load a distribution from a flat file into the target structure;
|
||||
* should be rewritten to allow multiple dists in a file
|
||||
*/
|
||||
void read_dist(const char *path, const char *name, distribution *target) {
|
||||
const char *src = dists_dss;
|
||||
char line[256], token[256], *c;
|
||||
long weight, count = 0, name_set = 0;
|
||||
|
||||
while (read_line_into_buffer(line, sizeof(line), &src)) {
|
||||
if ((c = strchr(line, '\n')) != NULL)
|
||||
*c = '\0';
|
||||
if ((c = strchr(line, '#')) != NULL)
|
||||
*c = '\0';
|
||||
if (*line == '\0')
|
||||
continue;
|
||||
|
||||
if (!name_set) {
|
||||
if (dsscasecmp(strtok(line, "\n\t "), "BEGIN"))
|
||||
continue;
|
||||
if (dsscasecmp(strtok(NULL, "\n\t "), name))
|
||||
continue;
|
||||
name_set = 1;
|
||||
continue;
|
||||
} else {
|
||||
if (!dssncasecmp(line, "END", 3)) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
if (sscanf(line, "%[^|]|%ld", token, &weight) != 2)
|
||||
continue;
|
||||
|
||||
if (!dsscasecmp(token, "count")) {
|
||||
target->count = weight;
|
||||
target->list = (set_member *)malloc((size_t)(weight * sizeof(set_member)));
|
||||
MALLOC_CHECK(target->list);
|
||||
target->max = 0;
|
||||
continue;
|
||||
}
|
||||
target->list[count].text = (char *)malloc((size_t)((int)strlen(token) + 1));
|
||||
MALLOC_CHECK(target->list[count].text);
|
||||
strcpy(target->list[count].text, token);
|
||||
target->max += weight;
|
||||
target->list[count].weight = target->max;
|
||||
|
||||
count += 1;
|
||||
} /* while fgets() */
|
||||
|
||||
if (count != target->count) {
|
||||
fprintf(stderr, "Read error on dist '%s'\n", name);
|
||||
exit(1);
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
/*
|
||||
* agg_str(set, count) build an aggregated string from count unique
|
||||
* selections taken from set
|
||||
*/
|
||||
void agg_str(distribution *set, long count, seed_t *seed, char *dest, DBGenContext *ctx) {
|
||||
distribution *d;
|
||||
int i;
|
||||
|
||||
d = set;
|
||||
*dest = '\0';
|
||||
|
||||
permute_dist(d, seed, ctx);
|
||||
for (i = 0; i < count; i++) {
|
||||
strcat(dest, DIST_MEMBER(set, ctx->permute[i]));
|
||||
strcat(dest, " ");
|
||||
}
|
||||
*(dest + (int)strlen(dest) - 1) = '\0';
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
long dssncasecmp(const char *s1, const char *s2, int n) {
|
||||
for (; n > 0; ++s1, ++s2, --n)
|
||||
if (tolower(*s1) != tolower(*s2))
|
||||
return ((tolower(*s1) < tolower(*s2)) ? -1 : 1);
|
||||
else if (*s1 == '\0')
|
||||
return (0);
|
||||
return (0);
|
||||
}
|
||||
|
||||
long dsscasecmp(const char *s1, const char *s2) {
|
||||
for (; tolower(*s1) == tolower(*s2); ++s1, ++s2)
|
||||
if (*s1 == '\0')
|
||||
return (0);
|
||||
return ((tolower(*s1) < tolower(*s2)) ? -1 : 1);
|
||||
}
|
||||
|
||||
#ifndef STDLIB_HAS_GETOPT
|
||||
int optind = 0;
|
||||
int opterr = 0;
|
||||
char *optarg = NULL;
|
||||
|
||||
int getopt(int ac, char **av, char *opt) {
|
||||
static char *nextchar = NULL;
|
||||
char *cp;
|
||||
char hold;
|
||||
|
||||
if (optarg == NULL) {
|
||||
optarg = (char *)malloc(BUFSIZ);
|
||||
MALLOC_CHECK(optarg);
|
||||
}
|
||||
|
||||
if (!nextchar || *nextchar == '\0') {
|
||||
optind++;
|
||||
if (optind == ac)
|
||||
return (-1);
|
||||
nextchar = av[optind];
|
||||
if (*nextchar != '-')
|
||||
return (-1);
|
||||
nextchar += 1;
|
||||
}
|
||||
|
||||
if (nextchar && *nextchar == '-') /* -- termination */
|
||||
{
|
||||
optind++;
|
||||
return (-1);
|
||||
} else /* found an option */
|
||||
{
|
||||
cp = strchr(opt, *nextchar);
|
||||
nextchar += 1;
|
||||
if (cp == NULL) /* not defined for this run */
|
||||
return ('?');
|
||||
if (*(cp + 1) == ':') /* option takes an argument */
|
||||
{
|
||||
if (*nextchar) {
|
||||
hold = *cp;
|
||||
cp = optarg;
|
||||
while (*nextchar)
|
||||
*cp++ = *nextchar++;
|
||||
*cp = '\0';
|
||||
*cp = hold;
|
||||
} else /* white space separated, use next arg */
|
||||
{
|
||||
if (++optind == ac)
|
||||
return ('?');
|
||||
strcpy(optarg, av[optind]);
|
||||
}
|
||||
nextchar = NULL;
|
||||
}
|
||||
return (*cp);
|
||||
}
|
||||
}
|
||||
#endif /* STDLIB_HAS_GETOPT */
|
||||
|
||||
char **mk_ascdate(void) {
|
||||
char **m;
|
||||
dss_time_t t;
|
||||
DSS_HUGE i;
|
||||
|
||||
m = (char **)malloc((size_t)(TOTDATE * sizeof(char *)));
|
||||
MALLOC_CHECK(m);
|
||||
for (i = 0; i < TOTDATE; i++) {
|
||||
mk_time(i + 1, &t);
|
||||
m[i] = strdup(t.alpha);
|
||||
}
|
||||
|
||||
return (m);
|
||||
}
|
||||
|
||||
/*
|
||||
* set_state() -- initialize the RNG so that
|
||||
* appropriate data sets can be generated.
|
||||
* For each table that is to be generated, calculate the number of rows/child,
|
||||
* and send that to the seed generation routine in speed_seed.c. Note: assumes
|
||||
* that tables are completely independent. Returns the number of rows to be
|
||||
* generated by the named step.
|
||||
*/
|
||||
DSS_HUGE
|
||||
set_state(int table, long sf, long procs, long step, DSS_HUGE *extra_rows, DBGenContext *ctx) {
|
||||
int i;
|
||||
DSS_HUGE rowcount, result;
|
||||
|
||||
if (sf == 0 || step == 0)
|
||||
return (0);
|
||||
|
||||
rowcount = ctx->tdefs[table].base;
|
||||
rowcount *= sf;
|
||||
*extra_rows = rowcount % procs;
|
||||
rowcount /= procs;
|
||||
result = rowcount;
|
||||
for (i = 0; i < step - 1; i++) {
|
||||
if (table == LINE) /* special case for shared seeds */
|
||||
ctx->tdefs[table].gen_seed(1, rowcount);
|
||||
else
|
||||
ctx->tdefs[table].gen_seed(0, rowcount);
|
||||
/* need to set seeds of child in case there's a dependency */
|
||||
/* NOTE: this assumes that the parent and child have the same base row
|
||||
* count */
|
||||
if (ctx->tdefs[table].child != NONE)
|
||||
ctx->tdefs[ctx->tdefs[table].child].gen_seed(0, rowcount);
|
||||
}
|
||||
if (step > procs) /* moving to the end to generate updates */
|
||||
ctx->tdefs[table].gen_seed(0, *extra_rows);
|
||||
|
||||
return (result);
|
||||
}
|
||||
336
external/duckdb/extension/tpch/dbgen/build.cpp
vendored
Normal file
336
external/duckdb/extension/tpch/dbgen/build.cpp
vendored
Normal file
@@ -0,0 +1,336 @@
|
||||
/*
|
||||
* Copyright owned by the Transaction Processing Performance Council.
|
||||
*
|
||||
* A copy of the license is included under extension/tpch/dbgen/LICENSE
|
||||
* in this repository.
|
||||
*
|
||||
* You may not use this file except in compliance with the License.
|
||||
*
|
||||
* THE TPC SOFTWARE IS AVAILABLE WITHOUT CHARGE FROM TPC.
|
||||
*/
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include <mutex>
|
||||
#ifndef VMS
|
||||
#include <sys/types.h>
|
||||
#endif
|
||||
#if defined(SUN)
|
||||
#include <unistd.h>
|
||||
#endif
|
||||
#include "dbgen/dss.h"
|
||||
#include "dbgen/dsstypes.h"
|
||||
|
||||
#include <math.h>
|
||||
|
||||
#include "dbgen/rng64.h"
|
||||
|
||||
#define LEAP_ADJ(yr, mnth) ((LEAP(yr) && (mnth) >= 2) ? 1 : 0)
|
||||
#define JDAY_BASE 8035 /* start from 1/1/70 a la unix */
|
||||
#define JMNTH_BASE (-70 * 12) /* start from 1/1/70 a la unix */
|
||||
#define JDAY(date) ((date)-STARTDATE + JDAY_BASE + 1)
|
||||
#define PART_SUPP_BRIDGE(tgt, p, s) \
|
||||
{ \
|
||||
DSS_HUGE tot_scnt = ctx->tdefs[SUPP].base * ctx->scale_factor; \
|
||||
tgt = (p + s * (tot_scnt / SUPP_PER_PART + (long)((p - 1) / tot_scnt))) % tot_scnt + 1; \
|
||||
}
|
||||
#define V_STR(avg, seed, tgt) tpch_a_rnd((int)(avg * V_STR_LOW), (int)(avg * V_STR_HGH), seed, tgt)
|
||||
#define TEXT(avg, seed, tgt) dbg_text(tgt, (int)(avg * V_STR_LOW), (int)(avg * V_STR_HGH), seed)
|
||||
static void gen_phone PROTO((DSS_HUGE ind, char *target, seed_t *seed));
|
||||
|
||||
DSS_HUGE
|
||||
rpb_routine(DSS_HUGE p) {
|
||||
DSS_HUGE price;
|
||||
|
||||
price = 90000;
|
||||
price += (p / 10) % 20001; /* limit contribution to $200 */
|
||||
price += (p % 1000) * 100;
|
||||
|
||||
return (price);
|
||||
}
|
||||
|
||||
static void gen_phone(DSS_HUGE ind, char *target, seed_t *seed) {
|
||||
DSS_HUGE acode, exchg, number;
|
||||
|
||||
RANDOM(acode, 100, 999, seed);
|
||||
RANDOM(exchg, 100, 999, seed);
|
||||
RANDOM(number, 1000, 9999, seed);
|
||||
|
||||
snprintf(target, 3, "%02d", (int)(10 + (ind % NATIONS_MAX)));
|
||||
snprintf(target + 3, 4, "%03d", (int)acode);
|
||||
snprintf(target + 7, 4, "%03d", (int)exchg);
|
||||
snprintf(target + 11, 5, "%04d", (int)number);
|
||||
target[2] = target[6] = target[10] = '-';
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
long mk_cust(DSS_HUGE n_cust, customer_t *c, DBGenContext *ctx) {
|
||||
DSS_HUGE i;
|
||||
static std::once_flag bInit;
|
||||
static char szFormat[100];
|
||||
|
||||
std::call_once (bInit, [&](){
|
||||
snprintf(szFormat, sizeof(szFormat), C_NAME_FMT, 9, &HUGE_FORMAT[1]);
|
||||
});
|
||||
c->custkey = n_cust;
|
||||
snprintf(c->name, sizeof(c->name), szFormat, C_NAME_TAG, n_cust);
|
||||
V_STR(C_ADDR_LEN, &ctx->Seed[C_ADDR_SD], c->address);
|
||||
c->alen = (int)strlen(c->address);
|
||||
RANDOM(i, 0, (nations.count - 1), &ctx->Seed[C_NTRG_SD]);
|
||||
c->nation_code = i;
|
||||
gen_phone(i, c->phone, &ctx->Seed[C_PHNE_SD]);
|
||||
RANDOM(c->acctbal, C_ABAL_MIN, C_ABAL_MAX, &ctx->Seed[C_ABAL_SD]);
|
||||
pick_str(&c_mseg_set, &ctx->Seed[C_MSEG_SD], c->mktsegment);
|
||||
TEXT(C_CMNT_LEN, &ctx->Seed[C_CMNT_SD], c->comment);
|
||||
c->clen = (int)strlen(c->comment);
|
||||
|
||||
return (0);
|
||||
}
|
||||
|
||||
/*
|
||||
* generate the numbered order and its associated lineitems
|
||||
*/
|
||||
void mk_sparse(DSS_HUGE i, DSS_HUGE *ok, long seq) {
|
||||
long low_bits;
|
||||
|
||||
*ok = i;
|
||||
low_bits = (long)(i & ((1 << SPARSE_KEEP) - 1));
|
||||
*ok = *ok >> SPARSE_KEEP;
|
||||
*ok = *ok << SPARSE_BITS;
|
||||
*ok += seq;
|
||||
*ok = *ok << SPARSE_KEEP;
|
||||
*ok += low_bits;
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
long mk_order(DSS_HUGE index, order_t *o, DBGenContext *ctx, long upd_num) {
|
||||
DSS_HUGE lcnt;
|
||||
DSS_HUGE rprice;
|
||||
long ocnt;
|
||||
DSS_HUGE tmp_date;
|
||||
DSS_HUGE s_date;
|
||||
DSS_HUGE r_date;
|
||||
DSS_HUGE c_date;
|
||||
DSS_HUGE clk_num;
|
||||
DSS_HUGE supp_num;
|
||||
static char **asc_date = NULL;
|
||||
char tmp_str[2];
|
||||
char **mk_ascdate PROTO((void));
|
||||
int delta = 1;
|
||||
static std::once_flag bInit;
|
||||
static char szFormat[100];
|
||||
|
||||
std::call_once (bInit, [&](){
|
||||
snprintf(szFormat, sizeof(szFormat), O_CLRK_FMT, 9, &HUGE_FORMAT[1]);
|
||||
asc_date = mk_ascdate();
|
||||
});
|
||||
mk_sparse(index, &o->okey, (upd_num == 0) ? 0 : 1 + upd_num / (10000 / UPD_PCT));
|
||||
if (ctx->scale_factor >= 30000)
|
||||
RANDOM64(o->custkey, O_CKEY_MIN, O_CKEY_MAX, &ctx->Seed[O_CKEY_SD]);
|
||||
else
|
||||
RANDOM(o->custkey, O_CKEY_MIN, O_CKEY_MAX, &ctx->Seed[O_CKEY_SD]);
|
||||
while (o->custkey % CUST_MORTALITY == 0) {
|
||||
o->custkey += delta;
|
||||
o->custkey = MIN(o->custkey, O_CKEY_MAX);
|
||||
delta *= -1;
|
||||
}
|
||||
|
||||
RANDOM(tmp_date, O_ODATE_MIN, O_ODATE_MAX, &ctx->Seed[O_ODATE_SD]);
|
||||
strcpy(o->odate, asc_date[tmp_date - STARTDATE]);
|
||||
|
||||
pick_str(&o_priority_set, &ctx->Seed[O_PRIO_SD], o->opriority);
|
||||
RANDOM(clk_num, 1, MAX((ctx->scale_factor * O_CLRK_SCL), O_CLRK_SCL), &ctx->Seed[O_CLRK_SD]);
|
||||
snprintf(o->clerk, sizeof(o->clerk), szFormat, O_CLRK_TAG, clk_num);
|
||||
TEXT(O_CMNT_LEN, &ctx->Seed[O_CMNT_SD], o->comment);
|
||||
o->clen = (int)strlen(o->comment);
|
||||
#ifdef DEBUG
|
||||
if (o->clen > O_CMNT_MAX)
|
||||
fprintf(stderr, "comment error: O%d\n", index);
|
||||
#endif /* DEBUG */
|
||||
o->spriority = 0;
|
||||
|
||||
o->totalprice = 0;
|
||||
o->orderstatus = 'O';
|
||||
ocnt = 0;
|
||||
|
||||
RANDOM(o->lines, O_LCNT_MIN, O_LCNT_MAX, &ctx->Seed[O_LCNT_SD]);
|
||||
for (lcnt = 0; lcnt < o->lines; lcnt++) {
|
||||
o->l[lcnt].okey = o->okey;
|
||||
;
|
||||
o->l[lcnt].lcnt = lcnt + 1;
|
||||
RANDOM(o->l[lcnt].quantity, L_QTY_MIN, L_QTY_MAX, &ctx->Seed[L_QTY_SD]);
|
||||
RANDOM(o->l[lcnt].discount, L_DCNT_MIN, L_DCNT_MAX, &ctx->Seed[L_DCNT_SD]);
|
||||
RANDOM(o->l[lcnt].tax, L_TAX_MIN, L_TAX_MAX, &ctx->Seed[L_TAX_SD]);
|
||||
pick_str(&l_instruct_set, &ctx->Seed[L_SHIP_SD], o->l[lcnt].shipinstruct);
|
||||
pick_str(&l_smode_set, &ctx->Seed[L_SMODE_SD], o->l[lcnt].shipmode);
|
||||
TEXT(L_CMNT_LEN, &ctx->Seed[L_CMNT_SD], o->l[lcnt].comment);
|
||||
o->l[lcnt].clen = (int)strlen(o->l[lcnt].comment);
|
||||
if (ctx->scale_factor >= 30000)
|
||||
RANDOM64(o->l[lcnt].partkey, L_PKEY_MIN, L_PKEY_MAX, &ctx->Seed[L_PKEY_SD]);
|
||||
else
|
||||
RANDOM(o->l[lcnt].partkey, L_PKEY_MIN, L_PKEY_MAX, &ctx->Seed[L_PKEY_SD]);
|
||||
rprice = rpb_routine(o->l[lcnt].partkey);
|
||||
RANDOM(supp_num, 0, 3, &ctx->Seed[L_SKEY_SD]);
|
||||
PART_SUPP_BRIDGE(o->l[lcnt].suppkey, o->l[lcnt].partkey, supp_num);
|
||||
o->l[lcnt].quantity *= 100;
|
||||
o->l[lcnt].eprice = rprice * o->l[lcnt].quantity / 100;
|
||||
|
||||
o->totalprice += ((o->l[lcnt].eprice * ((long)100 - o->l[lcnt].discount)) / (long)PENNIES) *
|
||||
((long)100 + o->l[lcnt].tax) / (long)PENNIES;
|
||||
|
||||
RANDOM(s_date, L_SDTE_MIN, L_SDTE_MAX, &ctx->Seed[L_SDTE_SD]);
|
||||
s_date += tmp_date;
|
||||
RANDOM(c_date, L_CDTE_MIN, L_CDTE_MAX, &ctx->Seed[L_CDTE_SD]);
|
||||
c_date += tmp_date;
|
||||
RANDOM(r_date, L_RDTE_MIN, L_RDTE_MAX, &ctx->Seed[L_RDTE_SD]);
|
||||
r_date += s_date;
|
||||
|
||||
strcpy(o->l[lcnt].sdate, asc_date[s_date - STARTDATE]);
|
||||
strcpy(o->l[lcnt].cdate, asc_date[c_date - STARTDATE]);
|
||||
strcpy(o->l[lcnt].rdate, asc_date[r_date - STARTDATE]);
|
||||
|
||||
if (julian(r_date) <= CURRENTDATE) {
|
||||
pick_str(&l_rflag_set, &ctx->Seed[L_RFLG_SD], tmp_str);
|
||||
o->l[lcnt].rflag[0] = *tmp_str;
|
||||
} else
|
||||
o->l[lcnt].rflag[0] = 'N';
|
||||
|
||||
if (julian(s_date) <= CURRENTDATE) {
|
||||
ocnt++;
|
||||
o->l[lcnt].lstatus[0] = 'F';
|
||||
} else
|
||||
o->l[lcnt].lstatus[0] = 'O';
|
||||
}
|
||||
|
||||
if (ocnt > 0)
|
||||
o->orderstatus = 'P';
|
||||
if (ocnt == o->lines)
|
||||
o->orderstatus = 'F';
|
||||
|
||||
return (0);
|
||||
}
|
||||
|
||||
long mk_part(DSS_HUGE index, part_t *p, DBGenContext *ctx) {
|
||||
DSS_HUGE temp;
|
||||
long snum;
|
||||
DSS_HUGE brnd;
|
||||
static std::once_flag bInit;
|
||||
static char szFormat[100];
|
||||
static char szBrandFormat[100];
|
||||
|
||||
|
||||
std::call_once (bInit, [&](){
|
||||
snprintf(szFormat, sizeof(szFormat), P_MFG_FMT, 1, &HUGE_FORMAT[1]);
|
||||
snprintf(szBrandFormat, sizeof(szBrandFormat), P_BRND_FMT, 2, &HUGE_FORMAT[1]);
|
||||
});
|
||||
p->partkey = index;
|
||||
agg_str(&colors, (long)P_NAME_SCL, &ctx->Seed[P_NAME_SD], p->name, ctx);
|
||||
RANDOM(temp, P_MFG_MIN, P_MFG_MAX, &ctx->Seed[P_MFG_SD]);
|
||||
snprintf(p->mfgr, sizeof(p->mfgr), szFormat, P_MFG_TAG, temp);
|
||||
RANDOM(brnd, P_BRND_MIN, P_BRND_MAX, &ctx->Seed[P_BRND_SD]);
|
||||
snprintf(p->brand, sizeof(p->brand), szBrandFormat, P_BRND_TAG, (temp * 10 + brnd));
|
||||
p->tlen = pick_str(&p_types_set, &ctx->Seed[P_TYPE_SD], p->type);
|
||||
p->tlen = (int)strlen(p_types_set.list[p->tlen].text);
|
||||
RANDOM(p->size, P_SIZE_MIN, P_SIZE_MAX, &ctx->Seed[P_SIZE_SD]);
|
||||
pick_str(&p_cntr_set, &ctx->Seed[P_CNTR_SD], p->container);
|
||||
p->retailprice = rpb_routine(index);
|
||||
TEXT(P_CMNT_LEN, &ctx->Seed[P_CMNT_SD], p->comment);
|
||||
p->clen = (int)strlen(p->comment);
|
||||
|
||||
for (snum = 0; snum < SUPP_PER_PART; snum++) {
|
||||
p->s[snum].partkey = p->partkey;
|
||||
PART_SUPP_BRIDGE(p->s[snum].suppkey, index, snum);
|
||||
RANDOM(p->s[snum].qty, PS_QTY_MIN, PS_QTY_MAX, &ctx->Seed[PS_QTY_SD]);
|
||||
RANDOM(p->s[snum].scost, PS_SCST_MIN, PS_SCST_MAX, &ctx->Seed[PS_SCST_SD]);
|
||||
TEXT(PS_CMNT_LEN, &ctx->Seed[PS_CMNT_SD], p->s[snum].comment);
|
||||
p->s[snum].clen = (int)strlen(p->s[snum].comment);
|
||||
}
|
||||
return (0);
|
||||
}
|
||||
|
||||
long mk_supp(DSS_HUGE index, supplier_t *s, DBGenContext *ctx) {
|
||||
DSS_HUGE i, bad_press, noise, offset, type;
|
||||
static std::once_flag bInit;
|
||||
static char szFormat[100];
|
||||
|
||||
std::call_once (bInit, [&](){
|
||||
snprintf(szFormat, sizeof(szFormat), S_NAME_FMT, 9, &HUGE_FORMAT[1]);
|
||||
});
|
||||
s->suppkey = index;
|
||||
snprintf(s->name, sizeof(s->name), szFormat, S_NAME_TAG, index);
|
||||
V_STR(S_ADDR_LEN, &ctx->Seed[S_ADDR_SD], s->address);
|
||||
s->alen = (int)strlen(s->address);
|
||||
RANDOM(i, 0, nations.count - 1, &ctx->Seed[S_NTRG_SD]);
|
||||
s->nation_code = i;
|
||||
gen_phone(i, s->phone, &ctx->Seed[S_PHNE_SD]);
|
||||
RANDOM(s->acctbal, S_ABAL_MIN, S_ABAL_MAX, &ctx->Seed[S_ABAL_SD]);
|
||||
|
||||
TEXT(S_CMNT_LEN, &ctx->Seed[S_CMNT_SD], s->comment);
|
||||
s->clen = (int)strlen(s->comment);
|
||||
/*
|
||||
* these calls should really move inside the if stmt below, but this
|
||||
* will simplify seedless parallel load
|
||||
*/
|
||||
RANDOM(bad_press, 1, 10000, &ctx->Seed[BBB_CMNT_SD]);
|
||||
RANDOM(type, 0, 100, &ctx->Seed[BBB_TYPE_SD]);
|
||||
RANDOM(noise, 0, (s->clen - BBB_CMNT_LEN), &ctx->Seed[BBB_JNK_SD]);
|
||||
RANDOM(offset, 0, (s->clen - (BBB_CMNT_LEN + noise)), &ctx->Seed[BBB_OFFSET_SD]);
|
||||
if (bad_press <= S_CMNT_BBB) {
|
||||
type = (type < BBB_DEADBEATS) ? 0 : 1;
|
||||
memcpy(s->comment + offset, BBB_BASE, BBB_BASE_LEN);
|
||||
if (type == 0)
|
||||
memcpy(s->comment + BBB_BASE_LEN + offset + noise, BBB_COMPLAIN, BBB_TYPE_LEN);
|
||||
else
|
||||
memcpy(s->comment + BBB_BASE_LEN + offset + noise, BBB_COMMEND, BBB_TYPE_LEN);
|
||||
}
|
||||
return (0);
|
||||
}
|
||||
|
||||
struct {
|
||||
char *mdes;
|
||||
long days;
|
||||
long dcnt;
|
||||
} months[] =
|
||||
|
||||
{{NULL, 0, 0}, {"JAN", 31, 31}, {"FEB", 28, 59}, {"MAR", 31, 90}, {"APR", 30, 120},
|
||||
{"MAY", 31, 151}, {"JUN", 30, 181}, {"JUL", 31, 212}, {"AUG", 31, 243}, {"SEP", 30, 273},
|
||||
{"OCT", 31, 304}, {"NOV", 30, 334}, {"DEC", 31, 365}};
|
||||
|
||||
long mk_time(DSS_HUGE index, dss_time_t *t) {
|
||||
long m = 0;
|
||||
long y;
|
||||
long d;
|
||||
|
||||
t->timekey = index + JDAY_BASE;
|
||||
y = julian(index + STARTDATE - 1) / 1000;
|
||||
d = julian(index + STARTDATE - 1) % 1000;
|
||||
while (d > months[m].dcnt + LEAP_ADJ(y, m))
|
||||
m++;
|
||||
PR_DATE(t->alpha, y, m, d - months[m - 1].dcnt - ((LEAP(y) && m > 2) ? 1 : 0));
|
||||
t->year = 1900 + y;
|
||||
t->month = m + 12 * y + JMNTH_BASE;
|
||||
t->week = (d + T_START_DAY - 1) / 7 + 1;
|
||||
t->day = d - months[m - 1].dcnt - LEAP_ADJ(y, m - 1);
|
||||
|
||||
return (0);
|
||||
}
|
||||
|
||||
int mk_nation(DSS_HUGE index, code_t *c, DBGenContext *ctx) {
|
||||
c->code = index - 1;
|
||||
c->text = nations.list[index - 1].text;
|
||||
c->join = nations.list[index - 1].weight;
|
||||
TEXT(N_CMNT_LEN, &ctx->Seed[N_CMNT_SD], c->comment);
|
||||
c->clen = (int)strlen(c->comment);
|
||||
return (0);
|
||||
}
|
||||
|
||||
int mk_region(DSS_HUGE index, code_t *c, DBGenContext *ctx) {
|
||||
|
||||
c->code = index - 1;
|
||||
c->text = regions.list[index - 1].text;
|
||||
c->join = 0; /* for completeness */
|
||||
TEXT(R_CMNT_LEN, &ctx->Seed[R_CMNT_SD], c->comment);
|
||||
c->clen = (int)strlen(c->comment);
|
||||
return (0);
|
||||
}
|
||||
718
external/duckdb/extension/tpch/dbgen/dbgen.cpp
vendored
Normal file
718
external/duckdb/extension/tpch/dbgen/dbgen.cpp
vendored
Normal file
@@ -0,0 +1,718 @@
|
||||
#include "dbgen/dbgen.hpp"
|
||||
#include "dbgen/dbgen_gunk.hpp"
|
||||
#include "tpch_constants.hpp"
|
||||
#include "duckdb/common/exception.hpp"
|
||||
#include "duckdb/common/types/date.hpp"
|
||||
#include "duckdb/parser/column_definition.hpp"
|
||||
#include "duckdb/parser/parsed_data/create_table_info.hpp"
|
||||
#include "duckdb/parser/constraints/not_null_constraint.hpp"
|
||||
#include "duckdb/catalog/catalog.hpp"
|
||||
#include "duckdb/main/appender.hpp"
|
||||
#include "duckdb/catalog/catalog_entry/table_catalog_entry.hpp"
|
||||
#ifndef DUCKDB_NO_THREADS
|
||||
#include "duckdb/common/thread.hpp"
|
||||
#endif
|
||||
|
||||
#define DECLARER /* EXTERN references get defined here */
|
||||
|
||||
#include "dbgen/dss.h"
|
||||
#include "dbgen/dsstypes.h"
|
||||
|
||||
#include <cassert>
|
||||
#include <cmath>
|
||||
#include <mutex>
|
||||
|
||||
using namespace duckdb;
|
||||
|
||||
namespace tpch {
|
||||
|
||||
struct tpch_append_information {
|
||||
duckdb::unique_ptr<InternalAppender> appender;
|
||||
};
|
||||
|
||||
void append_int32(tpch_append_information &info, int32_t value) {
|
||||
info.appender->Append<int32_t>(value);
|
||||
}
|
||||
|
||||
void append_int64(tpch_append_information &info, int64_t value) {
|
||||
info.appender->Append<int64_t>(value);
|
||||
}
|
||||
|
||||
void append_string(tpch_append_information &info, const char *value) {
|
||||
info.appender->Append<const char *>(value);
|
||||
}
|
||||
|
||||
void append_decimal(tpch_append_information &info, int64_t value) {
|
||||
info.appender->Append<int64_t>(value);
|
||||
}
|
||||
|
||||
void append_date(tpch_append_information &info, string value) {
|
||||
info.appender->Append<date_t>(Date::FromString(value));
|
||||
}
|
||||
|
||||
void append_char(tpch_append_information &info, char value) {
|
||||
char val[2];
|
||||
val[0] = value;
|
||||
val[1] = '\0';
|
||||
append_string(info, val);
|
||||
}
|
||||
|
||||
static void append_order(order_t *o, tpch_append_information *info) {
|
||||
auto &append_info = info[ORDER];
|
||||
|
||||
// fill the current row with the order information
|
||||
append_info.appender->BeginRow();
|
||||
// o_orderkey
|
||||
append_int64(append_info, o->okey);
|
||||
// o_custkey
|
||||
append_int64(append_info, o->custkey);
|
||||
// o_orderstatus
|
||||
append_char(append_info, o->orderstatus);
|
||||
// o_totalprice
|
||||
append_decimal(append_info, o->totalprice);
|
||||
// o_orderdate
|
||||
append_date(append_info, o->odate);
|
||||
// o_orderpriority
|
||||
append_string(append_info, o->opriority);
|
||||
// o_clerk
|
||||
append_string(append_info, o->clerk);
|
||||
// o_shippriority
|
||||
append_int32(append_info, o->spriority);
|
||||
// o_comment
|
||||
append_string(append_info, o->comment);
|
||||
append_info.appender->EndRow();
|
||||
}
|
||||
|
||||
static void append_line(order_t *o, tpch_append_information *info) {
|
||||
auto &append_info = info[LINE];
|
||||
|
||||
// fill the current row with the order information
|
||||
for (DSS_HUGE i = 0; i < o->lines; i++) {
|
||||
append_info.appender->BeginRow();
|
||||
// l_orderkey
|
||||
append_int64(append_info, o->l[i].okey);
|
||||
// l_partkey
|
||||
append_int64(append_info, o->l[i].partkey);
|
||||
// l_suppkey
|
||||
append_int64(append_info, o->l[i].suppkey);
|
||||
// l_linenumber
|
||||
append_int64(append_info, o->l[i].lcnt);
|
||||
// l_quantity
|
||||
append_decimal(append_info, o->l[i].quantity);
|
||||
// l_extendedprice
|
||||
append_decimal(append_info, o->l[i].eprice);
|
||||
// l_discount
|
||||
append_decimal(append_info, o->l[i].discount);
|
||||
// l_tax
|
||||
append_decimal(append_info, o->l[i].tax);
|
||||
// l_returnflag
|
||||
append_char(append_info, o->l[i].rflag[0]);
|
||||
// l_linestatus
|
||||
append_char(append_info, o->l[i].lstatus[0]);
|
||||
// l_shipdate
|
||||
append_date(append_info, o->l[i].sdate);
|
||||
// l_commitdate
|
||||
append_date(append_info, o->l[i].cdate);
|
||||
// l_receiptdate
|
||||
append_date(append_info, o->l[i].rdate);
|
||||
// l_shipinstruct
|
||||
append_string(append_info, o->l[i].shipinstruct);
|
||||
// l_shipmode
|
||||
append_string(append_info, o->l[i].shipmode);
|
||||
// l_comment
|
||||
append_string(append_info, o->l[i].comment);
|
||||
append_info.appender->EndRow();
|
||||
}
|
||||
}
|
||||
|
||||
static void append_order_line(order_t *o, tpch_append_information *info) {
|
||||
append_order(o, info);
|
||||
append_line(o, info);
|
||||
}
|
||||
|
||||
static void append_supp(supplier_t *supp, tpch_append_information *info) {
|
||||
auto &append_info = info[SUPP];
|
||||
|
||||
append_info.appender->BeginRow();
|
||||
// s_suppkey
|
||||
append_int64(append_info, supp->suppkey);
|
||||
// s_name
|
||||
append_string(append_info, supp->name);
|
||||
// s_address
|
||||
append_string(append_info, supp->address);
|
||||
// s_nationkey
|
||||
append_int32(append_info, supp->nation_code);
|
||||
// s_phone
|
||||
append_string(append_info, supp->phone);
|
||||
// s_acctbal
|
||||
append_decimal(append_info, supp->acctbal);
|
||||
// s_comment
|
||||
append_string(append_info, supp->comment);
|
||||
append_info.appender->EndRow();
|
||||
}
|
||||
|
||||
static void append_cust(customer_t *c, tpch_append_information *info) {
|
||||
auto &append_info = info[CUST];
|
||||
|
||||
append_info.appender->BeginRow();
|
||||
// c_custkey
|
||||
append_int64(append_info, c->custkey);
|
||||
// c_name
|
||||
append_string(append_info, c->name);
|
||||
// c_address
|
||||
append_string(append_info, c->address);
|
||||
// c_nationkey
|
||||
append_int32(append_info, c->nation_code);
|
||||
// c_phone
|
||||
append_string(append_info, c->phone);
|
||||
// c_acctbal
|
||||
append_decimal(append_info, c->acctbal);
|
||||
// c_mktsegment
|
||||
append_string(append_info, c->mktsegment);
|
||||
// c_comment
|
||||
append_string(append_info, c->comment);
|
||||
append_info.appender->EndRow();
|
||||
}
|
||||
|
||||
static void append_part(part_t *part, tpch_append_information *info) {
|
||||
auto &append_info = info[PART];
|
||||
|
||||
append_info.appender->BeginRow();
|
||||
// p_partkey
|
||||
append_int64(append_info, part->partkey);
|
||||
// p_name
|
||||
append_string(append_info, part->name);
|
||||
// p_mfgr
|
||||
append_string(append_info, part->mfgr);
|
||||
// p_brand
|
||||
append_string(append_info, part->brand);
|
||||
// p_type
|
||||
append_string(append_info, part->type);
|
||||
// p_size
|
||||
append_int32(append_info, part->size);
|
||||
// p_container
|
||||
append_string(append_info, part->container);
|
||||
// p_retailprice
|
||||
append_decimal(append_info, part->retailprice);
|
||||
// p_comment
|
||||
append_string(append_info, part->comment);
|
||||
append_info.appender->EndRow();
|
||||
}
|
||||
|
||||
static void append_psupp(part_t *part, tpch_append_information *info) {
|
||||
auto &append_info = info[PSUPP];
|
||||
for (size_t i = 0; i < SUPP_PER_PART; i++) {
|
||||
append_info.appender->BeginRow();
|
||||
// ps_partkey
|
||||
append_int64(append_info, part->s[i].partkey);
|
||||
// ps_suppkey
|
||||
append_int64(append_info, part->s[i].suppkey);
|
||||
// ps_availqty
|
||||
append_int64(append_info, part->s[i].qty);
|
||||
// ps_supplycost
|
||||
append_decimal(append_info, part->s[i].scost);
|
||||
// ps_comment
|
||||
append_string(append_info, part->s[i].comment);
|
||||
append_info.appender->EndRow();
|
||||
}
|
||||
}
|
||||
|
||||
static void append_part_psupp(part_t *part, tpch_append_information *info) {
|
||||
append_part(part, info);
|
||||
append_psupp(part, info);
|
||||
}
|
||||
|
||||
static void append_nation(code_t *c, tpch_append_information *info) {
|
||||
auto &append_info = info[NATION];
|
||||
|
||||
append_info.appender->BeginRow();
|
||||
// n_nationkey
|
||||
append_int32(append_info, c->code);
|
||||
// n_name
|
||||
append_string(append_info, c->text);
|
||||
// n_regionkey
|
||||
append_int32(append_info, c->join);
|
||||
// n_comment
|
||||
append_string(append_info, c->comment);
|
||||
append_info.appender->EndRow();
|
||||
}
|
||||
|
||||
static void append_region(code_t *c, tpch_append_information *info) {
|
||||
auto &append_info = info[REGION];
|
||||
|
||||
append_info.appender->BeginRow();
|
||||
// r_regionkey
|
||||
append_int32(append_info, c->code);
|
||||
// r_name
|
||||
append_string(append_info, c->text);
|
||||
// r_comment
|
||||
append_string(append_info, c->comment);
|
||||
append_info.appender->EndRow();
|
||||
}
|
||||
|
||||
static void gen_tbl(ClientContext &context, int tnum, DSS_HUGE count, tpch_append_information *info, DBGenContext *dbgen_ctx,
|
||||
idx_t offset = 0) {
|
||||
order_t o;
|
||||
supplier_t supp;
|
||||
customer_t cust;
|
||||
part_t part;
|
||||
code_t code;
|
||||
|
||||
for (DSS_HUGE i = offset + 1; count; count--, i++) {
|
||||
if (count % 1000 == 0 && context.interrupted) {
|
||||
return;
|
||||
}
|
||||
row_start(tnum, dbgen_ctx);
|
||||
switch (tnum) {
|
||||
case LINE:
|
||||
case ORDER:
|
||||
case ORDER_LINE:
|
||||
mk_order(i, &o, dbgen_ctx, 0);
|
||||
append_order_line(&o, info);
|
||||
break;
|
||||
case SUPP:
|
||||
mk_supp(i, &supp, dbgen_ctx);
|
||||
append_supp(&supp, info);
|
||||
break;
|
||||
case CUST:
|
||||
mk_cust(i, &cust, dbgen_ctx);
|
||||
append_cust(&cust, info);
|
||||
break;
|
||||
case PSUPP:
|
||||
case PART:
|
||||
case PART_PSUPP:
|
||||
mk_part(i, &part, dbgen_ctx);
|
||||
append_part_psupp(&part, info);
|
||||
break;
|
||||
case NATION:
|
||||
mk_nation(i, &code, dbgen_ctx);
|
||||
append_nation(&code, info);
|
||||
break;
|
||||
case REGION:
|
||||
mk_region(i, &code, dbgen_ctx);
|
||||
append_region(&code, info);
|
||||
break;
|
||||
}
|
||||
row_stop_h(tnum, dbgen_ctx);
|
||||
}
|
||||
}
|
||||
|
||||
string get_table_name(int num) {
|
||||
switch (num) {
|
||||
case PART:
|
||||
return "part";
|
||||
case PSUPP:
|
||||
return "partsupp";
|
||||
case SUPP:
|
||||
return "supplier";
|
||||
case CUST:
|
||||
return "customer";
|
||||
case ORDER:
|
||||
return "orders";
|
||||
case LINE:
|
||||
return "lineitem";
|
||||
case NATION:
|
||||
return "nation";
|
||||
case REGION:
|
||||
return "region";
|
||||
default:
|
||||
return "";
|
||||
}
|
||||
}
|
||||
|
||||
struct RegionInfo {
|
||||
static constexpr char *Name = "region";
|
||||
static constexpr idx_t ColumnCount = 3;
|
||||
static const char *Columns[];
|
||||
static const LogicalType Types[];
|
||||
};
|
||||
const char *RegionInfo::Columns[] = {"r_regionkey", "r_name", "r_comment"};
|
||||
const LogicalType RegionInfo::Types[] = {LogicalType(LogicalTypeId::INTEGER), LogicalType(LogicalTypeId::VARCHAR),
|
||||
LogicalType(LogicalTypeId::VARCHAR)};
|
||||
|
||||
struct NationInfo {
|
||||
static constexpr char *Name = "nation";
|
||||
static const char *Columns[];
|
||||
static constexpr idx_t ColumnCount = 4;
|
||||
static const LogicalType Types[];
|
||||
};
|
||||
const char *NationInfo::Columns[] = {"n_nationkey", "n_name", "n_regionkey", "n_comment"};
|
||||
const LogicalType NationInfo::Types[] = {LogicalType(LogicalTypeId::INTEGER), LogicalType(LogicalTypeId::VARCHAR),
|
||||
LogicalType(LogicalTypeId::INTEGER), LogicalType(LogicalTypeId::VARCHAR)};
|
||||
|
||||
struct SupplierInfo {
|
||||
static constexpr char *Name = "supplier";
|
||||
static const char *Columns[];
|
||||
static constexpr idx_t ColumnCount = 7;
|
||||
static const LogicalType Types[];
|
||||
};
|
||||
const char *SupplierInfo::Columns[] = {"s_suppkey", "s_name", "s_address", "s_nationkey",
|
||||
"s_phone", "s_acctbal", "s_comment"};
|
||||
const LogicalType SupplierInfo::Types[] = {LogicalType(LogicalTypeId::BIGINT), LogicalType(LogicalTypeId::VARCHAR),
|
||||
LogicalType(LogicalTypeId::VARCHAR), LogicalType(LogicalTypeId::INTEGER),
|
||||
LogicalType(LogicalTypeId::VARCHAR), LogicalType::DECIMAL(15, 2),
|
||||
LogicalType(LogicalTypeId::VARCHAR)};
|
||||
|
||||
struct CustomerInfo {
|
||||
static constexpr char *Name = "customer";
|
||||
static const char *Columns[];
|
||||
static constexpr idx_t ColumnCount = 8;
|
||||
static const LogicalType Types[];
|
||||
};
|
||||
const char *CustomerInfo::Columns[] = {"c_custkey", "c_name", "c_address", "c_nationkey",
|
||||
"c_phone", "c_acctbal", "c_mktsegment", "c_comment"};
|
||||
const LogicalType CustomerInfo::Types[] = {LogicalType(LogicalTypeId::BIGINT), LogicalType(LogicalTypeId::VARCHAR),
|
||||
LogicalType(LogicalTypeId::VARCHAR), LogicalType(LogicalTypeId::INTEGER),
|
||||
LogicalType(LogicalTypeId::VARCHAR), LogicalType::DECIMAL(15, 2),
|
||||
LogicalType(LogicalTypeId::VARCHAR), LogicalType(LogicalTypeId::VARCHAR)};
|
||||
|
||||
struct PartInfo {
|
||||
static constexpr char *Name = "part";
|
||||
static const char *Columns[];
|
||||
static constexpr idx_t ColumnCount = 9;
|
||||
static const LogicalType Types[];
|
||||
};
|
||||
const char *PartInfo::Columns[] = {"p_partkey", "p_name", "p_mfgr", "p_brand", "p_type",
|
||||
"p_size", "p_container", "p_retailprice", "p_comment"};
|
||||
const LogicalType PartInfo::Types[] = {
|
||||
LogicalType(LogicalTypeId::BIGINT), LogicalType(LogicalTypeId::VARCHAR), LogicalType(LogicalTypeId::VARCHAR),
|
||||
LogicalType(LogicalTypeId::VARCHAR), LogicalType(LogicalTypeId::VARCHAR), LogicalType(LogicalTypeId::INTEGER),
|
||||
LogicalType(LogicalTypeId::VARCHAR), LogicalType::DECIMAL(15, 2), LogicalType(LogicalTypeId::VARCHAR)};
|
||||
|
||||
struct PartsuppInfo {
|
||||
static constexpr char *Name = "partsupp";
|
||||
static const char *Columns[];
|
||||
static constexpr idx_t ColumnCount = 5;
|
||||
static const LogicalType Types[];
|
||||
};
|
||||
const char *PartsuppInfo::Columns[] = {"ps_partkey", "ps_suppkey", "ps_availqty", "ps_supplycost", "ps_comment"};
|
||||
const LogicalType PartsuppInfo::Types[] = {LogicalType(LogicalTypeId::BIGINT), LogicalType(LogicalTypeId::BIGINT),
|
||||
LogicalType(LogicalTypeId::BIGINT), LogicalType::DECIMAL(15, 2),
|
||||
LogicalType(LogicalTypeId::VARCHAR)};
|
||||
|
||||
struct OrdersInfo {
|
||||
static constexpr char *Name = "orders";
|
||||
static const char *Columns[];
|
||||
static constexpr idx_t ColumnCount = 9;
|
||||
static const LogicalType Types[];
|
||||
};
|
||||
const char *OrdersInfo::Columns[] = {"o_orderkey", "o_custkey", "o_orderstatus", "o_totalprice", "o_orderdate",
|
||||
"o_orderpriority", "o_clerk", "o_shippriority", "o_comment"};
|
||||
const LogicalType OrdersInfo::Types[] = {
|
||||
LogicalType(LogicalTypeId::BIGINT), LogicalType(LogicalTypeId::BIGINT), LogicalType(LogicalTypeId::VARCHAR),
|
||||
LogicalType::DECIMAL(15, 2), LogicalType(LogicalTypeId::DATE), LogicalType(LogicalTypeId::VARCHAR),
|
||||
LogicalType(LogicalTypeId::VARCHAR), LogicalType(LogicalTypeId::INTEGER), LogicalType(LogicalTypeId::VARCHAR)};
|
||||
|
||||
struct LineitemInfo {
|
||||
static constexpr char *Name = "lineitem";
|
||||
static const char *Columns[];
|
||||
static constexpr idx_t ColumnCount = 16;
|
||||
static const LogicalType Types[];
|
||||
};
|
||||
const char *LineitemInfo::Columns[] = {"l_orderkey", "l_partkey", "l_suppkey", "l_linenumber",
|
||||
"l_quantity", "l_extendedprice", "l_discount", "l_tax",
|
||||
"l_returnflag", "l_linestatus", "l_shipdate", "l_commitdate",
|
||||
"l_receiptdate", "l_shipinstruct", "l_shipmode", "l_comment"};
|
||||
const LogicalType LineitemInfo::Types[] = {
|
||||
LogicalType(LogicalTypeId::BIGINT), LogicalType(LogicalTypeId::BIGINT), LogicalType(LogicalTypeId::BIGINT),
|
||||
LogicalType(LogicalTypeId::BIGINT), LogicalType::DECIMAL(15, 2), LogicalType::DECIMAL(15, 2),
|
||||
LogicalType::DECIMAL(15, 2), LogicalType::DECIMAL(15, 2), LogicalType(LogicalTypeId::VARCHAR),
|
||||
LogicalType(LogicalTypeId::VARCHAR), LogicalType(LogicalTypeId::DATE), LogicalType(LogicalTypeId::DATE),
|
||||
LogicalType(LogicalTypeId::DATE), LogicalType(LogicalTypeId::VARCHAR), LogicalType(LogicalTypeId::VARCHAR),
|
||||
LogicalType(LogicalTypeId::VARCHAR)};
|
||||
|
||||
template <class T>
|
||||
static void CreateTPCHTable(ClientContext &context, string catalog_name, string schema, string suffix) {
|
||||
auto info = make_uniq<CreateTableInfo>();
|
||||
info->catalog = catalog_name;
|
||||
info->schema = schema;
|
||||
info->table = T::Name + suffix;
|
||||
info->on_conflict = OnCreateConflict::IGNORE_ON_CONFLICT;
|
||||
info->temporary = false;
|
||||
for (idx_t i = 0; i < T::ColumnCount; i++) {
|
||||
info->columns.AddColumn(ColumnDefinition(T::Columns[i], T::Types[i]));
|
||||
info->constraints.push_back(make_uniq<NotNullConstraint>(LogicalIndex(i)));
|
||||
}
|
||||
auto &catalog = Catalog::GetCatalog(context, catalog_name);
|
||||
catalog.CreateTable(context, std::move(info));
|
||||
}
|
||||
|
||||
void DBGenWrapper::CreateTPCHSchema(ClientContext &context, string catalog, string schema, string suffix) {
|
||||
CreateTPCHTable<RegionInfo>(context, catalog, schema, suffix);
|
||||
CreateTPCHTable<NationInfo>(context, catalog, schema, suffix);
|
||||
CreateTPCHTable<SupplierInfo>(context, catalog, schema, suffix);
|
||||
CreateTPCHTable<CustomerInfo>(context, catalog, schema, suffix);
|
||||
CreateTPCHTable<PartInfo>(context, catalog, schema, suffix);
|
||||
CreateTPCHTable<PartsuppInfo>(context, catalog, schema, suffix);
|
||||
CreateTPCHTable<OrdersInfo>(context, catalog, schema, suffix);
|
||||
CreateTPCHTable<LineitemInfo>(context, catalog, schema, suffix);
|
||||
}
|
||||
|
||||
void skip(int table, int children, DSS_HUGE step, DBGenContext &dbgen_ctx) {
|
||||
switch (table) {
|
||||
case CUST:
|
||||
sd_cust(children, step, &dbgen_ctx);
|
||||
break;
|
||||
case SUPP:
|
||||
sd_supp(children, step, &dbgen_ctx);
|
||||
break;
|
||||
case NATION:
|
||||
sd_nation(children, step, &dbgen_ctx);
|
||||
break;
|
||||
case REGION:
|
||||
sd_region(children, step, &dbgen_ctx);
|
||||
break;
|
||||
case ORDER_LINE:
|
||||
sd_line(children, step, &dbgen_ctx);
|
||||
sd_order(children, step, &dbgen_ctx);
|
||||
break;
|
||||
case PART_PSUPP:
|
||||
sd_part(children, step, &dbgen_ctx);
|
||||
sd_psupp(children, step, &dbgen_ctx);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
struct TPCHDBgenParameters {
|
||||
TPCHDBgenParameters(ClientContext &context, Catalog &catalog, const string &schema, const string &suffix) {
|
||||
tables.resize(REGION + 1);
|
||||
for (size_t i = PART; i <= REGION; i++) {
|
||||
auto tname = get_table_name(i);
|
||||
if (!tname.empty()) {
|
||||
string full_tname = string(tname) + string(suffix);
|
||||
auto &tbl_catalog = catalog.GetEntry<TableCatalogEntry>(context, schema, full_tname);
|
||||
tables[i] = &tbl_catalog;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
vector<optional_ptr<TableCatalogEntry>> tables;
|
||||
};
|
||||
|
||||
class TPCHDataAppender {
|
||||
public:
|
||||
TPCHDataAppender(ClientContext &context, TPCHDBgenParameters ¶meters, DBGenContext base_context, idx_t flush_count) :
|
||||
context(context), parameters(parameters) {
|
||||
dbgen_ctx = base_context;
|
||||
append_info = duckdb::unique_ptr<tpch_append_information[]>(new tpch_append_information[REGION + 1]);
|
||||
memset(append_info.get(), 0, sizeof(tpch_append_information) * REGION + 1);
|
||||
for (size_t i = PART; i <= REGION; i++) {
|
||||
if (parameters.tables[i]) {
|
||||
auto &tbl_catalog = *parameters.tables[i];
|
||||
if (!tbl_catalog.IsDuckTable()) {
|
||||
throw InvalidInputException("dbgen is only supported for DuckDB database files");
|
||||
}
|
||||
append_info[i].appender = make_uniq<InternalAppender>(context, tbl_catalog, flush_count);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void GenerateTableData(int table_index, idx_t row_count, idx_t offset) {
|
||||
gen_tbl(context, table_index, static_cast<DSS_HUGE>(row_count), append_info.get(), &dbgen_ctx, offset);
|
||||
}
|
||||
|
||||
void AppendData(int children, int current_step) {
|
||||
DSS_HUGE i;
|
||||
DSS_HUGE rowcnt = 0;
|
||||
for (i = PART; i <= REGION; i++) {
|
||||
if (table & (1 << i)) {
|
||||
if (i < NATION) {
|
||||
rowcnt = dbgen_ctx.tdefs[i].base * dbgen_ctx.scale_factor;
|
||||
} else {
|
||||
rowcnt = dbgen_ctx.tdefs[i].base;
|
||||
}
|
||||
if (context.interrupted) {
|
||||
return;
|
||||
}
|
||||
if (children > 1 && current_step != -1) {
|
||||
size_t part_size = std::ceil((double)rowcnt / (double)children);
|
||||
auto part_offset = part_size * current_step;
|
||||
auto part_end = part_offset + part_size;
|
||||
rowcnt = part_end > rowcnt ? rowcnt - part_offset : part_size;
|
||||
skip(i, children, part_offset, dbgen_ctx);
|
||||
if (rowcnt > 0) {
|
||||
// generate part of the table
|
||||
GenerateTableData((int) i, rowcnt, part_offset);
|
||||
}
|
||||
} else {
|
||||
// generate full table
|
||||
GenerateTableData((int) i, rowcnt, 0);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void Flush() {
|
||||
// flush any incomplete chunks
|
||||
for (idx_t i = PART; i <= REGION; i++) {
|
||||
if (append_info[i].appender) {
|
||||
append_info[i].appender->Flush();
|
||||
append_info[i].appender.reset();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private:
|
||||
ClientContext &context;
|
||||
TPCHDBgenParameters ¶meters;
|
||||
unique_ptr<tpch_append_information[]> append_info;
|
||||
DBGenContext dbgen_ctx;
|
||||
};
|
||||
|
||||
static void ParallelTPCHAppend(TPCHDataAppender *appender, int children, int current_step) {
|
||||
appender->AppendData(children, current_step);
|
||||
}
|
||||
|
||||
void DBGenWrapper::LoadTPCHData(ClientContext &context, double flt_scale, string catalog_name, string schema,
|
||||
string suffix, int children, int current_step) {
|
||||
if (flt_scale == 0) {
|
||||
return;
|
||||
}
|
||||
|
||||
// all tables
|
||||
table = (1 << CUST) | (1 << SUPP) | (1 << NATION) | (1 << REGION) | (1 << PART_PSUPP) | (1 << ORDER_LINE);
|
||||
force = 0;
|
||||
insert_segments = 0;
|
||||
delete_segments = 0;
|
||||
insert_orders_segment = 0;
|
||||
insert_lineitem_segment = 0;
|
||||
delete_segment = 0;
|
||||
verbose = 0;
|
||||
set_seeds = 0;
|
||||
updates = 0;
|
||||
|
||||
d_path = NULL;
|
||||
|
||||
DBGenContext base_context;
|
||||
tdef *tdefs = base_context.tdefs;
|
||||
tdefs[PART].base = 200000;
|
||||
tdefs[PSUPP].base = 200000;
|
||||
tdefs[SUPP].base = 10000;
|
||||
tdefs[CUST].base = 150000;
|
||||
tdefs[ORDER].base = 150000 * ORDERS_PER_CUST;
|
||||
tdefs[LINE].base = 150000 * ORDERS_PER_CUST;
|
||||
tdefs[ORDER_LINE].base = 150000 * ORDERS_PER_CUST;
|
||||
tdefs[PART_PSUPP].base = 200000;
|
||||
tdefs[NATION].base = NATIONS_MAX;
|
||||
tdefs[REGION].base = NATIONS_MAX;
|
||||
|
||||
if (flt_scale < MIN_SCALE) {
|
||||
int i;
|
||||
int int_scale;
|
||||
|
||||
base_context.scale_factor = 1;
|
||||
int_scale = (int)(1000 * flt_scale);
|
||||
for (i = PART; i < REGION; i++) {
|
||||
tdefs[i].base = (DSS_HUGE)(int_scale * tdefs[i].base) / 1000;
|
||||
if (tdefs[i].base < 1) {
|
||||
tdefs[i].base = 1;
|
||||
}
|
||||
}
|
||||
} else {
|
||||
base_context.scale_factor = (long)flt_scale;
|
||||
}
|
||||
|
||||
if (current_step >= children) {
|
||||
return;
|
||||
}
|
||||
|
||||
load_dists(10 * 1024 * 1024, &base_context); // 10MiB
|
||||
/* have to do this after init */
|
||||
tdefs[NATION].base = nations.count;
|
||||
tdefs[REGION].base = regions.count;
|
||||
|
||||
auto &catalog = Catalog::GetCatalog(context, catalog_name);
|
||||
|
||||
TPCHDBgenParameters parameters(context, catalog, schema, suffix);
|
||||
#ifndef DUCKDB_NO_THREADS
|
||||
bool explicit_partial_generation = children > 1 && current_step != -1;
|
||||
auto thread_count = TaskScheduler::GetScheduler(context).NumberOfThreads();
|
||||
if (explicit_partial_generation || thread_count <= 1) {
|
||||
#endif
|
||||
// if we are doing explicit partial generation the parallelism is managed outside of dbgen
|
||||
// only generate the chunk we are interested in
|
||||
TPCHDataAppender appender(context, parameters, base_context, BaseAppender::DEFAULT_FLUSH_COUNT);
|
||||
appender.AppendData(children, current_step);
|
||||
appender.Flush();
|
||||
#ifndef DUCKDB_NO_THREADS
|
||||
} else {
|
||||
// we split into 20 children per scale factor by default
|
||||
static constexpr idx_t CHILDREN_PER_SCALE_FACTOR = 20;
|
||||
idx_t child_count;
|
||||
if (flt_scale < 1) {
|
||||
child_count = 1;
|
||||
} else {
|
||||
child_count = MinValue<idx_t>(static_cast<idx_t>(CHILDREN_PER_SCALE_FACTOR * flt_scale), MAX_CHILDREN);
|
||||
}
|
||||
idx_t step = 0;
|
||||
vector<TPCHDataAppender> finished_appenders;
|
||||
while(step < child_count) {
|
||||
// launch N threads
|
||||
vector<TPCHDataAppender> new_appenders;
|
||||
vector<std::thread> threads;
|
||||
idx_t launched_step = step;
|
||||
// initialize the appenders for each thread
|
||||
// note we prevent the threads themselves from flushing the appenders by specifying a very high flush count here
|
||||
for(idx_t thr_idx = 0; thr_idx < thread_count && launched_step < child_count; thr_idx++, launched_step++) {
|
||||
new_appenders.emplace_back(context, parameters, base_context, NumericLimits<int64_t>::Maximum());
|
||||
}
|
||||
// launch the threads
|
||||
for(idx_t thr_idx = 0; thr_idx < new_appenders.size(); thr_idx++) {
|
||||
threads.emplace_back(ParallelTPCHAppend, &new_appenders[thr_idx], child_count, step);
|
||||
step++;
|
||||
}
|
||||
ErrorData error;
|
||||
try {
|
||||
// flush the previous batch of appenders while waiting (if any are there)
|
||||
// now flush the appenders in-order
|
||||
for(auto &appender : finished_appenders) {
|
||||
appender.Flush();
|
||||
}
|
||||
} catch(std::exception &ex) {
|
||||
error = ErrorData(ex);
|
||||
}
|
||||
finished_appenders.clear();
|
||||
// wait for all threads to finish
|
||||
for(auto &thread : threads) {
|
||||
thread.join();
|
||||
}
|
||||
if (error.HasError()) {
|
||||
error.Throw();
|
||||
}
|
||||
finished_appenders = std::move(new_appenders);
|
||||
}
|
||||
// flush the final batch of appenders
|
||||
for(auto &appender : finished_appenders) {
|
||||
appender.Flush();
|
||||
}
|
||||
}
|
||||
#endif
|
||||
cleanup_dists();
|
||||
}
|
||||
|
||||
string DBGenWrapper::GetQuery(int query) {
|
||||
if (query <= 0 || query > TPCH_QUERIES_COUNT) {
|
||||
throw SyntaxException("Out of range TPC-H query number %d", query);
|
||||
}
|
||||
return TPCH_QUERIES[query - 1];
|
||||
}
|
||||
|
||||
string DBGenWrapper::GetAnswer(double sf, int query) {
|
||||
if (query <= 0 || query > TPCH_QUERIES_COUNT) {
|
||||
throw SyntaxException("Out of range TPC-H query number %d", query);
|
||||
}
|
||||
const char *answer;
|
||||
if (sf == 0.01) {
|
||||
answer = TPCH_ANSWERS_SF0_01[query - 1];
|
||||
} else if (sf == 0.1) {
|
||||
answer = TPCH_ANSWERS_SF0_1[query - 1];
|
||||
} else if (sf == 1) {
|
||||
answer = TPCH_ANSWERS_SF1[query - 1];
|
||||
} else {
|
||||
throw NotImplementedException("Don't have TPC-H answers for SF %llf!", sf);
|
||||
}
|
||||
return answer;
|
||||
}
|
||||
|
||||
} // namespace tpch
|
||||
85
external/duckdb/extension/tpch/dbgen/dbgen_gunk.cpp
vendored
Normal file
85
external/duckdb/extension/tpch/dbgen/dbgen_gunk.cpp
vendored
Normal file
@@ -0,0 +1,85 @@
|
||||
/*
|
||||
* Copyright owned by the Transaction Processing Performance Council.
|
||||
*
|
||||
* A copy of the license is included under extension/tpch/dbgen/LICENSE
|
||||
* in this repository.
|
||||
*
|
||||
* You may not use this file except in compliance with the License.
|
||||
*
|
||||
* THE TPC SOFTWARE IS AVAILABLE WITHOUT CHARGE FROM TPC.
|
||||
*/
|
||||
#include "dbgen/dbgen_gunk.hpp"
|
||||
|
||||
#include "dbgen/dss.h"
|
||||
#include "dbgen/dsstypes.h"
|
||||
|
||||
void load_dists(long textBufferSize, DBGenContext *ctx) {
|
||||
read_dist(tpch_env_config(DIST_TAG, DIST_DFLT), "p_cntr", &p_cntr_set);
|
||||
read_dist(tpch_env_config(DIST_TAG, DIST_DFLT), "colors", &colors);
|
||||
read_dist(tpch_env_config(DIST_TAG, DIST_DFLT), "p_types", &p_types_set);
|
||||
read_dist(tpch_env_config(DIST_TAG, DIST_DFLT), "nations", &nations);
|
||||
read_dist(tpch_env_config(DIST_TAG, DIST_DFLT), "regions", ®ions);
|
||||
read_dist(tpch_env_config(DIST_TAG, DIST_DFLT), "o_oprio", &o_priority_set);
|
||||
read_dist(tpch_env_config(DIST_TAG, DIST_DFLT), "instruct", &l_instruct_set);
|
||||
read_dist(tpch_env_config(DIST_TAG, DIST_DFLT), "smode", &l_smode_set);
|
||||
read_dist(tpch_env_config(DIST_TAG, DIST_DFLT), "category", &l_category_set);
|
||||
read_dist(tpch_env_config(DIST_TAG, DIST_DFLT), "rflag", &l_rflag_set);
|
||||
read_dist(tpch_env_config(DIST_TAG, DIST_DFLT), "msegmnt", &c_mseg_set);
|
||||
|
||||
/* load the distributions that contain text generation */
|
||||
read_dist(tpch_env_config(DIST_TAG, DIST_DFLT), "nouns", &nouns);
|
||||
read_dist(tpch_env_config(DIST_TAG, DIST_DFLT), "verbs", &verbs);
|
||||
read_dist(tpch_env_config(DIST_TAG, DIST_DFLT), "adjectives", &adjectives);
|
||||
read_dist(tpch_env_config(DIST_TAG, DIST_DFLT), "adverbs", &adverbs);
|
||||
read_dist(tpch_env_config(DIST_TAG, DIST_DFLT), "auxillaries", &auxillaries);
|
||||
read_dist(tpch_env_config(DIST_TAG, DIST_DFLT), "terminators", &terminators);
|
||||
read_dist(tpch_env_config(DIST_TAG, DIST_DFLT), "articles", &articles);
|
||||
read_dist(tpch_env_config(DIST_TAG, DIST_DFLT), "prepositions", &prepositions);
|
||||
read_dist(tpch_env_config(DIST_TAG, DIST_DFLT), "grammar", &grammar);
|
||||
read_dist(tpch_env_config(DIST_TAG, DIST_DFLT), "np", &np);
|
||||
read_dist(tpch_env_config(DIST_TAG, DIST_DFLT), "vp", &vp);
|
||||
|
||||
/* populate the text buffer used to generate random text */
|
||||
init_text_pool(textBufferSize, ctx);
|
||||
}
|
||||
|
||||
static void cleanup_dist(distribution *target) {
|
||||
if (!target) {
|
||||
return;
|
||||
}
|
||||
if (target->list) {
|
||||
for (int i = 0; i < target->count; i++) {
|
||||
if (target->list[i].text) {
|
||||
free(target->list[i].text);
|
||||
}
|
||||
}
|
||||
free(target->list);
|
||||
}
|
||||
}
|
||||
|
||||
void cleanup_dists(void) {
|
||||
cleanup_dist(&p_cntr_set);
|
||||
cleanup_dist(&colors);
|
||||
cleanup_dist(&p_types_set);
|
||||
cleanup_dist(&nations);
|
||||
cleanup_dist(®ions);
|
||||
cleanup_dist(&o_priority_set);
|
||||
cleanup_dist(&l_instruct_set);
|
||||
cleanup_dist(&l_smode_set);
|
||||
cleanup_dist(&l_category_set);
|
||||
cleanup_dist(&l_rflag_set);
|
||||
cleanup_dist(&c_mseg_set);
|
||||
cleanup_dist(&nouns);
|
||||
cleanup_dist(&verbs);
|
||||
cleanup_dist(&adjectives);
|
||||
cleanup_dist(&adverbs);
|
||||
cleanup_dist(&auxillaries);
|
||||
cleanup_dist(&terminators);
|
||||
cleanup_dist(&articles);
|
||||
cleanup_dist(&prepositions);
|
||||
cleanup_dist(&grammar);
|
||||
cleanup_dist(&np);
|
||||
cleanup_dist(&vp);
|
||||
|
||||
free_text_pool();
|
||||
}
|
||||
148
external/duckdb/extension/tpch/dbgen/include/dbgen/config.h
vendored
Normal file
148
external/duckdb/extension/tpch/dbgen/include/dbgen/config.h
vendored
Normal file
@@ -0,0 +1,148 @@
|
||||
/*
|
||||
* Copyright owned by the Transaction Processing Performance Council.
|
||||
*
|
||||
* A copy of the license is included under extension/tpch/dbgen/LICENSE
|
||||
* in this repository.
|
||||
*
|
||||
* You may not use this file except in compliance with the License.
|
||||
*
|
||||
* THE TPC SOFTWARE IS AVAILABLE WITHOUT CHARGE FROM TPC.
|
||||
*/
|
||||
/*
|
||||
* this file allows the compilation of DBGEN to be tailored to specific
|
||||
* architectures and operating systems. Some options are grouped
|
||||
* together to allow easier compilation on a given vendor's hardware.
|
||||
*
|
||||
* The following #defines will effect the code:
|
||||
* SEPARATOR -- character used to separate fields in flat files
|
||||
* STDLIB_HAS_GETOPT -- to prevent confilcts with gloabal getopt()
|
||||
* MDY_DATE -- generate dates as MM-DD-YY
|
||||
* WIN32 -- support for WindowsNT
|
||||
* DSS_HUGE -- 64 bit data type
|
||||
* HUGE_FORMAT -- printf string for 64 bit data type
|
||||
* EOL_HANDLING -- flat files don't need final column separator
|
||||
*
|
||||
* Certain defines must be provided in the makefile:
|
||||
* MACHINE defines
|
||||
* ==========
|
||||
* ATT -- getopt() handling
|
||||
* HP -- posix source inclusion differences
|
||||
* IBM -- posix source inclusion differences
|
||||
* SGI -- getopt() handling
|
||||
* SUN -- getopt() handling
|
||||
* LINUX
|
||||
* WIN32 -- for WINDOWS
|
||||
*
|
||||
* DATABASE defines
|
||||
* ================
|
||||
* DB2 -- use DB2 dialect in QGEN
|
||||
* INFORMIX -- use Informix dialect in QGEN
|
||||
* SQLSERVER -- use SQLSERVER dialect in QGEN
|
||||
* SYBASE -- use Sybase dialect in QGEN
|
||||
* TDAT -- use Teradata dialect in QGEN
|
||||
*
|
||||
* WORKLOAD defines
|
||||
* ================
|
||||
* TPCH -- make will create TPCH (set in makefile)
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#ifndef DBNAME
|
||||
#define DBNAME "dss"
|
||||
#endif
|
||||
|
||||
#ifndef MAC
|
||||
#define MAC
|
||||
#endif
|
||||
|
||||
#ifndef ORACLE
|
||||
#define ORACLE
|
||||
#endif
|
||||
|
||||
#ifndef TPCH
|
||||
#define TPCH
|
||||
#endif
|
||||
|
||||
#ifdef ATT
|
||||
#define STDLIB_HAS_GETOPT
|
||||
#ifdef SQLSERVER
|
||||
#define WIN32
|
||||
#else
|
||||
#define DSS_HUGE long long
|
||||
#define RNG_A 6364136223846793005ull
|
||||
#define RNG_C 1ull
|
||||
#define HUGE_FORMAT "%LLd"
|
||||
#define HUGE_DATE_FORMAT "%02LLd"
|
||||
#endif /* SQLSERVER or MP/RAS */
|
||||
#endif /* ATT */
|
||||
|
||||
#ifdef HP
|
||||
#define _INCLUDE_POSIX_SOURCE
|
||||
#define STDLIB_HAS_GETOPT
|
||||
#define DSS_HUGE long
|
||||
#define HUGE_COUNT 2
|
||||
#define HUGE_FORMAT "%ld"
|
||||
#define HUGE_DATE_FORMAT "%02lld"
|
||||
#define RNG_C 1ull
|
||||
#define RNG_A 6364136223846793005ull
|
||||
#endif /* HP */
|
||||
|
||||
#ifdef IBM
|
||||
#define STDLIB_HAS_GETOPT
|
||||
#define DSS_HUGE long long
|
||||
#define HUGE_FORMAT "%lld"
|
||||
#define HUGE_DATE_FORMAT "%02lld"
|
||||
#define RNG_A 6364136223846793005ull
|
||||
#define RNG_C 1ull
|
||||
#endif /* IBM */
|
||||
|
||||
#ifdef LINUX
|
||||
#define STDLIB_HAS_GETOPT
|
||||
#define DSS_HUGE long long int
|
||||
#define HUGE_FORMAT "%lld"
|
||||
#define HUGE_DATE_FORMAT "%02lld"
|
||||
#define RNG_A 6364136223846793005ull
|
||||
#define RNG_C 1ull
|
||||
#endif /* LINUX */
|
||||
|
||||
#ifdef MAC
|
||||
//#define _POSIX_C_SOURCE 200112L
|
||||
//#define _POSIX_SOURCE
|
||||
#define STDLIB_HAS_GETOPT
|
||||
#define SUPPORT_64BITS
|
||||
#define DSS_HUGE long long
|
||||
#define HUGE_FORMAT "%ld"
|
||||
#define HUGE_DATE_FORMAT "%02ld"
|
||||
#define RNG_A 6364136223846793005ull
|
||||
#define RNG_C 1ull
|
||||
#endif /* MAC */
|
||||
|
||||
#ifdef SUN
|
||||
#define STDLIB_HAS_GETOPT
|
||||
#define RNG_A 6364136223846793005ull
|
||||
#define RNG_C 1ull
|
||||
#define DSS_HUGE long long
|
||||
#define HUGE_FORMAT "%lld"
|
||||
#define HUGE_DATE_FORMAT "%02lld"
|
||||
#endif /* SUN */
|
||||
|
||||
#ifdef SGI
|
||||
#define STDLIB_HAS_GETOPT
|
||||
#define DSS_HUGE __int64_t
|
||||
#endif /* SGI */
|
||||
|
||||
#if (defined(WIN32) && !defined(_POSIX_))
|
||||
#define PATH_SEP '\\'
|
||||
#define DSS_HUGE __int64
|
||||
#define RNG_A 6364136223846793005uI64
|
||||
#define RNG_C 1uI64
|
||||
#define HUGE_FORMAT "%I64d"
|
||||
#define HUGE_DATE_FORMAT "%02I64d"
|
||||
/* requried by move to Visual Studio 2005 */
|
||||
#define strdup(x) _strdup(x)
|
||||
#endif /* WIN32 */
|
||||
|
||||
#ifndef PATH_SEP
|
||||
#define PATH_SEP '/'
|
||||
#endif /* PATH_SEP */
|
||||
36
external/duckdb/extension/tpch/dbgen/include/dbgen/dbgen.hpp
vendored
Normal file
36
external/duckdb/extension/tpch/dbgen/include/dbgen/dbgen.hpp
vendored
Normal file
@@ -0,0 +1,36 @@
|
||||
//===----------------------------------------------------------------------===//
|
||||
//
|
||||
// DuckDB
|
||||
//
|
||||
// dbgen.hpp
|
||||
//
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "duckdb.hpp"
|
||||
#include "duckdb/catalog/catalog.hpp"
|
||||
#include "duckdb/common/types/data_chunk.hpp"
|
||||
|
||||
namespace duckdb {
|
||||
class ClientContext;
|
||||
}
|
||||
|
||||
namespace tpch {
|
||||
|
||||
struct DBGenWrapper {
|
||||
//! Create the TPC-H tables in the given catalog / schema with the given suffix
|
||||
static void CreateTPCHSchema(duckdb::ClientContext &context, std::string catalog, std::string schema,
|
||||
std::string suffix);
|
||||
//! Load the TPC-H data of the given scale factor
|
||||
static void LoadTPCHData(duckdb::ClientContext &context, double sf, std::string catalog, std::string schema,
|
||||
std::string suffix, int children, int step);
|
||||
|
||||
//! Gets the specified TPC-H Query number as a string
|
||||
static std::string GetQuery(int query);
|
||||
//! Returns the CSV answer of a TPC-H query
|
||||
static std::string GetAnswer(double sf, int query);
|
||||
};
|
||||
|
||||
} // namespace tpch
|
||||
16
external/duckdb/extension/tpch/dbgen/include/dbgen/dbgen_gunk.hpp
vendored
Normal file
16
external/duckdb/extension/tpch/dbgen/include/dbgen/dbgen_gunk.hpp
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
/*
|
||||
* Copyright owned by the Transaction Processing Performance Council.
|
||||
*
|
||||
* A copy of the license is included under extension/tpch/dbgen/LICENSE
|
||||
* in this repository.
|
||||
*
|
||||
* You may not use this file except in compliance with the License.
|
||||
*
|
||||
* THE TPC SOFTWARE IS AVAILABLE WITHOUT CHARGE FROM TPC.
|
||||
*/
|
||||
#pragma once
|
||||
|
||||
struct DBGenContext;
|
||||
|
||||
void load_dists(long textBufferSize, DBGenContext *ctx);
|
||||
void cleanup_dists(void);
|
||||
850
external/duckdb/extension/tpch/dbgen/include/dbgen/dists_dss.h
vendored
Normal file
850
external/duckdb/extension/tpch/dbgen/include/dbgen/dists_dss.h
vendored
Normal file
@@ -0,0 +1,850 @@
|
||||
/*
|
||||
* Copyright owned by the Transaction Processing Performance Council.
|
||||
*
|
||||
* A copy of the license is included under extension/tpch/dbgen/LICENSE
|
||||
* in this repository.
|
||||
*
|
||||
* You may not use this file except in compliance with the License.
|
||||
*
|
||||
* THE TPC SOFTWARE IS AVAILABLE WITHOUT CHARGE FROM TPC.
|
||||
*/
|
||||
const char *dists_dss = "#\n"
|
||||
"# $Id: dists.dss,v 1.2 2005/01/03 20:08:58 jms Exp $\n"
|
||||
"#\n"
|
||||
"# Revision History\n"
|
||||
"# ===================\n"
|
||||
"# $Log: dists.dss,v $\n"
|
||||
"# Revision 1.2 2005/01/03 20:08:58 jms\n"
|
||||
"# change line terminations\n"
|
||||
"#\n"
|
||||
"# Revision 1.1.1.1 2004/11/24 23:31:46 jms\n"
|
||||
"# re-establish external server\n"
|
||||
"#\n"
|
||||
"# Revision 1.1.1.1 2003/04/03 18:54:21 jms\n"
|
||||
"# recreation after CVS crash\n"
|
||||
"#\n"
|
||||
"# Revision 1.1.1.1 2003/04/03 18:54:21 jms\n"
|
||||
"# initial checkin\n"
|
||||
"#\n"
|
||||
"#\n"
|
||||
"#\n"
|
||||
"#\n"
|
||||
"# distributions have the following format:\n"
|
||||
"#\n"
|
||||
"# <token> | <weight> # comment\n"
|
||||
"#\n"
|
||||
"# Distributions are used to bias the selection of a token \n"
|
||||
"# based on its associated weight. The list of tokens and values \n"
|
||||
"# between the keywords BEGIN and END define the distribution named after\n"
|
||||
"# the BEGIN. A uniformly random value from [0, sum(weights)]\n"
|
||||
"# will be chosen and the first token whose cumulative weight is greater "
|
||||
"than\n"
|
||||
"# or equal to the result will be returned. In essence, the weights for "
|
||||
"each\n"
|
||||
"# token represent its relative weight within a distribution.\n"
|
||||
"#\n"
|
||||
"# one special token is defined: count (number of data points in the \n"
|
||||
"# distribution). It MUST be defined for each named distribution.\n"
|
||||
"#-----------------------------------------------------------------------\n"
|
||||
"# currently defined distributions and their use:\n"
|
||||
"# NAME FIELD/NOTES\n"
|
||||
"# ======== ==============\n"
|
||||
"# category parts.category\n"
|
||||
"# container parts.container\n"
|
||||
"# instruct shipping instructions\n"
|
||||
"# msegmnt market segment\n"
|
||||
"# names parts.name\n"
|
||||
"# nations must be ordered along with regions\n"
|
||||
"# nations2 stand alone nations set for use with qgen\n"
|
||||
"# o_prio order priority\n"
|
||||
"# regions must be ordered along with nations\n"
|
||||
"# rflag lineitems.returnflag\n"
|
||||
"# types parts.type\n"
|
||||
"# colors embedded string creation; CANNOT BE USED FOR pick_str(), "
|
||||
"agg_str() perturbs order\n"
|
||||
"# articles comment generation \n"
|
||||
"# nouns \n"
|
||||
"# verbs \n"
|
||||
"# adverbs \n"
|
||||
"# auxillaries \n"
|
||||
"# prepositions\n"
|
||||
"# terminators\n"
|
||||
"# grammar sentence formation\n"
|
||||
"# np\n"
|
||||
"# vp\n"
|
||||
"###\n"
|
||||
"# category\n"
|
||||
"###\n"
|
||||
"BEGIN category\n"
|
||||
"COUNT|5\n"
|
||||
"FURNITURE|1\n"
|
||||
"STORAGE EQUIP|1\n"
|
||||
"TOOLS|1\n"
|
||||
"MACHINE TOOLS|1\n"
|
||||
"OTHER|1\n"
|
||||
"END category\n"
|
||||
"###\n"
|
||||
"# container\n"
|
||||
"###\n"
|
||||
"begin p_cntr\n"
|
||||
"count|40\n"
|
||||
"SM CASE|1\n"
|
||||
"SM BOX|1\n"
|
||||
"SM BAG|1\n"
|
||||
"SM JAR|1\n"
|
||||
"SM PACK|1\n"
|
||||
"SM PKG|1\n"
|
||||
"SM CAN|1\n"
|
||||
"SM DRUM|1\n"
|
||||
"LG CASE|1\n"
|
||||
"LG BOX|1\n"
|
||||
"LG BAG|1\n"
|
||||
"LG JAR|1\n"
|
||||
"LG PACK|1\n"
|
||||
"LG PKG|1\n"
|
||||
"LG CAN|1\n"
|
||||
"LG DRUM|1\n"
|
||||
"MED CASE|1\n"
|
||||
"MED BOX|1\n"
|
||||
"MED BAG|1\n"
|
||||
"MED JAR|1\n"
|
||||
"MED PACK|1\n"
|
||||
"MED PKG|1\n"
|
||||
"MED CAN|1\n"
|
||||
"MED DRUM|1\n"
|
||||
"JUMBO CASE|1\n"
|
||||
"JUMBO BOX|1\n"
|
||||
"JUMBO BAG|1\n"
|
||||
"JUMBO JAR|1\n"
|
||||
"JUMBO PACK|1\n"
|
||||
"JUMBO PKG|1\n"
|
||||
"JUMBO CAN|1\n"
|
||||
"JUMBO DRUM|1\n"
|
||||
"WRAP CASE|1\n"
|
||||
"WRAP BOX|1\n"
|
||||
"WRAP BAG|1\n"
|
||||
"WRAP JAR|1\n"
|
||||
"WRAP PACK|1\n"
|
||||
"WRAP PKG|1\n"
|
||||
"WRAP CAN|1\n"
|
||||
"WRAP DRUM|1\n"
|
||||
"end p_cntr\n"
|
||||
"###\n"
|
||||
"# instruct\n"
|
||||
"###\n"
|
||||
"begin instruct\n"
|
||||
"count|4\n"
|
||||
"DELIVER IN PERSON|1\n"
|
||||
"COLLECT COD|1\n"
|
||||
"TAKE BACK RETURN|1\n"
|
||||
"NONE|1\n"
|
||||
"end instruct\n"
|
||||
"###\n"
|
||||
"# msegmnt\n"
|
||||
"###\n"
|
||||
"begin msegmnt\n"
|
||||
"count|5\n"
|
||||
"AUTOMOBILE|1\n"
|
||||
"BUILDING|1\n"
|
||||
"FURNITURE|1\n"
|
||||
"HOUSEHOLD|1\n"
|
||||
"MACHINERY|1\n"
|
||||
"end msegmnt\n"
|
||||
"###\n"
|
||||
"# names\n"
|
||||
"###\n"
|
||||
"begin p_names\n"
|
||||
"COUNT|4\n"
|
||||
"CLEANER|1\n"
|
||||
"SOAP|1\n"
|
||||
"DETERGENT|1\n"
|
||||
"EXTRA|1\n"
|
||||
"end p_names\n"
|
||||
"###\n"
|
||||
"# nations\n"
|
||||
"# NOTE: this is a special case; the weights here are adjustments to\n"
|
||||
"# map correctly into the regions table, and are *NOT* cummulative\n"
|
||||
"# values to mimic a distribution\n"
|
||||
"###\n"
|
||||
"begin nations\n"
|
||||
"count|25\n"
|
||||
"ALGERIA|0\n"
|
||||
"ARGENTINA|1\n"
|
||||
"BRAZIL|0\n"
|
||||
"CANADA|0\n"
|
||||
"EGYPT|3\n"
|
||||
"ETHIOPIA|-4\n"
|
||||
"FRANCE|3\n"
|
||||
"GERMANY|0\n"
|
||||
"INDIA|-1\n"
|
||||
"INDONESIA|0\n"
|
||||
"IRAN|2\n"
|
||||
"IRAQ|0\n"
|
||||
"JAPAN|-2\n"
|
||||
"JORDAN|2\n"
|
||||
"KENYA|-4\n"
|
||||
"MOROCCO|0\n"
|
||||
"MOZAMBIQUE|0\n"
|
||||
"PERU|1\n"
|
||||
"CHINA|1\n"
|
||||
"ROMANIA|1\n"
|
||||
"SAUDI ARABIA|1\n"
|
||||
"VIETNAM|-2\n"
|
||||
"RUSSIA|1\n"
|
||||
"UNITED KINGDOM|0\n"
|
||||
"UNITED STATES|-2\n"
|
||||
"end nations\n"
|
||||
"###\n"
|
||||
"# nations2\n"
|
||||
"###\n"
|
||||
"begin nations2\n"
|
||||
"count|25\n"
|
||||
"ALGERIA|1\n"
|
||||
"ARGENTINA|1\n"
|
||||
"BRAZIL|1\n"
|
||||
"CANADA|1\n"
|
||||
"EGYPT|1\n"
|
||||
"ETHIOPIA|1\n"
|
||||
"FRANCE|1\n"
|
||||
"GERMANY|1\n"
|
||||
"INDIA|1\n"
|
||||
"INDONESIA|1\n"
|
||||
"IRAN|1\n"
|
||||
"IRAQ|1\n"
|
||||
"JAPAN|1\n"
|
||||
"JORDAN|1\n"
|
||||
"KENYA|1\n"
|
||||
"MOROCCO|1\n"
|
||||
"MOZAMBIQUE|1\n"
|
||||
"PERU|1\n"
|
||||
"CHINA|1\n"
|
||||
"ROMANIA|1\n"
|
||||
"SAUDI ARABIA|1\n"
|
||||
"VIETNAM|1\n"
|
||||
"RUSSIA|1\n"
|
||||
"UNITED KINGDOM|1\n"
|
||||
"UNITED STATES|1\n"
|
||||
"end nations2\n"
|
||||
"###\n"
|
||||
"# regions\n"
|
||||
"###\n"
|
||||
"begin regions\n"
|
||||
"count|5\n"
|
||||
"AFRICA|1\n"
|
||||
"AMERICA|1\n"
|
||||
"ASIA|1\n"
|
||||
"EUROPE|1\n"
|
||||
"MIDDLE EAST|1\n"
|
||||
"end regions\n"
|
||||
"###\n"
|
||||
"# o_prio\n"
|
||||
"###\n"
|
||||
"begin o_oprio\n"
|
||||
"count|5\n"
|
||||
"1-URGENT|1\n"
|
||||
"2-HIGH|1\n"
|
||||
"3-MEDIUM|1\n"
|
||||
"4-NOT SPECIFIED|1\n"
|
||||
"5-LOW|1\n"
|
||||
"end o_oprio\n"
|
||||
"###\n"
|
||||
"# rflag\n"
|
||||
"###\n"
|
||||
"begin rflag\n"
|
||||
"count|2\n"
|
||||
"R|1\n"
|
||||
"A|1\n"
|
||||
"end rflag\n"
|
||||
"###\n"
|
||||
"# smode\n"
|
||||
"###\n"
|
||||
"begin smode\n"
|
||||
"count|7\n"
|
||||
"REG AIR|1\n"
|
||||
"AIR|1\n"
|
||||
"RAIL|1\n"
|
||||
"TRUCK|1\n"
|
||||
"MAIL|1\n"
|
||||
"FOB|1\n"
|
||||
"SHIP|1\n"
|
||||
"end smode\n"
|
||||
"###\n"
|
||||
"# types\n"
|
||||
"###\n"
|
||||
"begin p_types\n"
|
||||
"COUNT|150\n"
|
||||
"STANDARD ANODIZED TIN|1\n"
|
||||
"STANDARD ANODIZED NICKEL|1\n"
|
||||
"STANDARD ANODIZED BRASS|1\n"
|
||||
"STANDARD ANODIZED STEEL|1\n"
|
||||
"STANDARD ANODIZED COPPER|1\n"
|
||||
"STANDARD BURNISHED TIN|1\n"
|
||||
"STANDARD BURNISHED NICKEL|1\n"
|
||||
"STANDARD BURNISHED BRASS|1\n"
|
||||
"STANDARD BURNISHED STEEL|1\n"
|
||||
"STANDARD BURNISHED COPPER|1\n"
|
||||
"STANDARD PLATED TIN|1\n"
|
||||
"STANDARD PLATED NICKEL|1\n"
|
||||
"STANDARD PLATED BRASS|1\n"
|
||||
"STANDARD PLATED STEEL|1\n"
|
||||
"STANDARD PLATED COPPER|1\n"
|
||||
"STANDARD POLISHED TIN|1\n"
|
||||
"STANDARD POLISHED NICKEL|1\n"
|
||||
"STANDARD POLISHED BRASS|1\n"
|
||||
"STANDARD POLISHED STEEL|1\n"
|
||||
"STANDARD POLISHED COPPER|1\n"
|
||||
"STANDARD BRUSHED TIN|1\n"
|
||||
"STANDARD BRUSHED NICKEL|1\n"
|
||||
"STANDARD BRUSHED BRASS|1\n"
|
||||
"STANDARD BRUSHED STEEL|1\n"
|
||||
"STANDARD BRUSHED COPPER|1\n"
|
||||
"SMALL ANODIZED TIN|1\n"
|
||||
"SMALL ANODIZED NICKEL|1\n"
|
||||
"SMALL ANODIZED BRASS|1\n"
|
||||
"SMALL ANODIZED STEEL|1\n"
|
||||
"SMALL ANODIZED COPPER|1\n"
|
||||
"SMALL BURNISHED TIN|1\n"
|
||||
"SMALL BURNISHED NICKEL|1\n"
|
||||
"SMALL BURNISHED BRASS|1\n"
|
||||
"SMALL BURNISHED STEEL|1\n"
|
||||
"SMALL BURNISHED COPPER|1\n"
|
||||
"SMALL PLATED TIN|1\n"
|
||||
"SMALL PLATED NICKEL|1\n"
|
||||
"SMALL PLATED BRASS|1\n"
|
||||
"SMALL PLATED STEEL|1\n"
|
||||
"SMALL PLATED COPPER|1\n"
|
||||
"SMALL POLISHED TIN|1\n"
|
||||
"SMALL POLISHED NICKEL|1\n"
|
||||
"SMALL POLISHED BRASS|1\n"
|
||||
"SMALL POLISHED STEEL|1\n"
|
||||
"SMALL POLISHED COPPER|1\n"
|
||||
"SMALL BRUSHED TIN|1\n"
|
||||
"SMALL BRUSHED NICKEL|1\n"
|
||||
"SMALL BRUSHED BRASS|1\n"
|
||||
"SMALL BRUSHED STEEL|1\n"
|
||||
"SMALL BRUSHED COPPER|1\n"
|
||||
"MEDIUM ANODIZED TIN|1\n"
|
||||
"MEDIUM ANODIZED NICKEL|1\n"
|
||||
"MEDIUM ANODIZED BRASS|1\n"
|
||||
"MEDIUM ANODIZED STEEL|1\n"
|
||||
"MEDIUM ANODIZED COPPER|1\n"
|
||||
"MEDIUM BURNISHED TIN|1\n"
|
||||
"MEDIUM BURNISHED NICKEL|1\n"
|
||||
"MEDIUM BURNISHED BRASS|1\n"
|
||||
"MEDIUM BURNISHED STEEL|1\n"
|
||||
"MEDIUM BURNISHED COPPER|1\n"
|
||||
"MEDIUM PLATED TIN|1\n"
|
||||
"MEDIUM PLATED NICKEL|1\n"
|
||||
"MEDIUM PLATED BRASS|1\n"
|
||||
"MEDIUM PLATED STEEL|1\n"
|
||||
"MEDIUM PLATED COPPER|1\n"
|
||||
"MEDIUM POLISHED TIN|1\n"
|
||||
"MEDIUM POLISHED NICKEL|1\n"
|
||||
"MEDIUM POLISHED BRASS|1\n"
|
||||
"MEDIUM POLISHED STEEL|1\n"
|
||||
"MEDIUM POLISHED COPPER|1\n"
|
||||
"MEDIUM BRUSHED TIN|1\n"
|
||||
"MEDIUM BRUSHED NICKEL|1\n"
|
||||
"MEDIUM BRUSHED BRASS|1\n"
|
||||
"MEDIUM BRUSHED STEEL|1\n"
|
||||
"MEDIUM BRUSHED COPPER|1\n"
|
||||
"LARGE ANODIZED TIN|1\n"
|
||||
"LARGE ANODIZED NICKEL|1\n"
|
||||
"LARGE ANODIZED BRASS|1\n"
|
||||
"LARGE ANODIZED STEEL|1\n"
|
||||
"LARGE ANODIZED COPPER|1\n"
|
||||
"LARGE BURNISHED TIN|1\n"
|
||||
"LARGE BURNISHED NICKEL|1\n"
|
||||
"LARGE BURNISHED BRASS|1\n"
|
||||
"LARGE BURNISHED STEEL|1\n"
|
||||
"LARGE BURNISHED COPPER|1\n"
|
||||
"LARGE PLATED TIN|1\n"
|
||||
"LARGE PLATED NICKEL|1\n"
|
||||
"LARGE PLATED BRASS|1\n"
|
||||
"LARGE PLATED STEEL|1\n"
|
||||
"LARGE PLATED COPPER|1\n"
|
||||
"LARGE POLISHED TIN|1\n"
|
||||
"LARGE POLISHED NICKEL|1\n"
|
||||
"LARGE POLISHED BRASS|1\n"
|
||||
"LARGE POLISHED STEEL|1\n"
|
||||
"LARGE POLISHED COPPER|1\n"
|
||||
"LARGE BRUSHED TIN|1\n"
|
||||
"LARGE BRUSHED NICKEL|1\n"
|
||||
"LARGE BRUSHED BRASS|1\n"
|
||||
"LARGE BRUSHED STEEL|1\n"
|
||||
"LARGE BRUSHED COPPER|1\n"
|
||||
"ECONOMY ANODIZED TIN|1\n"
|
||||
"ECONOMY ANODIZED NICKEL|1\n"
|
||||
"ECONOMY ANODIZED BRASS|1\n"
|
||||
"ECONOMY ANODIZED STEEL|1\n"
|
||||
"ECONOMY ANODIZED COPPER|1\n"
|
||||
"ECONOMY BURNISHED TIN|1\n"
|
||||
"ECONOMY BURNISHED NICKEL|1\n"
|
||||
"ECONOMY BURNISHED BRASS|1\n"
|
||||
"ECONOMY BURNISHED STEEL|1\n"
|
||||
"ECONOMY BURNISHED COPPER|1\n"
|
||||
"ECONOMY PLATED TIN|1\n"
|
||||
"ECONOMY PLATED NICKEL|1\n"
|
||||
"ECONOMY PLATED BRASS|1\n"
|
||||
"ECONOMY PLATED STEEL|1\n"
|
||||
"ECONOMY PLATED COPPER|1\n"
|
||||
"ECONOMY POLISHED TIN|1\n"
|
||||
"ECONOMY POLISHED NICKEL|1\n"
|
||||
"ECONOMY POLISHED BRASS|1\n"
|
||||
"ECONOMY POLISHED STEEL|1\n"
|
||||
"ECONOMY POLISHED COPPER|1\n"
|
||||
"ECONOMY BRUSHED TIN|1\n"
|
||||
"ECONOMY BRUSHED NICKEL|1\n"
|
||||
"ECONOMY BRUSHED BRASS|1\n"
|
||||
"ECONOMY BRUSHED STEEL|1\n"
|
||||
"ECONOMY BRUSHED COPPER|1\n"
|
||||
"PROMO ANODIZED TIN|1\n"
|
||||
"PROMO ANODIZED NICKEL|1\n"
|
||||
"PROMO ANODIZED BRASS|1\n"
|
||||
"PROMO ANODIZED STEEL|1\n"
|
||||
"PROMO ANODIZED COPPER|1\n"
|
||||
"PROMO BURNISHED TIN|1\n"
|
||||
"PROMO BURNISHED NICKEL|1\n"
|
||||
"PROMO BURNISHED BRASS|1\n"
|
||||
"PROMO BURNISHED STEEL|1\n"
|
||||
"PROMO BURNISHED COPPER|1\n"
|
||||
"PROMO PLATED TIN|1\n"
|
||||
"PROMO PLATED NICKEL|1\n"
|
||||
"PROMO PLATED BRASS|1\n"
|
||||
"PROMO PLATED STEEL|1\n"
|
||||
"PROMO PLATED COPPER|1\n"
|
||||
"PROMO POLISHED TIN|1\n"
|
||||
"PROMO POLISHED NICKEL|1\n"
|
||||
"PROMO POLISHED BRASS|1\n"
|
||||
"PROMO POLISHED STEEL|1\n"
|
||||
"PROMO POLISHED COPPER|1\n"
|
||||
"PROMO BRUSHED TIN|1\n"
|
||||
"PROMO BRUSHED NICKEL|1\n"
|
||||
"PROMO BRUSHED BRASS|1\n"
|
||||
"PROMO BRUSHED STEEL|1\n"
|
||||
"PROMO BRUSHED COPPER|1\n"
|
||||
"end p_types\n"
|
||||
"###\n"
|
||||
"# colors\n"
|
||||
"# NOTE: This distribution CANNOT be used by pick_str(), since agg_str() "
|
||||
"perturbs its order\n"
|
||||
"###\n"
|
||||
"begin colors\n"
|
||||
"COUNT|92\n"
|
||||
"almond|1\n"
|
||||
"antique|1\n"
|
||||
"aquamarine|1\n"
|
||||
"azure|1\n"
|
||||
"beige|1\n"
|
||||
"bisque|1\n"
|
||||
"black|1\n"
|
||||
"blanched|1\n"
|
||||
"blue|1\n"
|
||||
"blush|1\n"
|
||||
"brown|1\n"
|
||||
"burlywood|1\n"
|
||||
"burnished|1\n"
|
||||
"chartreuse|1\n"
|
||||
"chiffon|1\n"
|
||||
"chocolate|1\n"
|
||||
"coral|1\n"
|
||||
"cornflower|1\n"
|
||||
"cornsilk|1\n"
|
||||
"cream|1\n"
|
||||
"cyan|1\n"
|
||||
"dark|1\n"
|
||||
"deep|1\n"
|
||||
"dim|1\n"
|
||||
"dodger|1\n"
|
||||
"drab|1\n"
|
||||
"firebrick|1\n"
|
||||
"floral|1\n"
|
||||
"forest|1\n"
|
||||
"frosted|1\n"
|
||||
"gainsboro|1\n"
|
||||
"ghost|1\n"
|
||||
"goldenrod|1\n"
|
||||
"green|1\n"
|
||||
"grey|1\n"
|
||||
"honeydew|1\n"
|
||||
"hot|1\n"
|
||||
"indian|1\n"
|
||||
"ivory|1\n"
|
||||
"khaki|1\n"
|
||||
"lace|1\n"
|
||||
"lavender|1\n"
|
||||
"lawn|1\n"
|
||||
"lemon|1\n"
|
||||
"light|1\n"
|
||||
"lime|1\n"
|
||||
"linen|1\n"
|
||||
"magenta|1\n"
|
||||
"maroon|1\n"
|
||||
"medium|1\n"
|
||||
"metallic|1\n"
|
||||
"midnight|1\n"
|
||||
"mint|1\n"
|
||||
"misty|1\n"
|
||||
"moccasin|1\n"
|
||||
"navajo|1\n"
|
||||
"navy|1\n"
|
||||
"olive|1\n"
|
||||
"orange|1\n"
|
||||
"orchid|1\n"
|
||||
"pale|1\n"
|
||||
"papaya|1\n"
|
||||
"peach|1\n"
|
||||
"peru|1\n"
|
||||
"pink|1\n"
|
||||
"plum|1\n"
|
||||
"powder|1\n"
|
||||
"puff|1\n"
|
||||
"purple|1\n"
|
||||
"red|1\n"
|
||||
"rose|1\n"
|
||||
"rosy|1\n"
|
||||
"royal|1\n"
|
||||
"saddle|1\n"
|
||||
"salmon|1\n"
|
||||
"sandy|1\n"
|
||||
"seashell|1\n"
|
||||
"sienna|1\n"
|
||||
"sky|1\n"
|
||||
"slate|1\n"
|
||||
"smoke|1\n"
|
||||
"snow|1\n"
|
||||
"spring|1\n"
|
||||
"steel|1\n"
|
||||
"tan|1\n"
|
||||
"thistle|1\n"
|
||||
"tomato|1\n"
|
||||
"turquoise|1\n"
|
||||
"violet|1\n"
|
||||
"wheat|1\n"
|
||||
"white|1\n"
|
||||
"yellow|1\n"
|
||||
"end colors\n"
|
||||
"################\n"
|
||||
"################\n"
|
||||
"## psuedo text distributions\n"
|
||||
"################\n"
|
||||
"################\n"
|
||||
"###\n"
|
||||
"# nouns\n"
|
||||
"###\n"
|
||||
"BEGIN nouns\n"
|
||||
"COUNT|45\n"
|
||||
"packages|40\n"
|
||||
"requests|40\n"
|
||||
"accounts|40\n"
|
||||
"deposits|40\n"
|
||||
"foxes|20\n"
|
||||
"ideas|20\n"
|
||||
"theodolites|20\n"
|
||||
"pinto beans|20\n"
|
||||
"instructions|20\n"
|
||||
"dependencies|10\n"
|
||||
"excuses|10\n"
|
||||
"platelets|10\n"
|
||||
"asymptotes|10\n"
|
||||
"courts|5\n"
|
||||
"dolphins|5\n"
|
||||
"multipliers|1\n"
|
||||
"sauternes|1\n"
|
||||
"warthogs|1\n"
|
||||
"frets|1\n"
|
||||
"dinos|1\n"
|
||||
"attainments|1\n"
|
||||
"somas|1\n"
|
||||
"Tiresias|1\n"
|
||||
"patterns|1\n"
|
||||
"forges|1\n"
|
||||
"braids|1\n"
|
||||
"frays|1\n"
|
||||
"warhorses|1\n"
|
||||
"dugouts|1\n"
|
||||
"notornis|1\n"
|
||||
"epitaphs|1\n"
|
||||
"pearls|1\n"
|
||||
"tithes|1\n"
|
||||
"waters|1\n"
|
||||
"orbits|1\n"
|
||||
"gifts|1\n"
|
||||
"sheaves|1\n"
|
||||
"depths|1\n"
|
||||
"sentiments|1\n"
|
||||
"decoys|1\n"
|
||||
"realms|1\n"
|
||||
"pains|1\n"
|
||||
"grouches|1\n"
|
||||
"escapades|1\n"
|
||||
"hockey players|1\n"
|
||||
"END nouns\n"
|
||||
"###\n"
|
||||
"# verbs\n"
|
||||
"###\n"
|
||||
"BEGIN verbs\n"
|
||||
"COUNT|40\n"
|
||||
"sleep|20\n"
|
||||
"wake|20\n"
|
||||
"are|20\n"
|
||||
"cajole|20\n"
|
||||
"haggle|20\n"
|
||||
"nag|10\n"
|
||||
"use|10\n"
|
||||
"boost|10\n"
|
||||
"affix|5\n"
|
||||
"detect|5\n"
|
||||
"integrate|5\n"
|
||||
"maintain|1\n"
|
||||
"nod|1\n"
|
||||
"was|1\n"
|
||||
"lose|1\n"
|
||||
"sublate|1\n"
|
||||
"solve|1\n"
|
||||
"thrash|1\n"
|
||||
"promise|1\n"
|
||||
"engage|1\n"
|
||||
"hinder|1\n"
|
||||
"print|1\n"
|
||||
"x-ray|1\n"
|
||||
"breach|1\n"
|
||||
"eat|1\n"
|
||||
"grow|1\n"
|
||||
"impress|1\n"
|
||||
"mold|1\n"
|
||||
"poach|1\n"
|
||||
"serve|1\n"
|
||||
"run|1\n"
|
||||
"dazzle|1\n"
|
||||
"snooze|1\n"
|
||||
"doze|1\n"
|
||||
"unwind|1\n"
|
||||
"kindle|1\n"
|
||||
"play|1\n"
|
||||
"hang|1\n"
|
||||
"believe|1\n"
|
||||
"doubt|1\n"
|
||||
"END verbs\n"
|
||||
"###\n"
|
||||
"# adverbs\n"
|
||||
"##\n"
|
||||
"BEGIN adverbs\n"
|
||||
"COUNT|28\n"
|
||||
"sometimes|1\n"
|
||||
"always|1\n"
|
||||
"never|1\n"
|
||||
"furiously|50\n"
|
||||
"slyly|50\n"
|
||||
"carefully|50\n"
|
||||
"blithely|40\n"
|
||||
"quickly|30\n"
|
||||
"fluffily|20\n"
|
||||
"slowly|1\n"
|
||||
"quietly|1\n"
|
||||
"ruthlessly|1\n"
|
||||
"thinly|1\n"
|
||||
"closely|1\n"
|
||||
"doggedly|1\n"
|
||||
"daringly|1\n"
|
||||
"bravely|1\n"
|
||||
"stealthily|1\n"
|
||||
"permanently|1\n"
|
||||
"enticingly|1\n"
|
||||
"idly|1\n"
|
||||
"busily|1\n"
|
||||
"regularly|1\n"
|
||||
"finally|1\n"
|
||||
"ironically|1\n"
|
||||
"evenly|1\n"
|
||||
"boldly|1\n"
|
||||
"silently|1\n"
|
||||
"END adverbs\n"
|
||||
"###\n"
|
||||
"# articles\n"
|
||||
"##\n"
|
||||
"BEGIN articles\n"
|
||||
"COUNT|3\n"
|
||||
"the|50\n"
|
||||
"a|20\n"
|
||||
"an|5\n"
|
||||
"END articles\n"
|
||||
"###\n"
|
||||
"# prepositions\n"
|
||||
"##\n"
|
||||
"BEGIN prepositions\n"
|
||||
"COUNT|47\n"
|
||||
"about|50\n"
|
||||
"above|50\n"
|
||||
"according to|50\n"
|
||||
"across|50\n"
|
||||
"after|50\n"
|
||||
"against|40\n"
|
||||
"along|40\n"
|
||||
"alongside of|30\n"
|
||||
"among|30\n"
|
||||
"around|20\n"
|
||||
"at|10\n"
|
||||
"atop|1\n"
|
||||
"before|1\n"
|
||||
"behind|1\n"
|
||||
"beneath|1\n"
|
||||
"beside|1\n"
|
||||
"besides|1\n"
|
||||
"between|1\n"
|
||||
"beyond|1\n"
|
||||
"by|1\n"
|
||||
"despite|1\n"
|
||||
"during|1\n"
|
||||
"except|1\n"
|
||||
"for|1\n"
|
||||
"from|1\n"
|
||||
"in place of|1\n"
|
||||
"inside|1\n"
|
||||
"instead of|1\n"
|
||||
"into|1\n"
|
||||
"near|1\n"
|
||||
"of|1\n"
|
||||
"on|1\n"
|
||||
"outside|1\n"
|
||||
"over|1 \n"
|
||||
"past|1\n"
|
||||
"since|1\n"
|
||||
"through|1\n"
|
||||
"throughout|1\n"
|
||||
"to|1\n"
|
||||
"toward|1\n"
|
||||
"under|1\n"
|
||||
"until|1\n"
|
||||
"up|1 \n"
|
||||
"upon|1\n"
|
||||
"whithout|1\n"
|
||||
"with|1\n"
|
||||
"within|1\n"
|
||||
"END prepositions\n"
|
||||
"###\n"
|
||||
"# auxillaries\n"
|
||||
"##\n"
|
||||
"BEGIN auxillaries\n"
|
||||
"COUNT|18\n"
|
||||
"do|1\n"
|
||||
"may|1\n"
|
||||
"might|1\n"
|
||||
"shall|1\n"
|
||||
"will|1\n"
|
||||
"would|1\n"
|
||||
"can|1\n"
|
||||
"could|1\n"
|
||||
"should|1\n"
|
||||
"ought to|1\n"
|
||||
"must|1\n"
|
||||
"will have to|1\n"
|
||||
"shall have to|1\n"
|
||||
"could have to|1\n"
|
||||
"should have to|1\n"
|
||||
"must have to|1\n"
|
||||
"need to|1\n"
|
||||
"try to|1\n"
|
||||
"END auxiallaries\n"
|
||||
"###\n"
|
||||
"# terminators\n"
|
||||
"##\n"
|
||||
"BEGIN terminators\n"
|
||||
"COUNT|6\n"
|
||||
".|50\n"
|
||||
";|1\n"
|
||||
":|1\n"
|
||||
"?|1\n"
|
||||
"!|1\n"
|
||||
"--|1\n"
|
||||
"END terminators\n"
|
||||
"###\n"
|
||||
"# adjectives\n"
|
||||
"##\n"
|
||||
"BEGIN adjectives\n"
|
||||
"COUNT|29\n"
|
||||
"special|20\n"
|
||||
"pending|20\n"
|
||||
"unusual|20\n"
|
||||
"express|20\n"
|
||||
"furious|1\n"
|
||||
"sly|1\n"
|
||||
"careful|1\n"
|
||||
"blithe|1\n"
|
||||
"quick|1\n"
|
||||
"fluffy|1\n"
|
||||
"slow|1\n"
|
||||
"quiet|1\n"
|
||||
"ruthless|1\n"
|
||||
"thin|1\n"
|
||||
"close|1\n"
|
||||
"dogged|1\n"
|
||||
"daring|1\n"
|
||||
"brave|1\n"
|
||||
"stealthy|1\n"
|
||||
"permanent|1\n"
|
||||
"enticing|1\n"
|
||||
"idle|1\n"
|
||||
"busy|1\n"
|
||||
"regular|50\n"
|
||||
"final|40\n"
|
||||
"ironic|40\n"
|
||||
"even|30\n"
|
||||
"bold|20\n"
|
||||
"silent|10\n"
|
||||
"END adjectives\n"
|
||||
"###\n"
|
||||
"# grammar\n"
|
||||
"# first level grammar. N=noun phrase, V=verb phrase,\n"
|
||||
"# P=prepositional phrase, T=setence termination\n"
|
||||
"##\n"
|
||||
"BEGIN grammar\n"
|
||||
"COUNT|5\n"
|
||||
"N V T|3\n"
|
||||
"N V P T|3\n"
|
||||
"N V N T|3\n"
|
||||
"N P V N T|1\n"
|
||||
"N P V P T|1\n"
|
||||
"END grammar\n"
|
||||
"###\n"
|
||||
"# NP\n"
|
||||
"# second level grammar. Noun phrases. N=noun, A=article, \n"
|
||||
"# J=adjective, D=adverb\n"
|
||||
"##\n"
|
||||
"BEGIN np\n"
|
||||
"COUNT|4\n"
|
||||
"N|10\n"
|
||||
"J N|20\n"
|
||||
"J, J N|10\n"
|
||||
"D J N|50\n"
|
||||
"END np\n"
|
||||
"###\n"
|
||||
"# VP\n"
|
||||
"# second level grammar. Verb phrases. V=verb, X=auxiallary, \n"
|
||||
"# D=adverb\n"
|
||||
"##\n"
|
||||
"BEGIN vp\n"
|
||||
"COUNT|4\n"
|
||||
"V|30\n"
|
||||
"X V|1\n"
|
||||
"V D|40\n"
|
||||
"X V D|1\n"
|
||||
"END vp\n"
|
||||
"###\n"
|
||||
"# Q13\n"
|
||||
"# Substitution parameters for Q13 \n"
|
||||
"##\n"
|
||||
"BEGIN Q13a\n"
|
||||
"COUNT|4\n"
|
||||
"special|20\n"
|
||||
"pending|20\n"
|
||||
"unusual|20\n"
|
||||
"express|20\n"
|
||||
"END Q13a\n"
|
||||
"BEGIN Q13b\n"
|
||||
"COUNT|4\n"
|
||||
"packages|40\n"
|
||||
"requests|40\n"
|
||||
"accounts|40\n"
|
||||
"deposits|40\n"
|
||||
"END Q13b";
|
||||
559
external/duckdb/extension/tpch/dbgen/include/dbgen/dss.h
vendored
Normal file
559
external/duckdb/extension/tpch/dbgen/include/dbgen/dss.h
vendored
Normal file
@@ -0,0 +1,559 @@
|
||||
/*
|
||||
* Copyright owned by the Transaction Processing Performance Council.
|
||||
*
|
||||
* A copy of the license is included under extension/tpch/dbgen/LICENSE
|
||||
* in this repository.
|
||||
*
|
||||
* You may not use this file except in compliance with the License.
|
||||
*
|
||||
* THE TPC SOFTWARE IS AVAILABLE WITHOUT CHARGE FROM TPC.
|
||||
*/
|
||||
/*
|
||||
* general definitions and control information for the DSS code
|
||||
* generator; if it controls the data set, it's here
|
||||
*/
|
||||
#ifndef DSS_H
|
||||
#define DSS_H
|
||||
|
||||
#include "dbgen/config.h"
|
||||
|
||||
#ifdef TPCH
|
||||
#define NAME "TPC-H"
|
||||
#endif
|
||||
#ifdef TPCR
|
||||
#define NAME "TPC-R"
|
||||
#endif
|
||||
#ifndef NAME
|
||||
#error Benchmark version must be defined in config.h
|
||||
#endif
|
||||
#define TPC "Transaction Processing Performance Council"
|
||||
#define C_DATES "1994 - 2010"
|
||||
|
||||
#include "dbgen/config.h"
|
||||
#include "dbgen/shared.h"
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
// some defines to avoid r warnings
|
||||
#define exit(status)
|
||||
#define printf(...)
|
||||
#define fprintf(...)
|
||||
|
||||
#define NONE -1
|
||||
#define PART 0
|
||||
#define PSUPP 1
|
||||
#define SUPP 2
|
||||
#define CUST 3
|
||||
#define ORDER 4
|
||||
#define LINE 5
|
||||
#define ORDER_LINE 6
|
||||
#define PART_PSUPP 7
|
||||
#define NATION 8
|
||||
#define REGION 9
|
||||
#define UPDATE 10
|
||||
#define MAX_TABLE 11
|
||||
#define ONE_STREAM 1
|
||||
#define ADD_AT_END 2
|
||||
|
||||
#ifdef MAX
|
||||
#undef MAX
|
||||
#endif
|
||||
#ifdef MIN
|
||||
#undef MIN
|
||||
#endif
|
||||
#define MAX(a, b) ((a > b) ? a : b)
|
||||
#define MIN(A, B) ((A) < (B) ? (A) : (B))
|
||||
|
||||
#define INTERNAL_ERROR(p) // {fprintf(stderr,"%s", p);abort();}
|
||||
#define LN_CNT 4
|
||||
// static char lnoise[4] = {'|', '/', '-', '\\' };
|
||||
#define LIFENOISE(n, var) // if (verbose > 0) fprintf(stderr, "%c\b", lnoise[(var%LN_CNT)])
|
||||
|
||||
#define MALLOC_CHECK(var) \
|
||||
if ((var) == NULL) { \
|
||||
fprintf(stderr, "Malloc failed at %s:%d\n", __FILE__, __LINE__); \
|
||||
exit(1); \
|
||||
}
|
||||
#define OPEN_CHECK(var, path) \
|
||||
if ((var) == NULL) { \
|
||||
fprintf(stderr, "Open failed for %s at %s:%d\n", path, __FILE__, __LINE__); \
|
||||
exit(1); \
|
||||
}
|
||||
#ifndef MAX_CHILDREN
|
||||
#define MAX_CHILDREN 1000
|
||||
#endif
|
||||
|
||||
/*
|
||||
* macros that control sparse keys
|
||||
*
|
||||
* refer to Porting.Notes for a complete explanation
|
||||
*/
|
||||
#ifndef BITS_PER_LONG
|
||||
#define BITS_PER_LONG 32
|
||||
#define MAX_LONG 0x7FFFFFFF
|
||||
#endif /* BITS_PER_LONG */
|
||||
#define SPARSE_BITS 2
|
||||
#define SPARSE_KEEP 3
|
||||
#define MK_SPARSE(key, seq) (((((key >> 3) << 2) | (seq & 0x0003)) << 3) | (key & 0x0007))
|
||||
|
||||
#define RANDOM(tgt, lower, upper, seed) dss_random(&tgt, lower, upper, seed)
|
||||
#define RANDOM64(tgt, lower, upper, seed) dss_random64(&tgt, lower, upper, seed)
|
||||
|
||||
typedef struct {
|
||||
long weight;
|
||||
char *text;
|
||||
} set_member;
|
||||
|
||||
typedef struct {
|
||||
int count;
|
||||
int max;
|
||||
set_member *list;
|
||||
} distribution;
|
||||
/*
|
||||
* some handy access functions
|
||||
*/
|
||||
#define DIST_SIZE(d) d->count
|
||||
#define DIST_MEMBER(d, i) ((set_member *)((d)->list + i))->text
|
||||
|
||||
typedef struct {
|
||||
const char *name;
|
||||
const char *comment;
|
||||
DSS_HUGE base;
|
||||
int (*loader)();
|
||||
long (*gen_seed)(int, int);
|
||||
int child;
|
||||
DSS_HUGE vtotal;
|
||||
} tdef;
|
||||
|
||||
typedef struct SEED_T {
|
||||
long table;
|
||||
DSS_HUGE value;
|
||||
DSS_HUGE usage;
|
||||
DSS_HUGE boundary;
|
||||
#ifdef RNG_TEST
|
||||
DSS_HUGE nCalls;
|
||||
#endif
|
||||
} seed_t;
|
||||
|
||||
#define PROTO(s) s
|
||||
|
||||
struct DBGenContext;
|
||||
|
||||
/* bm_utils.c */
|
||||
const char *tpch_env_config PROTO((const char *var, const char *dflt));
|
||||
long yes_no PROTO((char *prompt));
|
||||
void tpch_a_rnd PROTO((int min, int max, seed_t *seed, char *dest));
|
||||
int tx_rnd PROTO((long min, long max, long column, char *tgt));
|
||||
long julian PROTO((long date));
|
||||
long unjulian PROTO((long date));
|
||||
long dssncasecmp PROTO((const char *s1, const char *s2, int n));
|
||||
long dsscasecmp PROTO((const char *s1, const char *s2));
|
||||
int pick_str PROTO((distribution * s, seed_t *seed, char *target));
|
||||
void agg_str PROTO((distribution * set, long count, seed_t *seed, char *dest, DBGenContext *ctx));
|
||||
void read_dist PROTO((const char *path, const char *name, distribution *target));
|
||||
void embed_str PROTO((distribution * d, int min, int max, int stream, char *dest));
|
||||
#ifndef STDLIB_HAS_GETOPT
|
||||
int getopt PROTO((int arg_cnt, char **arg_vect, char *oprions));
|
||||
#endif /* STDLIB_HAS_GETOPT */
|
||||
DSS_HUGE set_state PROTO((int t, long scale, long procs, long step, DSS_HUGE *e, DBGenContext *ctx));
|
||||
|
||||
/* rnd.c */
|
||||
DSS_HUGE NextRand PROTO((DSS_HUGE nSeed));
|
||||
DSS_HUGE UnifInt PROTO((DSS_HUGE nLow, DSS_HUGE nHigh, seed_t *seed));
|
||||
void dss_random(DSS_HUGE *tgt, DSS_HUGE min, DSS_HUGE max, seed_t *seed);
|
||||
void row_start(int t, DBGenContext *ctx);
|
||||
void row_stop_h(int t, DBGenContext *ctx);
|
||||
void dump_seeds_ds(int t, seed_t *seeds);
|
||||
|
||||
/* text.c */
|
||||
#define MAX_GRAMMAR_LEN 12 /* max length of grammar component */
|
||||
#define MAX_SENT_LEN 256 /* max length of populated sentence */
|
||||
#define RNG_PER_SENT 27 /* max number of RNG calls per sentence */
|
||||
|
||||
void init_text_pool PROTO((long bSize, DBGenContext *ctx));
|
||||
void free_text_pool PROTO(());
|
||||
|
||||
void dbg_text PROTO((char *t, int min, int max, seed_t *seed));
|
||||
|
||||
#ifdef DECLARER
|
||||
#define EXTERN
|
||||
#else
|
||||
#define EXTERN extern
|
||||
#endif /* DECLARER */
|
||||
|
||||
EXTERN distribution nations;
|
||||
EXTERN distribution nations2;
|
||||
EXTERN distribution regions;
|
||||
EXTERN distribution o_priority_set;
|
||||
EXTERN distribution l_instruct_set;
|
||||
EXTERN distribution l_smode_set;
|
||||
EXTERN distribution l_category_set;
|
||||
EXTERN distribution l_rflag_set;
|
||||
EXTERN distribution c_mseg_set;
|
||||
EXTERN distribution colors;
|
||||
EXTERN distribution p_types_set;
|
||||
EXTERN distribution p_cntr_set;
|
||||
|
||||
/* distributions that control text generation */
|
||||
EXTERN distribution articles;
|
||||
EXTERN distribution nouns;
|
||||
EXTERN distribution adjectives;
|
||||
EXTERN distribution adverbs;
|
||||
EXTERN distribution prepositions;
|
||||
EXTERN distribution verbs;
|
||||
EXTERN distribution terminators;
|
||||
EXTERN distribution auxillaries;
|
||||
EXTERN distribution np;
|
||||
EXTERN distribution vp;
|
||||
EXTERN distribution grammar;
|
||||
|
||||
EXTERN int refresh;
|
||||
EXTERN int resume;
|
||||
EXTERN long verbose;
|
||||
EXTERN long force;
|
||||
EXTERN long updates;
|
||||
EXTERN long table;
|
||||
EXTERN int set_seeds;
|
||||
EXTERN char *d_path;
|
||||
|
||||
/* added for segmented updates */
|
||||
EXTERN int insert_segments;
|
||||
EXTERN int delete_segments;
|
||||
EXTERN int insert_orders_segment;
|
||||
EXTERN int insert_lineitem_segment;
|
||||
EXTERN int delete_segment;
|
||||
|
||||
/*****************************************************************
|
||||
** table level defines use the following naming convention: t_ccc_xxx
|
||||
** with: t, a table identifier
|
||||
** ccc, a column identifier
|
||||
** xxx, a limit type
|
||||
****************************************************************
|
||||
*/
|
||||
|
||||
/*
|
||||
* defines which control the parts table
|
||||
*/
|
||||
#define P_SIZE 126
|
||||
#define P_NAME_SCL 5
|
||||
#define P_MFG_TAG "Manufacturer#"
|
||||
#define P_MFG_FMT "%%s%%0%d%s"
|
||||
#define P_MFG_MIN 1
|
||||
#define P_MFG_MAX 5
|
||||
#define P_BRND_TAG "Brand#"
|
||||
#define P_BRND_FMT "%%s%%0%d%s"
|
||||
#define P_BRND_MIN 1
|
||||
#define P_BRND_MAX 5
|
||||
#define P_SIZE_MIN 1
|
||||
#define P_SIZE_MAX 50
|
||||
#define P_MCST_MIN 100
|
||||
#define P_MCST_MAX 99900
|
||||
#define P_MCST_SCL 100.0
|
||||
#define P_RCST_MIN 90000
|
||||
#define P_RCST_MAX 200000
|
||||
#define P_RCST_SCL 100.0
|
||||
/*
|
||||
* defines which control the suppliers table
|
||||
*/
|
||||
#define S_SIZE 145
|
||||
#define S_NAME_TAG "Supplier#"
|
||||
#define S_NAME_FMT "%%s%%0%d%s"
|
||||
#define S_ABAL_MIN -99999
|
||||
#define S_ABAL_MAX 999999
|
||||
#define S_CMNT_MAX 101
|
||||
#define S_CMNT_BBB 10 /* number of BBB comments/SF */
|
||||
#define BBB_DEADBEATS 50 /* % that are complaints */
|
||||
#define BBB_BASE "Customer "
|
||||
#define BBB_COMPLAIN "Complaints"
|
||||
#define BBB_COMMEND "Recommends"
|
||||
#define BBB_CMNT_LEN 19
|
||||
#define BBB_BASE_LEN 9
|
||||
#define BBB_TYPE_LEN 10
|
||||
|
||||
/*
|
||||
* defines which control the partsupp table
|
||||
*/
|
||||
#define PS_SIZE 145
|
||||
#define PS_SKEY_MIN 0
|
||||
#define PS_SKEY_MAX ((ctx->tdefs[SUPP].base - 1) * ctx->scale_factor)
|
||||
#define PS_SCST_MIN 100
|
||||
#define PS_SCST_MAX 100000
|
||||
#define PS_QTY_MIN 1
|
||||
#define PS_QTY_MAX 9999
|
||||
/*
|
||||
* defines which control the customers table
|
||||
*/
|
||||
#define C_SIZE 165
|
||||
#define C_NAME_TAG "Customer#"
|
||||
#define C_NAME_FMT "%%s%%0%d%s"
|
||||
#define C_MSEG_MAX 5
|
||||
#define C_ABAL_MIN -99999
|
||||
#define C_ABAL_MAX 999999
|
||||
/*
|
||||
* defines which control the order table
|
||||
*/
|
||||
#define O_SIZE 109
|
||||
#define O_CKEY_MIN 1
|
||||
#define O_CKEY_MAX (ctx->tdefs[CUST].base * ctx->scale_factor)
|
||||
#define O_ODATE_MIN STARTDATE
|
||||
#define O_ODATE_MAX (STARTDATE + TOTDATE - (L_SDTE_MAX + L_RDTE_MAX) - 1)
|
||||
#define O_CLRK_TAG "Clerk#"
|
||||
#define O_CLRK_FMT "%%s%%0%d%s"
|
||||
#define O_CLRK_SCL 1000
|
||||
#define O_LCNT_MIN 1
|
||||
#define O_LCNT_MAX 7
|
||||
|
||||
/*
|
||||
* defines which control the lineitem table
|
||||
*/
|
||||
#define L_SIZE 144L
|
||||
#define L_QTY_MIN 1
|
||||
#define L_QTY_MAX 50
|
||||
#define L_TAX_MIN 0
|
||||
#define L_TAX_MAX 8
|
||||
#define L_DCNT_MIN 0
|
||||
#define L_DCNT_MAX 10
|
||||
#define L_PKEY_MIN 1
|
||||
#define L_PKEY_MAX (ctx->tdefs[PART].base * ctx->scale_factor)
|
||||
#define L_SDTE_MIN 1
|
||||
#define L_SDTE_MAX 121
|
||||
#define L_CDTE_MIN 30
|
||||
#define L_CDTE_MAX 90
|
||||
#define L_RDTE_MIN 1
|
||||
#define L_RDTE_MAX 30
|
||||
/*
|
||||
* defines which control the time table
|
||||
*/
|
||||
#define T_SIZE 30
|
||||
#define T_START_DAY 3 /* wednesday ? */
|
||||
#define LEAP(y) ((!(y % 4) && (y % 100)) ? 1 : 0)
|
||||
|
||||
/*******************************************************************
|
||||
*******************************************************************
|
||||
***
|
||||
*** general or inter table defines
|
||||
***
|
||||
*******************************************************************
|
||||
*******************************************************************/
|
||||
#define SUPP_PER_PART 4
|
||||
#define ORDERS_PER_CUST 10 /* sync this with CUST_MORTALITY */
|
||||
#define CUST_MORTALITY 3 /* portion with have no orders */
|
||||
#define NATIONS_MAX 90 /* limited by country codes in phone numbers */
|
||||
#define PHONE_FMT "%02d-%03d-%03d-%04d"
|
||||
#define STARTDATE 92001
|
||||
#define CURRENTDATE 95168
|
||||
#define ENDDATE 98365
|
||||
#define TOTDATE 2557
|
||||
#define UPD_PCT 10
|
||||
#define MAX_STREAM 47
|
||||
#define V_STR_LOW 0.4
|
||||
#define PENNIES 100 /* for scaled int money arithmetic */
|
||||
#define Q11_FRACTION (double)0.0001
|
||||
/*
|
||||
* max and min SF in GB; Larger SF will require changes to the build routines
|
||||
*/
|
||||
#define MIN_SCALE 1.0
|
||||
#define MAX_SCALE 100000.0
|
||||
/*
|
||||
* beyond this point we need to allow for BCD calculations
|
||||
*/
|
||||
#define MAX_32B_SCALE 1000.0
|
||||
#define LONG2HUGE(src, dst) *dst = (DSS_HUGE)src
|
||||
#define HUGE2LONG(src, dst) *dst = (long)src
|
||||
#define HUGE_SET(src, dst) *dst = *src
|
||||
#define HUGE_MUL(op1, op2) *op1 *= op2
|
||||
#define HUGE_DIV(op1, op2) *op1 /= op2
|
||||
#define HUGE_ADD(op1, op2, dst) *dst = *op1 + op2
|
||||
#define HUGE_SUB(op1, op2, dst) *dst = *op1 - op2
|
||||
#define HUGE_MOD(op1, op2) *op1 % op2
|
||||
#define HUGE_CMP(op1, op2) (*op1 == *op2) ? 0 : (*op1 < *op2) - 1 : 1
|
||||
|
||||
/******** environmental variables and defaults ***************/
|
||||
#define DIST_TAG "DSS_DIST" /* environment var to override ... */
|
||||
#define DIST_DFLT "dists.dss" /* default file to hold distributions */
|
||||
#define PATH_TAG "DSS_PATH" /* environment var to override ... */
|
||||
#define PATH_DFLT "." /* default directory to hold tables */
|
||||
#define CONFIG_TAG "DSS_CONFIG" /* environment var to override ... */
|
||||
#define CONFIG_DFLT "." /* default directory to config files */
|
||||
#define ADHOC_TAG "DSS_ADHOC" /* environment var to override ... */
|
||||
#define ADHOC_DFLT "adhoc.dss" /* default file name for adhoc vars */
|
||||
|
||||
/******* output macros ********/
|
||||
#ifndef SEPARATOR
|
||||
#define SEPARATOR '|' /* field spearator for generated flat files */
|
||||
#endif
|
||||
/* Data type flags for a single print routine */
|
||||
#define DT_STR 0
|
||||
#ifndef MVS
|
||||
#define DT_VSTR DT_STR
|
||||
#else
|
||||
#define DT_VSTR 1
|
||||
#endif /* MVS */
|
||||
#define DT_INT 2
|
||||
#define DT_HUGE 3
|
||||
#define DT_KEY 4
|
||||
#define DT_MONEY 5
|
||||
#define DT_CHR 6
|
||||
|
||||
int dbg_print(int dt, FILE *tgt, void *data, int len, int eol);
|
||||
#define PR_STR(f, str, len) dbg_print(DT_STR, f, (void *)str, len, 1)
|
||||
#define PR_VSTR(f, str, len) dbg_print(DT_VSTR, f, (void *)str, len, 1)
|
||||
#define PR_VSTR_LAST(f, str, len) dbg_print(DT_VSTR, f, (void *)str, len, 0)
|
||||
#define PR_INT(f, str) dbg_print(DT_INT, f, (void *)str, 0, 1)
|
||||
#define PR_HUGE(f, str) dbg_print(DT_HUGE, f, (void *)str, 0, 1)
|
||||
#define PR_HUGE_LAST(f, str) dbg_print(DT_HUGE, f, (void *)str, 0, 0)
|
||||
#define PR_KEY(f, str) dbg_print(DT_KEY, f, (void *)str, 0, -1)
|
||||
#define PR_MONEY(f, str) dbg_print(DT_MONEY, f, (void *)str, 0, 1)
|
||||
#define PR_CHR(f, str) dbg_print(DT_CHR, f, (void *)str, 0, 1)
|
||||
#define PR_STRT(fp) /* any line prep for a record goes here */
|
||||
#define PR_END(fp) fprintf(fp, "\n") /* finish the record here */
|
||||
#ifdef MDY_DATE
|
||||
#define PR_DATE(tgt, yr, mn, dy) snprintf(tgt, 11, "%02d-%02d-19%02d", mn, dy, yr)
|
||||
#else
|
||||
#define PR_DATE(tgt, yr, mn, dy) snprintf(tgt, 11, "19%02ld-%02ld-%02ld", yr, mn, dy)
|
||||
#endif /* DATE_FORMAT */
|
||||
|
||||
/*
|
||||
* verification macros
|
||||
*/
|
||||
#define VRF_STR(t, d) \
|
||||
{ \
|
||||
char *xx = d; \
|
||||
while (*xx) \
|
||||
ctx->tdefs[t].vtotal += *xx++; \
|
||||
}
|
||||
#define VRF_INT(t, d) ctx->tdefs[t].vtotal += d
|
||||
#define VRF_HUGE(t, d) ctx->tdefs[t].vtotal = *((long *)&d) + *((long *)(&d + 1))
|
||||
/* assume float is a 64 bit quantity */
|
||||
#define VRF_MONEY(t, d) ctx->tdefs[t].vtotal = *((long *)&d) + *((long *)(&d + 1))
|
||||
#define VRF_CHR(t, d) ctx->tdefs[t].vtotal += d
|
||||
#define VRF_STRT(t)
|
||||
#define VRF_END(t)
|
||||
|
||||
/*********** distribuitons currently defined *************/
|
||||
#define UNIFORM 0
|
||||
|
||||
/*
|
||||
* seed indexes; used to separate the generation of individual columns
|
||||
*/
|
||||
#define P_MFG_SD 0
|
||||
#define P_BRND_SD 1
|
||||
#define P_TYPE_SD 2
|
||||
#define P_SIZE_SD 3
|
||||
#define P_CNTR_SD 4
|
||||
#define P_RCST_SD 5
|
||||
#define PS_QTY_SD 7
|
||||
#define PS_SCST_SD 8
|
||||
#define O_SUPP_SD 10
|
||||
#define O_CLRK_SD 11
|
||||
#define O_ODATE_SD 13
|
||||
#define L_QTY_SD 14
|
||||
#define L_DCNT_SD 15
|
||||
#define L_TAX_SD 16
|
||||
#define L_SHIP_SD 17
|
||||
#define L_SMODE_SD 18
|
||||
#define L_PKEY_SD 19
|
||||
#define L_SKEY_SD 20
|
||||
#define L_SDTE_SD 21
|
||||
#define L_CDTE_SD 22
|
||||
#define L_RDTE_SD 23
|
||||
#define L_RFLG_SD 24
|
||||
#define C_NTRG_SD 27
|
||||
#define C_PHNE_SD 28
|
||||
#define C_ABAL_SD 29
|
||||
#define C_MSEG_SD 30
|
||||
#define S_NTRG_SD 33
|
||||
#define S_PHNE_SD 34
|
||||
#define S_ABAL_SD 35
|
||||
#define P_NAME_SD 37
|
||||
#define O_PRIO_SD 38
|
||||
#define HVAR_SD 39
|
||||
#define O_CKEY_SD 40
|
||||
#define N_CMNT_SD 41
|
||||
#define R_CMNT_SD 42
|
||||
#define O_LCNT_SD 43
|
||||
#define BBB_JNK_SD 44
|
||||
#define BBB_TYPE_SD 45
|
||||
#define BBB_CMNT_SD 46
|
||||
#define BBB_OFFSET_SD 47
|
||||
|
||||
struct DBGenContext {
|
||||
~DBGenContext() {
|
||||
if (permute) {
|
||||
free(permute);
|
||||
permute = NULL;
|
||||
}
|
||||
}
|
||||
|
||||
seed_t Seed[MAX_STREAM + 1] = {
|
||||
{PART, 1, 0, 1}, /* P_MFG_SD 0 */
|
||||
{PART, 46831694, 0, 1}, /* P_BRND_SD 1 */
|
||||
{PART, 1841581359, 0, 1}, /* P_TYPE_SD 2 */
|
||||
{PART, 1193163244, 0, 1}, /* P_SIZE_SD 3 */
|
||||
{PART, 727633698, 0, 1}, /* P_CNTR_SD 4 */
|
||||
{NONE, 933588178, 0, 1}, /* text pregeneration 5 */
|
||||
{PART, 804159733, 0, 2}, /* P_CMNT_SD 6 */
|
||||
{PSUPP, 1671059989, 0, SUPP_PER_PART}, /* PS_QTY_SD 7 */
|
||||
{PSUPP, 1051288424, 0, SUPP_PER_PART}, /* PS_SCST_SD 8 */
|
||||
{PSUPP, 1961692154, 0, SUPP_PER_PART * 2}, /* PS_CMNT_SD 9 */
|
||||
{ORDER, 1227283347, 0, 1}, /* O_SUPP_SD 10 */
|
||||
{ORDER, 1171034773, 0, 1}, /* O_CLRK_SD 11 */
|
||||
{ORDER, 276090261, 0, 2}, /* O_CMNT_SD 12 */
|
||||
{ORDER, 1066728069, 0, 1}, /* O_ODATE_SD 13 */
|
||||
{LINE, 209208115, 0, O_LCNT_MAX}, /* L_QTY_SD 14 */
|
||||
{LINE, 554590007, 0, O_LCNT_MAX}, /* L_DCNT_SD 15 */
|
||||
{LINE, 721958466, 0, O_LCNT_MAX}, /* L_TAX_SD 16 */
|
||||
{LINE, 1371272478, 0, O_LCNT_MAX}, /* L_SHIP_SD 17 */
|
||||
{LINE, 675466456, 0, O_LCNT_MAX}, /* L_SMODE_SD 18 */
|
||||
{LINE, 1808217256, 0, O_LCNT_MAX}, /* L_PKEY_SD 19 */
|
||||
{LINE, 2095021727, 0, O_LCNT_MAX}, /* L_SKEY_SD 20 */
|
||||
{LINE, 1769349045, 0, O_LCNT_MAX}, /* L_SDTE_SD 21 */
|
||||
{LINE, 904914315, 0, O_LCNT_MAX}, /* L_CDTE_SD 22 */
|
||||
{LINE, 373135028, 0, O_LCNT_MAX}, /* L_RDTE_SD 23 */
|
||||
{LINE, 717419739, 0, O_LCNT_MAX}, /* L_RFLG_SD 24 */
|
||||
{LINE, 1095462486, 0, O_LCNT_MAX * 2}, /* L_CMNT_SD 25 */
|
||||
{CUST, 881155353, 0, 9}, /* C_ADDR_SD 26 */
|
||||
{CUST, 1489529863, 0, 1}, /* C_NTRG_SD 27 */
|
||||
{CUST, 1521138112, 0, 3}, /* C_PHNE_SD 28 */
|
||||
{CUST, 298370230, 0, 1}, /* C_ABAL_SD 29 */
|
||||
{CUST, 1140279430, 0, 1}, /* C_MSEG_SD 30 */
|
||||
{CUST, 1335826707, 0, 2}, /* C_CMNT_SD 31 */
|
||||
{SUPP, 706178559, 0, 9}, /* S_ADDR_SD 32 */
|
||||
{SUPP, 110356601, 0, 1}, /* S_NTRG_SD 33 */
|
||||
{SUPP, 884434366, 0, 3}, /* S_PHNE_SD 34 */
|
||||
{SUPP, 962338209, 0, 1}, /* S_ABAL_SD 35 */
|
||||
{SUPP, 1341315363, 0, 2}, /* S_CMNT_SD 36 */
|
||||
{PART, 709314158, 0, 92}, /* P_NAME_SD 37 */
|
||||
{ORDER, 591449447, 0, 1}, /* O_PRIO_SD 38 */
|
||||
{LINE, 431918286, 0, 1}, /* HVAR_SD 39 */
|
||||
{ORDER, 851767375, 0, 1}, /* O_CKEY_SD 40 */
|
||||
{NATION, 606179079, 0, 2}, /* N_CMNT_SD 41 */
|
||||
{REGION, 1500869201, 0, 2}, /* R_CMNT_SD 42 */
|
||||
{ORDER, 1434868289, 0, 1}, /* O_LCNT_SD 43 */
|
||||
{SUPP, 263032577, 0, 1}, /* BBB offset 44 */
|
||||
{SUPP, 753643799, 0, 1}, /* BBB type 45 */
|
||||
{SUPP, 202794285, 0, 1}, /* BBB comment 46 */
|
||||
{SUPP, 715851524, 0, 1} /* BBB junk 47 */
|
||||
};
|
||||
|
||||
static constexpr double dM = 2147483647.0;
|
||||
|
||||
tdef tdefs[10] = {
|
||||
{"part.tbl", "part table", 200000, NULL, NULL, PSUPP, 0},
|
||||
{"partsupp.tbl", "partsupplier table", 200000, NULL, NULL, NONE, 0},
|
||||
{"supplier.tbl", "suppliers table", 10000, NULL, NULL, NONE, 0},
|
||||
{"customer.tbl", "customers table", 150000, NULL, NULL, NONE, 0},
|
||||
{"orders.tbl", "order table", 150000, NULL, NULL, LINE, 0},
|
||||
{"lineitem.tbl", "lineitem table", 150000, NULL, NULL, NONE, 0},
|
||||
{"orders.tbl", "orders/lineitem tables", 150000, NULL, NULL, LINE, 0},
|
||||
{"part.tbl", "part/partsupplier tables", 200000, NULL, NULL, PSUPP, 0},
|
||||
{"nation.tbl", "nation table", NATIONS_MAX, NULL, NULL, NONE, 0},
|
||||
{"region.tbl", "region table", NATIONS_MAX, NULL, NULL, NONE, 0},
|
||||
};
|
||||
|
||||
long scale_factor = 1;
|
||||
long *permute = NULL;
|
||||
};
|
||||
|
||||
#endif /* DSS_H */
|
||||
164
external/duckdb/extension/tpch/dbgen/include/dbgen/dsstypes.h
vendored
Normal file
164
external/duckdb/extension/tpch/dbgen/include/dbgen/dsstypes.h
vendored
Normal file
@@ -0,0 +1,164 @@
|
||||
/*
|
||||
* Copyright owned by the Transaction Processing Performance Council.
|
||||
*
|
||||
* A copy of the license is included under extension/tpch/dbgen/LICENSE
|
||||
* in this repository.
|
||||
*
|
||||
* You may not use this file except in compliance with the License.
|
||||
*
|
||||
* THE TPC SOFTWARE IS AVAILABLE WITHOUT CHARGE FROM TPC.
|
||||
*/
|
||||
/*
|
||||
* general definitions and control information for the DSS data types
|
||||
* and function prototypes
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
/*
|
||||
* typedefs
|
||||
*/
|
||||
typedef struct {
|
||||
DSS_HUGE custkey;
|
||||
char name[C_NAME_LEN + 3];
|
||||
char address[C_ADDR_MAX + 1];
|
||||
int alen;
|
||||
DSS_HUGE nation_code;
|
||||
char phone[PHONE_LEN + 1];
|
||||
DSS_HUGE acctbal;
|
||||
char mktsegment[MAXAGG_LEN + 1];
|
||||
char comment[C_CMNT_MAX + 1];
|
||||
int clen;
|
||||
} customer_t;
|
||||
/* customers.c */
|
||||
long mk_cust PROTO((DSS_HUGE n_cust, customer_t *c, DBGenContext *ctx));
|
||||
int pr_cust PROTO((customer_t * c, int mode));
|
||||
int ld_cust PROTO((customer_t * c, int mode));
|
||||
|
||||
typedef struct {
|
||||
DSS_HUGE okey;
|
||||
DSS_HUGE partkey;
|
||||
DSS_HUGE suppkey;
|
||||
DSS_HUGE lcnt;
|
||||
DSS_HUGE quantity;
|
||||
DSS_HUGE eprice;
|
||||
DSS_HUGE discount;
|
||||
DSS_HUGE tax;
|
||||
char rflag[1];
|
||||
char lstatus[1];
|
||||
char cdate[DATE_LEN];
|
||||
char sdate[DATE_LEN];
|
||||
char rdate[DATE_LEN];
|
||||
char shipinstruct[MAXAGG_LEN + 1];
|
||||
char shipmode[MAXAGG_LEN + 1];
|
||||
char comment[L_CMNT_MAX + 1];
|
||||
int clen;
|
||||
} line_t;
|
||||
|
||||
typedef struct {
|
||||
DSS_HUGE okey;
|
||||
DSS_HUGE custkey;
|
||||
char orderstatus;
|
||||
DSS_HUGE totalprice;
|
||||
char odate[DATE_LEN];
|
||||
char opriority[MAXAGG_LEN + 1];
|
||||
char clerk[O_CLRK_LEN + 1];
|
||||
long spriority;
|
||||
DSS_HUGE lines;
|
||||
char comment[O_CMNT_MAX + 1];
|
||||
int clen;
|
||||
line_t l[O_LCNT_MAX];
|
||||
} order_t;
|
||||
|
||||
/* order.c */
|
||||
long mk_order PROTO((DSS_HUGE index, order_t *o, DBGenContext *ctx, long upd_num));
|
||||
int pr_order PROTO((order_t * o, int mode));
|
||||
int ld_order PROTO((order_t * o, int mode));
|
||||
void mk_sparse PROTO((DSS_HUGE index, DSS_HUGE *ok, long seq));
|
||||
|
||||
typedef struct {
|
||||
DSS_HUGE partkey;
|
||||
DSS_HUGE suppkey;
|
||||
DSS_HUGE qty;
|
||||
DSS_HUGE scost;
|
||||
char comment[PS_CMNT_MAX + 1];
|
||||
int clen;
|
||||
} partsupp_t;
|
||||
|
||||
typedef struct {
|
||||
DSS_HUGE partkey;
|
||||
char name[P_NAME_LEN + 1];
|
||||
int nlen;
|
||||
char mfgr[P_MFG_LEN + 1];
|
||||
char brand[P_BRND_LEN + 1];
|
||||
char type[P_TYPE_LEN + 1];
|
||||
int tlen;
|
||||
DSS_HUGE size;
|
||||
char container[P_CNTR_LEN + 1];
|
||||
DSS_HUGE retailprice;
|
||||
char comment[P_CMNT_MAX + 1];
|
||||
int clen;
|
||||
partsupp_t s[SUPP_PER_PART];
|
||||
} part_t;
|
||||
|
||||
/* parts.c */
|
||||
long mk_part PROTO((DSS_HUGE index, part_t *p, DBGenContext *ctx));
|
||||
int pr_part PROTO((part_t * part, int mode));
|
||||
int ld_part PROTO((part_t * part, int mode));
|
||||
|
||||
typedef struct {
|
||||
DSS_HUGE suppkey;
|
||||
char name[S_NAME_LEN + 1];
|
||||
char address[S_ADDR_MAX + 1];
|
||||
int alen;
|
||||
DSS_HUGE nation_code;
|
||||
char phone[PHONE_LEN + 1];
|
||||
DSS_HUGE acctbal;
|
||||
char comment[S_CMNT_MAX + 1];
|
||||
int clen;
|
||||
} supplier_t;
|
||||
/* supplier.c */
|
||||
long mk_supp PROTO((DSS_HUGE index, supplier_t *s, DBGenContext *ctx));
|
||||
int pr_supp PROTO((supplier_t * supp, int mode));
|
||||
int ld_supp PROTO((supplier_t * supp, int mode));
|
||||
|
||||
typedef struct {
|
||||
DSS_HUGE timekey;
|
||||
char alpha[DATE_LEN];
|
||||
long year;
|
||||
long month;
|
||||
long week;
|
||||
long day;
|
||||
} dss_time_t;
|
||||
|
||||
/* time.c */
|
||||
long mk_time PROTO((DSS_HUGE h, dss_time_t *t));
|
||||
|
||||
/*
|
||||
* this assumes that N_CMNT_LEN >= R_CMNT_LEN
|
||||
*/
|
||||
typedef struct {
|
||||
DSS_HUGE code;
|
||||
char *text;
|
||||
long join;
|
||||
char comment[N_CMNT_MAX + 1];
|
||||
int clen;
|
||||
} code_t;
|
||||
|
||||
/* code table */
|
||||
int mk_nation PROTO((DSS_HUGE i, code_t *c, DBGenContext *ctx));
|
||||
int pr_nation PROTO((code_t * c, int mode));
|
||||
int ld_nation PROTO((code_t * c, int mode));
|
||||
int mk_region PROTO((DSS_HUGE i, code_t *c, DBGenContext *ctx));
|
||||
int pr_region PROTO((code_t * c, int mode));
|
||||
int ld_region PROTO((code_t * c, int mode));
|
||||
|
||||
/* speed seed - advances seeds `skip_count` times */
|
||||
long sd_nation(int child, DSS_HUGE skip_count, DBGenContext *ctx);
|
||||
long sd_region(int child, DSS_HUGE skip_coun, DBGenContext *ctx);
|
||||
long sd_order(int child, DSS_HUGE skip_count, DBGenContext *ctx);
|
||||
long sd_line(int child, DSS_HUGE skip_count, DBGenContext *ctx);
|
||||
long sd_supp(int child, DSS_HUGE skip_count, DBGenContext *ctx);
|
||||
long sd_part(int child, DSS_HUGE skip_count, DBGenContext *ctx);
|
||||
long sd_psupp(int child, DSS_HUGE skip_count, DBGenContext *ctx);
|
||||
long sd_cust(int child, DSS_HUGE skip_count, DBGenContext *ctx);
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user