Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[feature](jdbc catalog) support gbase jdbc catalog #41027

Merged
merged 1 commit into from
Sep 24, 2024

Conversation

zy-kkk
Copy link
Member

@zy-kkk zy-kkk commented Sep 19, 2024

TEST

Version

  • Gbase: GBase8a_MPP_Cluster-NoLicense-FREE-9.5.3.28.12-redhat7-x86_64
  • Gbase Jdbc Driver: gbase-connector-java-9.5.0.7-build1-bin.jar

Meta And Data

Doris > CREATE CATALOG `gbase` PROPERTIES (
    -> "user" = "root",
    -> "type" = "jdbc",
    -> "password" = "",
    -> "jdbc_url" = "jdbc:gbase://127.0.0.1:5258/doris_test",
    -> "driver_url" = "gbase-connector-java-9.5.0.7-build1-bin.jar",
    -> "driver_class" = "com.gbase.jdbc.Driver"
    -> );
Query OK, 0 rows affected (0.47 sec)

Doris > show databases from gbase;
+--------------------+
| Database           |
+--------------------+
| doris_test         |
| gbase              |
| gclusterdb         |
| gctmpdb            |
| information_schema |
| mysql              |
+--------------------+
6 rows in set (0.23 sec)

Doris > show tables from gbase.doris_test;
+----------------------+
| Tables_in_doris_test |
+----------------------+
| gbase_test           |
| pt1                  |
| pt2                  |
| pt3                  |
| pt4                  |
+----------------------+
5 rows in set (0.03 sec)

Doris > desc gbase.doris_test.gbase_test;
+---------------+---------------+------+------+---------+-------+
| Field         | Type          | Null | Key  | Default | Extra |
+---------------+---------------+------+------+---------+-------+
| tinyint_col   | tinyint       | Yes  | true | NULL    |       |
| smallint_col  | smallint      | Yes  | true | NULL    |       |
| int_col       | int           | Yes  | true | NULL    |       |
| bigint_col    | bigint        | Yes  | true | NULL    |       |
| float_col     | float         | Yes  | true | NULL    |       |
| double_col    | double        | Yes  | true | NULL    |       |
| decimal_col   | decimal(10,2) | Yes  | true | NULL    |       |
| numeric_col   | decimal(10,2) | Yes  | true | NULL    |       |
| char_col      | text          | Yes  | true | NULL    |       |
| varchar_col   | text          | Yes  | true | NULL    |       |
| text_col      | text          | Yes  | true | NULL    |       |
| date_col      | date          | Yes  | true | NULL    |       |
| datetime_col  | datetime      | Yes  | true | NULL    |       |
| time_col      | text          | Yes  | true | NULL    |       |
| timestamp_col | datetime      | No   | true | NULL    |       |
+---------------+---------------+------+------+---------+-------+
15 rows in set (0.08 sec)

Doris > select * from gbase.doris_test.gbase_test;
+-------------+--------------+---------+------------+-----------+------------+-------------+-------------+----------------------------------------------------+---------------+--------------------+------------+---------------------+----------+---------------------+
| tinyint_col | smallint_col | int_col | bigint_col | float_col | double_col | decimal_col | numeric_col | char_col                                           | varchar_col   | text_col           | date_col   | datetime_col        | time_col | timestamp_col       |
+-------------+--------------+---------+------------+-----------+------------+-------------+-------------+----------------------------------------------------+---------------+--------------------+------------+---------------------+----------+---------------------+
|           1 |           18 |     100 |     500000 |      1.75 |       70.5 |    12345.67 |      100.00 | John Doe                                           | A description | Detailed text data | 2023-09-19 | 2023-09-19 12:34:56 | 12:00:00 | 2023-09-19 14:45:00 |
|        NULL |         NULL |    NULL |       NULL |      NULL |       NULL |        NULL |        NULL | NULL                                               | NULL          | NULL               | NULL       | NULL                | NULL     | 2024-09-19 23:17:06 |
+-------------+--------------+---------+------------+-----------+------------+-------------+-------------+----------------------------------------------------+---------------+--------------------+------------+---------------------+----------+---------------------+
2 rows in set (0.34 sec)

Unsupported Type

  • BLOB
  • LONGBLOB

@doris-robot
Copy link

Thank you for your contribution to Apache Doris.
Don't know what should be done next? See How to process your PR

Since 2024-03-18, the Document has been moved to doris-website.
See Doris Document.

@zy-kkk zy-kkk marked this pull request as ready for review September 20, 2024 10:35
@zy-kkk
Copy link
Member Author

zy-kkk commented Sep 20, 2024

run buildall

@doris-robot
Copy link

TPC-H: Total hot run time: 41836 ms
machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
scripts: https://github.com/apache/doris/tree/master/tools/tpch-tools
Tpch sf100 test result on commit 43381c23d9f30244d2075a6c9a53c11a0f074e1a, data reload: false

------ Round 1 ----------------------------------
q1	17958	7463	7303	7303
q2	2047	163	160	160
q3	10679	1110	1227	1110
q4	10336	772	792	772
q5	7767	3119	3080	3080
q6	238	151	152	151
q7	1018	616	615	615
q8	9444	2074	2117	2074
q9	6861	6419	6390	6390
q10	7024	2352	2326	2326
q11	438	245	244	244
q12	398	221	222	221
q13	17786	3016	3024	3016
q14	247	211	237	211
q15	580	514	523	514
q16	687	629	605	605
q17	989	808	795	795
q18	7469	6772	6813	6772
q19	1405	1047	1056	1047
q20	567	291	281	281
q21	4108	3323	3160	3160
q22	1089	995	989	989
Total cold run time: 109135 ms
Total hot run time: 41836 ms

----- Round 2, with runtime_filter_mode=off -----
q1	7264	7299	7243	7243
q2	330	224	230	224
q3	3067	3035	2904	2904
q4	2062	1823	1797	1797
q5	5578	5583	5662	5583
q6	232	156	145	145
q7	2190	1815	1769	1769
q8	3309	3406	3451	3406
q9	8798	8949	8822	8822
q10	3526	3425	3482	3425
q11	593	486	492	486
q12	796	600	607	600
q13	9602	3151	3137	3137
q14	302	271	268	268
q15	588	510	552	510
q16	725	672	681	672
q17	1804	1594	1596	1594
q18	8266	7837	7854	7837
q19	1739	1592	1700	1592
q20	2137	1886	1896	1886
q21	5740	5200	5455	5200
q22	1134	1063	1044	1044
Total cold run time: 69782 ms
Total hot run time: 60144 ms

@doris-robot
Copy link

TPC-DS: Total hot run time: 196144 ms
machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
scripts: https://github.com/apache/doris/tree/master/tools/tpcds-tools
TPC-DS sf100 test result on commit 43381c23d9f30244d2075a6c9a53c11a0f074e1a, data reload: false

query1	1263	871	876	871
query2	6396	2101	2085	2085
query3	10778	3944	3910	3910
query4	65119	27031	23572	23572
query5	5146	485	481	481
query6	409	178	157	157
query7	5496	292	299	292
query8	316	219	208	208
query9	8923	2642	2645	2642
query10	470	304	299	299
query11	17983	15471	15869	15471
query12	169	105	99	99
query13	1468	417	434	417
query14	10990	7755	7539	7539
query15	220	184	174	174
query16	7226	499	491	491
query17	1180	633	592	592
query18	1836	315	313	313
query19	211	151	152	151
query20	137	114	109	109
query21	214	103	106	103
query22	4650	4270	4778	4270
query23	34875	33944	33982	33944
query24	6010	2928	2885	2885
query25	516	401	423	401
query26	624	162	174	162
query27	1606	281	283	281
query28	4174	2463	2429	2429
query29	672	426	427	426
query30	240	164	161	161
query31	969	793	818	793
query32	74	54	54	54
query33	412	296	300	296
query34	904	503	494	494
query35	844	745	747	745
query36	1074	951	947	947
query37	153	94	83	83
query38	4003	3879	3928	3879
query39	1485	1439	1411	1411
query40	211	99	100	99
query41	52	49	51	49
query42	119	98	99	98
query43	521	492	491	491
query44	1175	830	815	815
query45	193	162	166	162
query46	1134	788	765	765
query47	1952	1796	1838	1796
query48	473	364	370	364
query49	703	411	419	411
query50	856	412	412	412
query51	7043	7017	6988	6988
query52	100	89	91	89
query53	258	183	214	183
query54	572	457	455	455
query55	79	75	77	75
query56	274	259	258	258
query57	1220	1118	1062	1062
query58	226	236	235	235
query59	2990	2955	2996	2955
query60	282	286	272	272
query61	107	105	98	98
query62	760	665	641	641
query63	215	190	186	186
query64	1658	646	625	625
query65	3249	3206	3206	3206
query66	667	294	326	294
query67	15735	15517	15441	15441
query68	4646	593	566	566
query69	639	397	324	324
query70	1205	1146	1148	1146
query71	429	278	293	278
query72	6644	4101	4017	4017
query73	794	328	332	328
query74	9601	8986	9056	8986
query75	3387	2684	2689	2684
query76	2367	844	960	844
query77	622	309	301	301
query78	10028	9141	9682	9141
query79	1652	544	563	544
query80	1384	452	443	443
query81	533	240	242	240
query82	380	143	144	143
query83	327	137	140	137
query84	286	86	76	76
query85	972	296	277	277
query86	400	302	309	302
query87	4431	4386	4294	4294
query88	3605	2327	2308	2308
query89	389	284	283	283
query90	2152	193	190	190
query91	182	146	141	141
query92	64	52	49	49
query93	2274	540	539	539
query94	823	269	295	269
query95	343	251	266	251
query96	625	273	287	273
query97	3247	3194	3125	3125
query98	218	201	204	201
query99	1830	1324	1282	1282
Total cold run time: 318538 ms
Total hot run time: 196144 ms

@doris-robot
Copy link

ClickBench: Total hot run time: 33.23 s
machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
scripts: https://github.com/apache/doris/tree/master/tools/clickbench-tools
ClickBench test result on commit 43381c23d9f30244d2075a6c9a53c11a0f074e1a, data reload: false

query1	0.05	0.04	0.04
query2	0.09	0.04	0.04
query3	0.23	0.05	0.05
query4	1.66	0.08	0.07
query5	0.52	0.52	0.50
query6	1.12	0.74	0.74
query7	0.02	0.01	0.01
query8	0.05	0.04	0.04
query9	0.53	0.51	0.50
query10	0.55	0.57	0.55
query11	0.16	0.12	0.12
query12	0.16	0.12	0.12
query13	0.61	0.60	0.59
query14	3.03	3.03	3.03
query15	0.89	0.83	0.84
query16	0.38	0.38	0.39
query17	1.02	1.06	1.06
query18	0.17	0.18	0.17
query19	1.92	1.86	1.98
query20	0.02	0.01	0.00
query21	15.35	0.66	0.67
query22	4.24	7.49	1.64
query23	18.26	1.42	1.29
query24	2.23	0.21	0.21
query25	0.15	0.08	0.07
query26	0.26	0.17	0.18
query27	0.08	0.07	0.08
query28	13.21	1.16	1.14
query29	12.63	3.39	3.40
query30	0.25	0.06	0.06
query31	2.88	0.41	0.39
query32	3.24	0.49	0.48
query33	2.98	3.02	3.07
query34	17.18	4.40	4.49
query35	4.47	4.48	4.44
query36	0.66	0.50	0.49
query37	0.18	0.15	0.15
query38	0.16	0.14	0.15
query39	0.05	0.04	0.04
query40	0.16	0.13	0.13
query41	0.10	0.05	0.05
query42	0.06	0.05	0.05
query43	0.05	0.05	0.05
Total cold run time: 112.01 s
Total hot run time: 33.23 s

@zy-kkk
Copy link
Member Author

zy-kkk commented Sep 23, 2024

run buildall

@doris-robot
Copy link

TPC-H: Total hot run time: 41688 ms
machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
scripts: https://github.com/apache/doris/tree/master/tools/tpch-tools
Tpch sf100 test result on commit bdfc07a4a1628f2d66eb2adc5180ab6312347b65, data reload: false

------ Round 1 ----------------------------------
q1	17775	7344	7283	7283
q2	2063	162	164	162
q3	10887	1096	1206	1096
q4	10426	744	690	690
q5	7774	3118	3052	3052
q6	237	149	143	143
q7	1012	622	617	617
q8	9433	2077	2133	2077
q9	6917	6475	6463	6463
q10	7027	2318	2364	2318
q11	453	245	250	245
q12	409	219	212	212
q13	17788	2981	2971	2971
q14	246	216	224	216
q15	581	544	522	522
q16	691	620	612	612
q17	1003	833	822	822
q18	7405	6761	6590	6590
q19	1428	1102	1062	1062
q20	581	293	299	293
q21	4131	3225	3261	3225
q22	1122	1023	1017	1017
Total cold run time: 109389 ms
Total hot run time: 41688 ms

----- Round 2, with runtime_filter_mode=off -----
q1	7307	7249	7196	7196
q2	329	231	229	229
q3	3111	2997	2960	2960
q4	2063	1897	1844	1844
q5	5644	5570	5712	5570
q6	234	146	141	141
q7	2187	1800	1816	1800
q8	3368	3438	3466	3438
q9	8816	9016	8841	8841
q10	3505	3450	3492	3450
q11	591	474	480	474
q12	800	592	601	592
q13	9891	3209	3168	3168
q14	325	271	279	271
q15	579	546	540	540
q16	739	658	682	658
q17	1819	1640	1586	1586
q18	8239	7844	7857	7844
q19	1748	1670	1511	1511
q20	2101	1902	1876	1876
q21	5679	5503	5423	5423
q22	1123	1053	1073	1053
Total cold run time: 70198 ms
Total hot run time: 60465 ms

@doris-robot
Copy link

TPC-DS: Total hot run time: 196232 ms
machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
scripts: https://github.com/apache/doris/tree/master/tools/tpcds-tools
TPC-DS sf100 test result on commit bdfc07a4a1628f2d66eb2adc5180ab6312347b65, data reload: false

query1	1238	883	886	883
query2	6390	2059	2038	2038
query3	10800	3958	4009	3958
query4	63776	30297	23437	23437
query5	5189	479	477	477
query6	404	185	176	176
query7	5458	303	298	298
query8	316	215	214	214
query9	8279	2661	2641	2641
query10	451	275	272	272
query11	17948	15196	15913	15196
query12	157	106	105	105
query13	1477	422	437	422
query14	10997	7498	7540	7498
query15	209	193	178	178
query16	6892	499	465	465
query17	1119	604	617	604
query18	1604	320	312	312
query19	214	159	155	155
query20	139	112	116	112
query21	217	107	107	107
query22	4547	4650	4800	4650
query23	34686	34116	33914	33914
query24	6025	2964	2916	2916
query25	511	397	409	397
query26	640	160	157	157
query27	1638	295	285	285
query28	4321	2465	2446	2446
query29	680	434	434	434
query30	238	154	161	154
query31	985	793	812	793
query32	73	55	58	55
query33	469	293	303	293
query34	906	486	479	479
query35	864	749	727	727
query36	1040	939	963	939
query37	159	90	86	86
query38	4015	3959	4004	3959
query39	1463	1415	1433	1415
query40	202	98	96	96
query41	50	49	49	49
query42	116	96	97	96
query43	509	476	481	476
query44	1151	870	829	829
query45	201	165	168	165
query46	1137	797	755	755
query47	1967	1823	1845	1823
query48	494	366	361	361
query49	706	422	428	422
query50	851	405	420	405
query51	7246	7034	6908	6908
query52	97	89	85	85
query53	254	182	183	182
query54	585	459	493	459
query55	78	77	74	74
query56	271	261	274	261
query57	1220	1086	1084	1084
query58	230	242	241	241
query59	3181	2975	3009	2975
query60	291	267	264	264
query61	113	112	103	103
query62	757	665	664	664
query63	217	183	181	181
query64	1422	653	620	620
query65	3258	3218	3186	3186
query66	691	306	314	306
query67	15921	15952	15564	15564
query68	3721	583	588	583
query69	542	291	297	291
query70	1207	1171	1092	1092
query71	397	279	268	268
query72	7551	4254	3964	3964
query73	768	328	334	328
query74	10041	9020	9111	9020
query75	3439	2629	2693	2629
query76	2680	917	907	907
query77	726	308	306	306
query78	10022	9158	9223	9158
query79	2621	551	557	551
query80	1121	426	429	426
query81	561	243	241	241
query82	926	139	143	139
query83	345	141	135	135
query84	290	87	74	74
query85	1009	291	278	278
query86	384	300	316	300
query87	4509	4373	4385	4373
query88	4109	2325	2326	2325
query89	404	280	296	280
query90	2106	183	185	183
query91	179	142	146	142
query92	67	48	50	48
query93	2901	541	536	536
query94	938	286	314	286
query95	346	247	251	247
query96	643	280	280	280
query97	3255	3084	3109	3084
query98	209	196	190	190
query99	1886	1287	1294	1287
Total cold run time: 319653 ms
Total hot run time: 196232 ms

@doris-robot
Copy link

ClickBench: Total hot run time: 33.83 s
machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
scripts: https://github.com/apache/doris/tree/master/tools/clickbench-tools
ClickBench test result on commit bdfc07a4a1628f2d66eb2adc5180ab6312347b65, data reload: false

query1	0.04	0.04	0.05
query2	0.08	0.05	0.04
query3	0.23	0.06	0.05
query4	1.67	0.07	0.07
query5	0.51	0.54	0.50
query6	1.13	0.73	0.75
query7	0.01	0.01	0.01
query8	0.05	0.04	0.04
query9	0.54	0.49	0.48
query10	0.55	0.57	0.54
query11	0.16	0.12	0.12
query12	0.15	0.12	0.12
query13	0.61	0.59	0.62
query14	2.93	2.94	2.96
query15	0.91	0.85	0.83
query16	0.39	0.39	0.38
query17	1.05	1.08	1.08
query18	0.18	0.17	0.17
query19	1.99	1.93	1.99
query20	0.01	0.01	0.01
query21	15.35	0.67	0.66
query22	4.34	7.09	2.11
query23	18.26	1.42	1.42
query24	2.12	0.24	0.21
query25	0.16	0.07	0.08
query26	0.29	0.18	0.18
query27	0.08	0.07	0.08
query28	13.28	1.17	1.15
query29	12.65	3.41	3.40
query30	0.25	0.06	0.06
query31	2.91	0.41	0.41
query32	3.23	0.48	0.49
query33	3.00	3.03	3.04
query34	17.05	4.38	4.37
query35	4.47	4.47	4.50
query36	0.66	0.48	0.48
query37	0.19	0.16	0.15
query38	0.16	0.14	0.15
query39	0.06	0.04	0.05
query40	0.16	0.13	0.12
query41	0.09	0.06	0.05
query42	0.06	0.05	0.06
query43	0.05	0.04	0.04
Total cold run time: 112.06 s
Total hot run time: 33.83 s

Copy link
Contributor

@morningman morningman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@github-actions github-actions bot added the approved Indicates a PR has been approved by one committer. label Sep 24, 2024
Copy link
Contributor

PR approved by at least one committer and no changes requested.

Copy link
Contributor

PR approved by anyone and no changes requested.

@zy-kkk zy-kkk merged commit 52bb7eb into apache:master Sep 24, 2024
23 of 28 checks passed
@zy-kkk zy-kkk deleted the gbase_catalog branch September 24, 2024 07:55
zy-kkk added a commit to zy-kkk/doris that referenced this pull request Oct 8, 2024
## TEST

### Version

- Gbase: GBase8a_MPP_Cluster-NoLicense-FREE-9.5.3.28.12-redhat7-x86_64
- Gbase Jdbc Driver: gbase-connector-java-9.5.0.7-build1-bin.jar

### Meta And Data

```
Doris > CREATE CATALOG `gbase` PROPERTIES (
    -> "user" = "root",
    -> "type" = "jdbc",
    -> "password" = "",
    -> "jdbc_url" = "jdbc:gbase://127.0.0.1:5258/doris_test",
    -> "driver_url" = "gbase-connector-java-9.5.0.7-build1-bin.jar",
    -> "driver_class" = "com.gbase.jdbc.Driver"
    -> );
Query OK, 0 rows affected (0.47 sec)

Doris > show databases from gbase;
+--------------------+
| Database           |
+--------------------+
| doris_test         |
| gbase              |
| gclusterdb         |
| gctmpdb            |
| information_schema |
| mysql              |
+--------------------+
6 rows in set (0.23 sec)

Doris > show tables from gbase.doris_test;
+----------------------+
| Tables_in_doris_test |
+----------------------+
| gbase_test           |
| pt1                  |
| pt2                  |
| pt3                  |
| pt4                  |
+----------------------+
5 rows in set (0.03 sec)

Doris > desc gbase.doris_test.gbase_test;
+---------------+---------------+------+------+---------+-------+
| Field         | Type          | Null | Key  | Default | Extra |
+---------------+---------------+------+------+---------+-------+
| tinyint_col   | tinyint       | Yes  | true | NULL    |       |
| smallint_col  | smallint      | Yes  | true | NULL    |       |
| int_col       | int           | Yes  | true | NULL    |       |
| bigint_col    | bigint        | Yes  | true | NULL    |       |
| float_col     | float         | Yes  | true | NULL    |       |
| double_col    | double        | Yes  | true | NULL    |       |
| decimal_col   | decimal(10,2) | Yes  | true | NULL    |       |
| numeric_col   | decimal(10,2) | Yes  | true | NULL    |       |
| char_col      | text          | Yes  | true | NULL    |       |
| varchar_col   | text          | Yes  | true | NULL    |       |
| text_col      | text          | Yes  | true | NULL    |       |
| date_col      | date          | Yes  | true | NULL    |       |
| datetime_col  | datetime      | Yes  | true | NULL    |       |
| time_col      | text          | Yes  | true | NULL    |       |
| timestamp_col | datetime      | No   | true | NULL    |       |
+---------------+---------------+------+------+---------+-------+
15 rows in set (0.08 sec)

Doris > select * from gbase.doris_test.gbase_test;
+-------------+--------------+---------+------------+-----------+------------+-------------+-------------+----------------------------------------------------+---------------+--------------------+------------+---------------------+----------+---------------------+
| tinyint_col | smallint_col | int_col | bigint_col | float_col | double_col | decimal_col | numeric_col | char_col                                           | varchar_col   | text_col           | date_col   | datetime_col        | time_col | timestamp_col       |
+-------------+--------------+---------+------------+-----------+------------+-------------+-------------+----------------------------------------------------+---------------+--------------------+------------+---------------------+----------+---------------------+
|           1 |           18 |     100 |     500000 |      1.75 |       70.5 |    12345.67 |      100.00 | John Doe                                           | A description | Detailed text data | 2023-09-19 | 2023-09-19 12:34:56 | 12:00:00 | 2023-09-19 14:45:00 |
|        NULL |         NULL |    NULL |       NULL |      NULL |       NULL |        NULL |        NULL | NULL                                               | NULL          | NULL               | NULL       | NULL                | NULL     | 2024-09-19 23:17:06 |
+-------------+--------------+---------+------------+-----------+------------+-------------+-------------+----------------------------------------------------+---------------+--------------------+------------+---------------------+----------+---------------------+
2 rows in set (0.34 sec)
```

### Unsupported Type

- BLOB
- LONGBLOB
morningman pushed a commit that referenced this pull request Oct 15, 2024
…imit pushdown (#41587)

followup #41027
We should map time to String and support reading time outside of 24
hours.
and add limit pushdown
morningman pushed a commit to morningman/doris that referenced this pull request Oct 18, 2024
## TEST

### Version

- Gbase: GBase8a_MPP_Cluster-NoLicense-FREE-9.5.3.28.12-redhat7-x86_64
- Gbase Jdbc Driver: gbase-connector-java-9.5.0.7-build1-bin.jar

### Meta And Data

```
Doris > CREATE CATALOG `gbase` PROPERTIES (
    -> "user" = "root",
    -> "type" = "jdbc",
    -> "password" = "",
    -> "jdbc_url" = "jdbc:gbase://127.0.0.1:5258/doris_test",
    -> "driver_url" = "gbase-connector-java-9.5.0.7-build1-bin.jar",
    -> "driver_class" = "com.gbase.jdbc.Driver"
    -> );
Query OK, 0 rows affected (0.47 sec)

Doris > show databases from gbase;
+--------------------+
| Database           |
+--------------------+
| doris_test         |
| gbase              |
| gclusterdb         |
| gctmpdb            |
| information_schema |
| mysql              |
+--------------------+
6 rows in set (0.23 sec)

Doris > show tables from gbase.doris_test;
+----------------------+
| Tables_in_doris_test |
+----------------------+
| gbase_test           |
| pt1                  |
| pt2                  |
| pt3                  |
| pt4                  |
+----------------------+
5 rows in set (0.03 sec)

Doris > desc gbase.doris_test.gbase_test;
+---------------+---------------+------+------+---------+-------+
| Field         | Type          | Null | Key  | Default | Extra |
+---------------+---------------+------+------+---------+-------+
| tinyint_col   | tinyint       | Yes  | true | NULL    |       |
| smallint_col  | smallint      | Yes  | true | NULL    |       |
| int_col       | int           | Yes  | true | NULL    |       |
| bigint_col    | bigint        | Yes  | true | NULL    |       |
| float_col     | float         | Yes  | true | NULL    |       |
| double_col    | double        | Yes  | true | NULL    |       |
| decimal_col   | decimal(10,2) | Yes  | true | NULL    |       |
| numeric_col   | decimal(10,2) | Yes  | true | NULL    |       |
| char_col      | text          | Yes  | true | NULL    |       |
| varchar_col   | text          | Yes  | true | NULL    |       |
| text_col      | text          | Yes  | true | NULL    |       |
| date_col      | date          | Yes  | true | NULL    |       |
| datetime_col  | datetime      | Yes  | true | NULL    |       |
| time_col      | text          | Yes  | true | NULL    |       |
| timestamp_col | datetime      | No   | true | NULL    |       |
+---------------+---------------+------+------+---------+-------+
15 rows in set (0.08 sec)

Doris > select * from gbase.doris_test.gbase_test;
+-------------+--------------+---------+------------+-----------+------------+-------------+-------------+----------------------------------------------------+---------------+--------------------+------------+---------------------+----------+---------------------+
| tinyint_col | smallint_col | int_col | bigint_col | float_col | double_col | decimal_col | numeric_col | char_col                                           | varchar_col   | text_col           | date_col   | datetime_col        | time_col | timestamp_col       |
+-------------+--------------+---------+------------+-----------+------------+-------------+-------------+----------------------------------------------------+---------------+--------------------+------------+---------------------+----------+---------------------+
|           1 |           18 |     100 |     500000 |      1.75 |       70.5 |    12345.67 |      100.00 | John Doe                                           | A description | Detailed text data | 2023-09-19 | 2023-09-19 12:34:56 | 12:00:00 | 2023-09-19 14:45:00 |
|        NULL |         NULL |    NULL |       NULL |      NULL |       NULL |        NULL |        NULL | NULL                                               | NULL          | NULL               | NULL       | NULL                | NULL     | 2024-09-19 23:17:06 |
+-------------+--------------+---------+------------+-----------+------------+-------------+-------------+----------------------------------------------------+---------------+--------------------+------------+---------------------+----------+---------------------+
2 rows in set (0.34 sec)
```

### Unsupported Type

- BLOB
- LONGBLOB
morningman pushed a commit to morningman/doris that referenced this pull request Oct 19, 2024
…imit pushdown (apache#41587)

followup apache#41027
We should map time to String and support reading time outside of 24
hours.
and add limit pushdown
morningman added a commit that referenced this pull request Oct 21, 2024
morningman added a commit to morningman/doris that referenced this pull request Oct 21, 2024
morningman added a commit that referenced this pull request Oct 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by one committer. dev/2.1.7-merged dev/3.0.3-merged reviewed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants