Coder Social home page Coder Social logo

Comments (3)

soullkk avatar soullkk commented on June 3, 2024 1

@soullkk , does it work if you pass the sizeBytes as a String, i.e. "33554432" instead of 33554432?

Yes, using "33554432" is not a problem, but this value is an int instead of a string, and it does not match the guidance provided by the Druid. Additionally, in lower versions of the Druid, such as 24.0.1, using 33554432 is not a problem. So I think this is a bug and an incompatible change point in higher versions of the Druid.

from druid.

soullkk avatar soullkk commented on June 3, 2024
    private static final Integer num = 1;

    public static void main(String[] args) {
        add(get());
    }

    public static void add(int obj) {
        System.out.println("int");
    }

    public static void add(String obj) {
        System.out.println("string");
    }

    public static void add(long obj) {
        System.out.println("long");
    }

    public static <T> T get() {
        return (T) num;
    }

result is :
Exception in thread "main" java.lang.ClassCastException: java.lang.Integer cannot be cast to java.lang.String
at lkk.util.Main.main(Main.java:136)

from druid.

kfaraz avatar kfaraz commented on June 3, 2024

@soullkk , does it work if you pass the sizeBytes as a String, i.e. "33554432" instead of 33554432?

from druid.

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.