aliyun / aliyun-odps-jdbc

JDBC Driver for ODPS
Other
125 stars 38 forks source link

[QUESTION]如何从Columns里获取哪些列是分区字段 #150

Open leuitong opened 1 year ago

leuitong commented 1 year ago

A clear and concise description of what the problem is. OdpsDatabaseMetaData metaData = (OdpsDatabaseMetaData) connection.getMetaData(); OdpsResultSet columns = (OdpsResultSet) metaData.getColumns(null, null, table, null) String columnName = columns.getString("COLUMN_NAME"); String typeName = columns.getString("TYPE_NAME"); 目前感觉只能取到列名和字段类型,如何拿到哪个字段是分区字段呢?

yefanjiang commented 1 year ago

标准的JDBC接口是没有这个能力的吧