Uploaded image for project: 'Apache IoTDB'
  1. Apache IoTDB
  2. IOTDB-4792

export-csv.bat uses like syntax exception

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • master branch
    • None
    • csv
    • None

    Description

      ./tools/export-csv.bat -h 127.0.0.1 -p 6667 -u root -pw root -td ./ -q "SELECT * FROM root.ws.ln where t_txt like '%cd%';"

       

      在使用like语法时,会将  %cd%  转换为当前系统路径传递给iotdb,sql就会被转换为

       

      SELECT * FROM root.ws.ln where t_txt like 'H:\environment\\iotdb
      apache-iotdb-0.14.0-SNAPSHOT-all-bin'; 

       

      导致失败,同时在bat的语法中,还有很多环境变量也是这样

      Attachments

        Activity

          People

            Unassigned Unassigned
            RYH61 任宇华
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: