I'm WLW

No Pain No Gain


  • 首页

  • 归档

  • 标签

  • 搜索

使用Superset聚合报表钻取详情时,分页的第2页开始报错:Error: MSSQL requires an order_by when using an OFFSET or a non-simple LIMIT clause

发表于 2025-07-07   |   分类于 生产力-软件   |   暂无评论

如题,在钻取详情时,分页的第2页开始报错:Error: MSSQL requires an order_by when using an OFFSET or a non-simple LIMIT clause

试过在数据集中添加Order by ,结果依然报错
最后在Github评论中找到临时方法:修改query_actions.py

query_obj.columns = qry_obj_cols
query_obj.orderby = [(query_obj.columns[0], True)]  # <-- 插入这行
return _get_full(query_context, query_obj, force_cached)

具体方法:
1.查找query_actions.py 文件所在位置

sudo find / -name query_actions.py 2>/dev/null

2.cd进入相应文件夹,然后修改:

sudo nano query_actions.py

3.插入 query_obj.orderby = [(query_obj.columns[0], True)] ,类似Order by 1 (按第一列排序)

4.重启superset 服务,测试效果

升级StackBook过程中碰到php8.1下开启Fileinfo扩展失败的问题

发表于 2024-05-14   |   分类于 生产力-软件   |   暂无评论

参照手工安装:

# 切换到 fileinfo 扩展源代码目录
cd /www/server/php/81/src/ext/fileinfo/

# 使用 phpize 工具为当前 PHP 版本生成配置文件
/www/server/php/81/bin/phpize

# 配置编译参数,使用指定的 php-config 文件
./configure --with-php-config=/www/server/php/81/bin/php-config

# 修改 Makefile,将 CFLAGS 参数修改为 -std=c99 -g
sed -i "s#CFLAGS = -g -O2#CFLAGS = -std=c99 -g#g" Makefile

# 编译并安装 fileinfo 扩展
make && make install

# 将 fileinfo 扩展路径添加到 PHP 配置文件中
echo "extension=/www/server/php/81/lib/php/extensions/no-debug-non-zts-20210902/fileinfo.so" >> /www/server/php/81/etc/php.ini
echo "extension=/www/server/php/81/lib/php/extensions/no-debug-non-zts-20210902/fileinfo.so" >> /www/server/php/81/etc/php-cli.ini

# 重启 PHP-FPM 服务以使配置生效
/etc/init.d/php-fpm-81 restart

Debian虚拟机折腾Docker记录

发表于 2024-05-09   |   分类于 生产力-软件   |   暂无评论

问题处理

虚拟机中安装完Debian重启后,系统一直卡在黑屏,光标闪烁界面

搜索后,csdn上看导关键在于最后的GRUB的选择。如下图:

20200125211321717.png

20200125211321717.png

root账号安装软件curl

  • ubuntu/debian 系统安装 Curl 方法: sudo apt-get update -y && sudo apt-get install curl
    -y
  • centos 系统安装 Curl 方法: yum update -y && yum install curl -y

安装好 curl 之后就能安装脚本了

安装docker

curl -fsSL https://get.docker.com -o get-docker.sh
 sudo sh get-docker.sh

URL编码表 url中的20%、22%、26%、7B%、%7D、28%、29% 代表真实的字符(转发)

发表于 2023-10-23   |   分类于 生产力-软件   |   暂无评论

194720-20200610165300516-237246127.png

194720-20200610165300516-237246127.png


参考:https://www.cnblogs.com/shaosks/p/13086457.html

流行的Wiki比较,Wiki.js安装

发表于 2023-10-17   |   分类于 生产力-软件   |   暂无评论

Wiki比较
参见链接,曾经重度使用confluence,现换了环境需要重新折腾了,准备先试试wiki.js

Windows 安装

MS SQL创建数据库

IIS安装

Node安装

不要安装太高版本,否则会报错:

error: Package subpath './public/extractFiles' is not defined by "exports" in ***.\node_modules\extract-files\package.json

换安装node16后正常。

Wiki.js下载及安装

注意:使用默认的端口3000,windows下会报错:listening on port 3000 requires elevated privileges

port: 8000
db:
  type: mssql

参考文档
https://george.betterde.com/technology/20220602.html

123456...26

一个高端大气上档次的网站

127 文章
4 分类
91 标签
RSS
首页 管理 GitHub V2ex
© 2025 I'm WLW
Typecho
主题 - NexT.Pisces