GithubHelp home page GithubHelp logo

Support duplicate column names in SDKs about ydb HOT 5 OPEN

rekby avatar rekby commented on May 29, 2024
Support duplicate column names in SDKs

from ydb.

Comments (5)

rekby avatar rekby commented on May 29, 2024 1

I think about it will be better to sync not only SDK, but server too - for have same behaviour of SDK and YQL/SQL.

from ydb.

alex268 avatar alex268 commented on May 29, 2024

Why we must return error? It brokes some conversations like JDBC standard. From here Column names used as input to getter methods are case insensitive. When a getter method is called with a column name and several columns have the same name, the value of the first matching column will be returned.

from ydb.

Zork33 avatar Zork33 commented on May 29, 2024

It's worth to discus. Since currently i.e. NodeJS SDK has no mechanism to fetch columns by index at all. As a solution, we could think about adding an index to the column name if the name is duplicated

from ydb.

rekby avatar rekby commented on May 29, 2024

Why we must return error? It brokes some conversations like JDBC standard.

This behavour will be at server queries and it is safest way - we always can start to support duplicated names, but it is difficult to change behavior.

may be reaction way need more research.

Main idea was:

  1. Now we don't support duplicated names on server side
  2. We will support duplicated names on server side in results
  3. Safest way - deny use unexpected column

from ydb.

alex268 avatar alex268 commented on May 29, 2024

Our API has always supported the columns with any names, including duplicated. So these is no difference - does server support it or doesn't, the SDKs have to support it already. The only think we have to decide - the behavior of various SDKs must be equal. I checked Java SDK and it returns the last matching column - but it seems very as non conversational behavior. What about others SDK?

from ydb.

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.