Return-Path: X-Original-To: apmail-drill-issues-archive@minotaur.apache.org Delivered-To: apmail-drill-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id ED6A917924 for ; Fri, 27 Mar 2015 17:25:55 +0000 (UTC) Received: (qmail 75255 invoked by uid 500); 27 Mar 2015 17:25:54 -0000 Delivered-To: apmail-drill-issues-archive@drill.apache.org Received: (qmail 75109 invoked by uid 500); 27 Mar 2015 17:25:54 -0000 Mailing-List: contact issues-help@drill.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@drill.apache.org Delivered-To: mailing list issues@drill.apache.org Received: (qmail 74963 invoked by uid 99); 27 Mar 2015 17:25:54 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 27 Mar 2015 17:25:54 +0000 Date: Fri, 27 Mar 2015 17:25:54 +0000 (UTC) From: "Daniel Barclay (Drill) (JIRA)" To: issues@drill.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (DRILL-2603) Review, resolve NULL checks/isNull()/null around vectors, accessors, JDBC SQLAccessor, etc. MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/DRILL-2603?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Daniel Barclay (Drill) updated DRILL-2603: ------------------------------------------ Description: Review the checking for SQL NULL and mapping to Java null (for non-primitive types) from the vector and vector access layer up through the JDBC layer (e.g., SQLAccessors (which is just for JDBC)), resolve where checking should be done, and specify that contract information in the Javadoc documentation. Considerations: - With DRILL-2463, there are now some redundant checks for SQL NULL. - Get methods returning non-primitive types must follow a different pattern, since they can't return Java null. - Behavior that is very specific to JDBC usually should be implemented in the JDBC layer. (For example, JDBC's NULL-reporting protocol of calling getInt(...) and then calling wasNull() shouldn't appear in lower layers (e.g., the planned DrillClient-level public interface) unless we intentionally choose that protocol for there. was: Review NULL checks/null returns around vectors, accessors, JDBC SQLAccessor, etc. > Review, resolve NULL checks/isNull()/null around vectors, accessors, JDBC SQLAccessor, etc. > ------------------------------------------------------------------------------------------- > > Key: DRILL-2603 > URL: https://issues.apache.org/jira/browse/DRILL-2603 > Project: Apache Drill > Issue Type: Task > Reporter: Daniel Barclay (Drill) > > Review the checking for SQL NULL and mapping to Java null (for non-primitive types) from the vector and vector access layer up through the JDBC layer (e.g., SQLAccessors (which is just for JDBC)), resolve where checking should be done, and specify that contract information in the Javadoc documentation. > Considerations: > - With DRILL-2463, there are now some redundant checks for SQL NULL. > - Get methods returning non-primitive types must follow a different pattern, since they can't return Java null. > - Behavior that is very specific to JDBC usually should be implemented in the JDBC layer. (For example, JDBC's NULL-reporting protocol of calling getInt(...) and then calling wasNull() shouldn't appear in lower layers (e.g., the planned DrillClient-level public interface) unless we intentionally choose that protocol for there. -- This message was sent by Atlassian JIRA (v6.3.4#6332)