【详述】问题详细描述
1、创建oracle jdbc资源
create external resource r_29
properties (
“type” = “jdbc”,
“user” = “test”,
“password” = “test”,
“jdbc_uri” = “jdbc:oracle:thin:@192.168.1.29:1521/orcl”,
“driver_url” = “file:///opt/ojdbc8-21.9.0.0.jar”,
“driver_class” = “oracle.jdbc.driver.OracleDriver”
);
2、创建相关外部表
CREATE TABLE order_t
(
UUID VARCHAR(64),
ORDER_UUID VARCHAR(64),
ORDER_DTL_UUID VARCHAR(64),
NO VARCHAR(32),
CREATE_DATE DATETIME
) ENGINE=JDBC
PROPERTIES (
“resource” = “r_29”,
“table” = “test.order_t”
);
3、使用时间字段查询:
select * from order_t where create_date > ‘2023-12-25’
或者使用函数str_to_date、cast之类的函数转换成日期类型,都报错
【StarRocks版本】例如:2.5.12
【集群规模】:3fe(3 follower)+3be(fe与be混部)
【机器信息】CPU虚拟核/内存/网卡:16C/32G/万兆
【附件】
- fe.log/beINFO/相应截图