Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • C csvkit
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 61
    • Issues 61
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 4
    • Merge requests 4
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • wireservice
  • csvkit
  • Issues
  • #1032
Closed
Open
Issue created May 29, 2019 by Werner Robitza@slhckContributor

csvsql: "no such table" error only thrown when force-quitting

I am querying a data file:

csvsql --query 'select max(video_session_started_at) from data' tmp_correct_ids.csv

I did this, naively, by adapting the existing code, assuming that data would be a generic name for the table that'd be generated in memory after reading from the CSV.

I was wrong. It seems the table name is inferred from the CSV filename without suffix. I later learned that from carefully reading the manpage.

However, earlier, I only found out after I killed the command:

^C(sqlite3.OperationalError) no such table: data
[SQL: select max(video_session_started_at) from data]
(Background on this error at: http://sqlalche.me/e/e3q8)

Would it be possible to throw this error and stop csvsql once it occurs? The command just seemed to hang for me until I quit it.

Using csvsql 1.0.4 under Ubuntu 18.04 with Python 3.6.

Assignee
Assign to
Time tracking