Coder Social home page Coder Social logo

Comments (3)

szarnyasg avatar szarnyasg commented on June 27, 2024

Hi @hieunm89, thanks for opening this issue. While trying to reproduce this issue, I ran into the same problem as I found when trying to reproduce #11694. Back then, I didn't follow up on this (apologies for that) but let's try to find the root cause of this now. When I run any of your queries, I get an error:

select tech_type,count(*)
  from read_csv(['tech_type=[3-4]G/ems_key=*/day_key=*/*/NodeBLocalCell.csv'], AUTO_DETECT=TRUE, union_by_name = true)
  group by 1;
Invalid Input Error: Unknown hive_type: "tech_type" does not appear to be a partition

from duckdb.

hieunm89 avatar hieunm89 commented on June 27, 2024

Hi @szarnyasg

What client of duckdb are you using? I'm using JDBC and Python and It works fine.
Could you try again with hive_partitioning = true and hive_types={'tech_type': string} option?

select tech_type,count(*)
  from read_csv('tech_type=[3-4]G/ems_key=*/day_key=*/*/NodeBLocalCell.csv', AUTO_DETECT=TRUE, union_by_name = true,hive_partitioning = true,hive_types={'tech_type': string})
  group by 1;

from duckdb.

szarnyasg avatar szarnyasg commented on June 27, 2024

Hi @hieunm89, thanks, I found the culprit – on macOS, the paths need to be prepended with ./ due to a different bug. I adjusted the queries in your original post to match this and I could reproduce the error now. We'll take a look.

from duckdb.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.