1. 【YashanDB知识库】 如何设置yasql客户端的字符编码 2024-12-10 2. 【YashanDB知识库】 exp导出csv报错YAS-00218 string conversion failed 2024-12-12 3. 【YashanDB知识库】 YAS-00218 string conversion failed. 2024-12-12 4. 【YashanDB知识库】 虚拟机重启后启动YMP报错 2024-12-12 5. 【YashanDB知识库】 OM仲裁节点故障后手工切换方案和yasom仲裁重新部署后重新纳管数据库集群方案 2024-12-12 6. 【YashanDB知识库】 oracle与yashanDB的jdbc返回常量列"0.00"的精度和刻度不一致 2024-12-13 7. 【YashanDB知识库】 UNDO表空间膨胀怎么处理 2024-12-13 8. 【YashanDB知识库】 如何将mysql含有group by的SQL转换成崖山支持的SQL 2024-12-13 9. 【YashanDB知识库】 同样建表语句,大整型数字在Oracle插入成功,在YashanDB插入失败 2024-12-13 10. 【YashanDB知识库】 要有好的跑批性能,有哪些参数要注意 2024-12-13 11. 【YashanDB知识库】 MySQL迁移至崖山char类型数据自动补空格问题 2024-12-16 12. 【YashanDB知识库】 kettle同步PG至崖山提示no encryption pg_hba.conf记录 2024-12-16 13. 【YashanDB知识库】 kettle同步大表提示java内存溢出 2024-12-16 14. 【YashanDB知识库】 查看表空间是否加密 2024-12-16 15. 【YashanDB知识库】 误配置SYSTEM级别的STATISTICS_LEVEL参数为ALL导致数据库性能下降 2024-12-17 16. 【YashanDB知识库】 用yasldr配置Bulkload模式作单线程迁移300G的业务数据到分布式数据库,迁移任务频繁出错 2024-12-17 17. 【YashanDB知识库】 YCP单机部署离线升级-rpc升级方式详细步骤 2024-12-17 18. 【YashanDB知识库】 YCP高可用部署离线升级-rpc升级详细步骤 2024-12-17 19. 【YashanDB知识库】 如何处理yasql输入交互模式下单行字符总量超过限制4000字节 2024-12-17 20. 【YashanDB知识库】 IMP跨网络导入慢问题 2024-12-19 21. 【YashanDB知识库】 insert语句有编码不识别字,执行卡住问题 2024-12-19 22. 【YashanDB知识库】 服务器重启后Yashandb无法启动 2024-12-19 23. 【YashanDB知识库】 如何处理no free block in dictionary cache 2024-12-19 24. 【YashanDB知识库】 in大量参数时查询性能慢 2024-12-19 25. 【YashanDB知识库】 Oracle pipelined函数在YashanDB中的改写 2024-12-23 26. 【YashanDB知识库】 update (子查询) set ORG_ID_STAN -ID 改写 2024-12-23 27. 【YashanDB知识库】 XMLAGG方法的兼容 2024-12-23 28. 【YashanDB知识库】 YMP迁移过程中报错YAS-02143或YAS-02193 2024-12-23 29. 【YashanDB知识库】 复合索引下in大量参数查询性能慢 2024-12-23 30. 【YashanDB知识库】 jdbc查询st_geometry类型的数据时抛出YAS-00101 cannot allocate 0 bytes for anlHeapMalloc异常 2024-12-23 31. 【YashanDB知识库】 JDBC驱动的date类型字段结果集调用getString方法只返回日期,不返回时分秒 2024-12-23 32. 【YashanDB知识库】 Mybatis-Plus调用YashanDB怎么设置分页 2024-12-23 33. 【YashanDB知识库】 ycm-YashanDB列表有数据库显示故障排除步骤 2024-12-23 34. 【YashanDB知识库】 单机部署报错:prohibited operation, please check if the IP and username are correct 2024-12-23 35. 【YashanDB知识库】 启动数据库时报错:YAS-02059 control file version 0.2.64 is incompatible with YashanDB version 0.2.65 2024-12-24 36. 【YashanDB知识库】 如何处理报错"UDT column batch insert" has not been implemented yet 2024-12-24 37. 【YashanDB知识库】 如何解决共享集群部署遇到报错:YAS-05721 invalid input parameter, reason: node name invalid. 2024-12-24 38. 【YashanDB知识库】 如何排查YMP报错:”OCI版本为空或OCI的架构和本地系统的架构不符“ 2024-12-24 39. 【YashanDB知识库】 如何限制用户session连接数 2024-12-24 40. 【YashanDB知识库】 通过dblink查询Oracle数据时报YAS-07301异常 2024-12-25 41. 【YashanDB知识库】 使用leading hint调整SQL执行计划后报错YAS-04522 invalid hint leading 2024-12-25 42. 【YashanDB知识库】 通过触发器复制varchar(4000 char)列的数据导致乱码 2024-12-25 43. 【YashanDB知识库】 由于druid中间件配置导致的YAS-04003 maximum number of open cursors is 1000 2024-12-25 44. 【YashanDB知识库】 exp 导出数据库时,报错YAS-00402 2024-12-25 45. 【YashanDB知识库】 YAS-00004 feature "implict table" has not been implemented yet 2024-12-27 46. 【YashanDB知识库】 YAS-04003 maximum number of open cursors is xxx 2024-12-27 47. 【YashanDB知识库】 YAS-04209 unexpected word ; 2024-12-27 48. 【YashanDB知识库】 yasboot集群状态命令登录失败问题 2024-12-27 49. 【YashanDB知识库】 YAS-00004 feature "create user" has not been implemented yet 2024-12-27 50. 【YashanDB知识库】 yasql / as sysdba无法登录 2024-12-27 51. 【YashanDB知识库】 启动yasom时报错:sqlite connection error 2024-12-27 52. 【YashanDB知识库】 使用vmware虚拟机安装的YashanDB,本机无法访问 2024-12-27 53. 【YashanDB知识库】 安装过程报错: unable to authenticate, attempted methods [none password], no supported methods remain 2024-12-27 54. 【YashanDB知识库】 密码带特殊符号登录报错YAS-02143 invalid username/password, login denied 2024-12-27 55. 【YashanDB知识库】 如何使用jdbc向YashanDB批量插入gis数据 2024-12-30 56. 【YashanDB知识库】 如何在备机节点上做备份和恢复 2024-12-30 57. 【YashanDB知识库】 收集统计信息时报错YAS-00507 date/timestamp value overflow 2024-12-30 58. 【YashanDB知识库】 druid连接池查询空间数据报错read time out 2024-12-30 59. 【YashanDB知识库】 hive初始化崖山报错YAS-04209 2024-12-30 60. 【YashanDB知识库】 imp导入数据库时,报错YAS-08023 2024-12-31 61. 【YashanDB知识库】 listagg拼接结果发生溢出 2024-12-31 62. 【YashanDB知识库】 python驱动查询gbk字符集崖山数据库CLOB字段,数据被驱动截断 2024-12-31 63. 【YashanDB知识库】 sys登录提示账户被锁,怎么处理? 2024-12-31 64. 【YashanDB知识库】 YAS-00402 failed to connect socket, errno 111, error message "Connection refused" 2024-12-31 65. 【YashanDB知识库】 YAS-02287 audit policy cannot be dropped as it is currently enabled 01-02 66. 【YashanDB知识库】 YAS-02507 base incremental backup set does not exist 01-02 67. 【YashanDB知识库】 YAS-02547 there is a gap in the restored archived logs on instance 1, reason: start of restored archive 35 is greater than database last archive 21 01-02 68. 【YashanDB知识库】 YAS-02605 the current instance is not master role 01-02 69. 【YashanDB知识库】 YAS-04379 invalid alteration of datatype 01-02 70. 【YashanDB知识库】 YAS-05534 unsupport operation: Create sibling files to diskgroups 01-06 71. 【YashanDB知识库】 YDC连接数据库报错yasdb return code is zero 01-06 72. 【YashanDB知识库】 YMP迁移达梦时,报错:查询出现异常 01-06 73. 【YashanDB知识库】 查询空间数据提示This socket has been closed. 01-06 74. 【YashanDB知识库】 数据库用户所拥有的权限查询 01-06 75. 【YashanDB知识库】 JDBC查询时抛出YAS-02094 current session has been killed or canceled异常 01-07 76. 【YashanDB知识库】 YashanDB JDBC驱动查询时抛出io fail:Read timed out异常 01-07 77. 【YashanDB知识库】 YCM上CPU负载超过实际核数是怎么回事 01-07 78. 【YashanDB知识库】 使用Reverse索引的解决自增序列做索引,插入性能大幅提升 01-07 79. 【YashanDB知识库】 YMP从达梦迁移到崖山,报错:不能识别文件路径,没找到csv文件 01-07 80. 【YashanDB知识库】 YMP在迁移过程中,遇到报错:failed to open file /qianyi/ymp/ymp_23.3, errno 2, error message "No such file or directory". 01-09 81. 【YashanDB知识库】 解决mybatis的mapper文件sql语句结尾加分号";"报错 01-09 82. 【YashanDB知识库】 进行load data的时候报找不到动态库liblz4.so 01-09 83. 【YashanDB知识库】 如何解决删除分区后索引失效问题 01-09 84. 【YashanDB知识库】 如何输入小写表名的函数参数 01-09 85. 【YashanDB知识库】 审计表UNIFIED_AUDIT_TRAIL出现YAS-00220 utf8 sequence is wrong 01-10 86. 【YashanDB知识库】 kettle做增量同步,出现报错:Unrecognized VM option 'MaxPermSize-256m' 01-10 87. 【YashanDB知识库】 YashanDB run.log中有slow log queue is full信息 01-10 88. 【YashanDB知识库】 YCM托管YashanDB报错 /home/yashan/.yasboot/.env is not existed 01-10 89. 【YashanDB知识库】 使用yasboot查看YashanDB status为unconnected,但是YashanDB运行正常 01-10 90. 【YashanDB知识库】 YMP从mysql迁移到崖山,报错:服务器错误 01-10 91. 【YashanDB知识库】 使用DBeaver 插入数据 nvarchar字段插入为空 01-10 92. 【YashanDB知识库】 崖山BIT类型对MYSQL兼容问题 01-10
93. 【YashanDB知识库】 YDC无法通过conn切换用户 01-10 94. 【YashanDB知识库】 YMP校验从yashandb同步到oracle的数据时,字段timestamp(0)出现不一致 01-16 95. 【YashanDB知识库】 并发update报错YAS-02208 lock conflict in consistent write 01-16 96. 【YashanDB知识库】 导入数据时报错:YAS-00008 type convert error:literal does not match format string 01-16 97. 【YashanDB知识库】 druid连接池做断网测试,无法自动重新连接 01-16 98. 【YashanDB知识库】 Hive 命令工具insert崖山数据库报错 01-16 99. 【YashanDB知识库】 load data一次导入多个文件的数据时报错 01-16 100. 【YashanDB知识库】 YAS-02143 invalid username/password, login denied 01-16
本文内容来自YashanDB官网,原文内容请见 https://www.yashandb.com/newsinfo/7901517.html?templateId=1718516
【问题分类】 功能兼容
【关键字】 YAS-07202、YAS_MY ERROR,bit
【问题描述】
本项目的架构是hadoop+hive+yashandb
使用崖山数据库,将mysql相关的创建表语句进行初始化同步
使用崖山23.3版本兼容mysql数据库,新建表和查询表都出现问题
查询报错
mysql> SELECT DISTINCT 'org.apache.hadoop.hive.metastore.model.MTable' AS NUCLEUS_TYPE,A0.CREATE_TIME,A0.LAST_ACCESS_TIME,A0.OWNER,A0.OWNER_TYPE,A0.RETENTION,A0.IS_REWRITE_ENABLED,A0.TBL_NAME,A0.TBL_TYPE,A0.TBL_ID FROM TBLS A0 LEFT OUTER JOIN DBS B0 ON A0.DB_ID = B0.DB_ID ;
ERROR 7202 (HY000): YAS-07202 plugin execution error, YAS_MY error, unsupported datatypemysql> SELECT DISTINCT 'org.apache.hadoop.hive.metastore.model.MTable' AS NUCLEUS_TYPE,A0.CREATE_TIME,A0.LAST_ACCESS_TIME,A0.OWNER,A0.OWNER_TYPE,A0.RETENTION,A0.IS_REWRITE_ENABLED,A0.TBL_NAME,A0.TBL_TYPE,A0.TBL_ID FROM TBLS A0 LEFT OUTER JOIN DBS B0 ON A0.DB_ID = B0.DB_ID ;
ERROR 7202 (HY000): YAS-07202 plugin execution error, YAS_MY error, unsupported datatype
创建表报错
初步分析是mysql类型不兼容,出现相关报错
分别从jdbc层,表定义和字段类型等进行分析
【问题原因分析】
相关的查询表的结构如下
通过定位mysql创建语法,将可能出现字段类型兼容问题定位在 mediumtext -->clob 和 bit -- >bit
上面。通过修改对比和研发进行联合分析发现,崖山bit类型和mysql bit类型,看着是兼容的,实际上是不兼容的
定位到bit类型是不兼容之后,全部将bit类型替换成boolean之后,相关的查询和创建新表的问题都没有了
【解决/规避方法】
全部将bit类型替换成boolean之后,相关的查询和创建新表的问题都没有了
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】凌霞软件回馈社区,博客园 & 1Panel & Halo 联合会员上线
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】博客园社区专享云产品让利特惠,阿里云新客6.5折上折
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· PostgreSQL 和 SQL Server 在统计信息维护中的关键差异
· C++代码改造为UTF-8编码问题的总结
· DeepSeek 解答了困扰我五年的技术问题
· 为什么说在企业级应用开发中,后端往往是效率杀手?
· 用 C# 插值字符串处理器写一个 sscanf
· [翻译] 为什么 Tracebit 用 C# 开发
· 腾讯ima接入deepseek-r1,借用别人脑子用用成真了~
· Deepseek官网太卡,教你白嫖阿里云的Deepseek-R1满血版
· DeepSeek崛起:程序员“饭碗”被抢,还是职业进化新起点?
· RFID实践——.NET IoT程序读取高频RFID卡/标签